Show More
@@ -1,508 +1,509 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ## PASTE ## |
|
32 | ## PASTE ## | |
33 | #use = egg:Paste#http |
|
33 | #use = egg:Paste#http | |
34 | ## nr of worker threads to spawn |
|
34 | ## nr of worker threads to spawn | |
35 | #threadpool_workers = 5 |
|
35 | #threadpool_workers = 5 | |
36 | ## max request before thread respawn |
|
36 | ## max request before thread respawn | |
37 | #threadpool_max_requests = 10 |
|
37 | #threadpool_max_requests = 10 | |
38 | ## option to use threads of process |
|
38 | ## option to use threads of process | |
39 | #use_threadpool = true |
|
39 | #use_threadpool = true | |
40 |
|
40 | |||
41 | ## WAITRESS ## |
|
41 | ## WAITRESS ## | |
42 | use = egg:waitress#main |
|
42 | use = egg:waitress#main | |
43 | ## number of worker threads |
|
43 | ## number of worker threads | |
44 | threads = 5 |
|
44 | threads = 5 | |
45 | ## MAX BODY SIZE 100GB |
|
45 | ## MAX BODY SIZE 100GB | |
46 | max_request_body_size = 107374182400 |
|
46 | max_request_body_size = 107374182400 | |
47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
47 | ## use poll instead of select, fixes fd limits, may not work on old | |
48 | ## windows systems. |
|
48 | ## windows systems. | |
49 | asyncore_use_poll = True |
|
49 | asyncore_use_poll = True | |
50 |
|
50 | |||
51 | ## GUNICORN ## |
|
51 | ## GUNICORN ## | |
52 | #use = egg:gunicorn#main |
|
52 | #use = egg:gunicorn#main | |
53 |
## number of process workers. |
|
53 | ## number of process workers. You must set `instance_id = *` when this option | |
|
54 | ## is set to more than one worker | |||
54 | #workers = 1 |
|
55 | #workers = 1 | |
55 | ## process name |
|
56 | ## process name | |
56 | #proc_name = rhodecode |
|
57 | #proc_name = rhodecode | |
57 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
58 | ## type of worker class, one of sync, eventlet, gevent, tornado | |
58 | ## recommended for bigger setup is using of of other than sync one |
|
59 | ## recommended for bigger setup is using of of other than sync one | |
59 | #worker-class = sync |
|
60 | #worker-class = sync | |
60 | #max-requests = 5 |
|
61 | #max-requests = 5 | |
61 |
|
62 | |||
62 | ## COMMON ## |
|
63 | ## COMMON ## | |
63 | host = 0.0.0.0 |
|
64 | host = 0.0.0.0 | |
64 | port = 5000 |
|
65 | port = 5000 | |
65 |
|
66 | |||
66 | ## prefix middleware for rc |
|
67 | ## prefix middleware for rc | |
67 | #[filter:proxy-prefix] |
|
68 | #[filter:proxy-prefix] | |
68 | #use = egg:PasteDeploy#prefix |
|
69 | #use = egg:PasteDeploy#prefix | |
69 | #prefix = /<your-prefix> |
|
70 | #prefix = /<your-prefix> | |
70 |
|
71 | |||
71 | [app:main] |
|
72 | [app:main] | |
72 | use = egg:rhodecode |
|
73 | use = egg:rhodecode | |
73 | ## enable proxy prefix middleware |
|
74 | ## enable proxy prefix middleware | |
74 | #filter-with = proxy-prefix |
|
75 | #filter-with = proxy-prefix | |
75 |
|
76 | |||
76 | full_stack = true |
|
77 | full_stack = true | |
77 | static_files = true |
|
78 | static_files = true | |
78 | ## Optional Languages |
|
79 | ## Optional Languages | |
79 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
80 | lang = en |
|
81 | lang = en | |
81 | cache_dir = %(here)s/data |
|
82 | cache_dir = %(here)s/data | |
82 | index_dir = %(here)s/data/index |
|
83 | index_dir = %(here)s/data/index | |
83 |
|
84 | |||
84 | ## perform a full repository scan on each server start, this should be |
|
85 | ## perform a full repository scan on each server start, this should be | |
85 | ## set to false after first startup, to allow faster server restarts. |
|
86 | ## set to false after first startup, to allow faster server restarts. | |
86 | initial_repo_scan = true |
|
87 | initial_repo_scan = true | |
87 |
|
88 | |||
88 | ## uncomment and set this path to use archive download cache |
|
89 | ## uncomment and set this path to use archive download cache | |
89 | #archive_cache_dir = /tmp/tarballcache |
|
90 | #archive_cache_dir = /tmp/tarballcache | |
90 |
|
91 | |||
91 | ## change this to unique ID for security |
|
92 | ## change this to unique ID for security | |
92 | app_instance_uuid = rc-production |
|
93 | app_instance_uuid = rc-production | |
93 |
|
94 | |||
94 | ## cut off limit for large diffs (size in bytes) |
|
95 | ## cut off limit for large diffs (size in bytes) | |
95 | cut_off_limit = 256000 |
|
96 | cut_off_limit = 256000 | |
96 |
|
97 | |||
97 | ## use cache version of scm repo everywhere |
|
98 | ## use cache version of scm repo everywhere | |
98 | vcs_full_cache = true |
|
99 | vcs_full_cache = true | |
99 |
|
100 | |||
100 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https | |
101 | force_https = false |
|
102 | force_https = false | |
102 |
|
103 | |||
103 | ## use Strict-Transport-Security headers |
|
104 | ## use Strict-Transport-Security headers | |
104 | use_htsts = false |
|
105 | use_htsts = false | |
105 |
|
106 | |||
106 | ## number of commits stats will parse on each iteration |
|
107 | ## number of commits stats will parse on each iteration | |
107 | commit_parse_limit = 25 |
|
108 | commit_parse_limit = 25 | |
108 |
|
109 | |||
109 | ## use gravatar service to display avatars |
|
110 | ## use gravatar service to display avatars | |
110 | use_gravatar = true |
|
111 | use_gravatar = true | |
111 |
|
112 | |||
112 | ## path to git executable |
|
113 | ## path to git executable | |
113 | git_path = git |
|
114 | git_path = git | |
114 |
|
115 | |||
115 | ## git rev filter option, --all is the default filter, if you need to |
|
116 | ## git rev filter option, --all is the default filter, if you need to | |
116 | ## hide all refs in changelog switch this to --branches --tags |
|
117 | ## hide all refs in changelog switch this to --branches --tags | |
117 | git_rev_filter=--all |
|
118 | git_rev_filter=--all | |
118 |
|
119 | |||
119 | ## RSS feed options |
|
120 | ## RSS feed options | |
120 | rss_cut_off_limit = 256000 |
|
121 | rss_cut_off_limit = 256000 | |
121 | rss_items_per_page = 10 |
|
122 | rss_items_per_page = 10 | |
122 | rss_include_diff = false |
|
123 | rss_include_diff = false | |
123 |
|
124 | |||
124 | ## options for showing and identifying changesets |
|
125 | ## options for showing and identifying changesets | |
125 | show_sha_length = 12 |
|
126 | show_sha_length = 12 | |
126 | show_revision_number = true |
|
127 | show_revision_number = true | |
127 |
|
128 | |||
128 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
129 | ## gist URL alias, used to create nicer urls for gist. This should be an | |
129 | ## url that does rewrites to _admin/gists/<gistid>. |
|
130 | ## url that does rewrites to _admin/gists/<gistid>. | |
130 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal | |
131 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> | |
132 | gist_alias_url = |
|
133 | gist_alias_url = | |
133 |
|
134 | |||
134 | ## white list of API enabled controllers. This allows to add list of |
|
135 | ## white list of API enabled controllers. This allows to add list of | |
135 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
136 | ## controllers to which access will be enabled by api_key. eg: to enable | |
136 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches | |
137 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated | |
138 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names | |
139 | api_access_controllers_whitelist = |
|
140 | api_access_controllers_whitelist = | |
140 |
|
141 | |||
141 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
142 | ## alternative_gravatar_url allows you to use your own avatar server application | |
142 | ## the following parts of the URL will be replaced |
|
143 | ## the following parts of the URL will be replaced | |
143 | ## {email} user email |
|
144 | ## {email} user email | |
144 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
145 | ## {md5email} md5 hash of the user email (like at gravatar.com) | |
145 | ## {size} size of the image that is expected from the server application |
|
146 | ## {size} size of the image that is expected from the server application | |
146 | ## {scheme} http/https from RhodeCode server |
|
147 | ## {scheme} http/https from RhodeCode server | |
147 | ## {netloc} network location from RhodeCode server |
|
148 | ## {netloc} network location from RhodeCode server | |
148 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} | |
149 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} | |
150 |
|
151 | |||
151 |
|
152 | |||
152 | ## container auth options |
|
153 | ## container auth options | |
153 | container_auth_enabled = false |
|
154 | container_auth_enabled = false | |
154 | proxypass_auth_enabled = false |
|
155 | proxypass_auth_enabled = false | |
155 |
|
156 | |||
156 | ## default encoding used to convert from and to unicode |
|
157 | ## default encoding used to convert from and to unicode | |
157 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
158 | ## can be also a comma seperated list of encoding in case of mixed encodings | |
158 | default_encoding = utf8 |
|
159 | default_encoding = utf8 | |
159 |
|
160 | |||
160 | ## overwrite schema of clone url |
|
161 | ## overwrite schema of clone url | |
161 | ## available vars: |
|
162 | ## available vars: | |
162 | ## scheme - http/https |
|
163 | ## scheme - http/https | |
163 | ## user - current user |
|
164 | ## user - current user | |
164 | ## pass - password |
|
165 | ## pass - password | |
165 | ## netloc - network location |
|
166 | ## netloc - network location | |
166 | ## path - usually repo_name |
|
167 | ## path - usually repo_name | |
167 |
|
168 | |||
168 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
169 |
|
170 | |||
170 | ## issue tracking mapping for commits messages |
|
171 | ## issue tracking mapping for commits messages | |
171 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
172 | ## comment out issue_pat, issue_server, issue_prefix to enable | |
172 |
|
173 | |||
173 | ## pattern to get the issues from commit messages |
|
174 | ## pattern to get the issues from commit messages | |
174 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
175 | ## default one used here is #<numbers> with a regex passive group for `#` | |
175 | ## {id} will be all groups matched from this pattern |
|
176 | ## {id} will be all groups matched from this pattern | |
176 |
|
177 | |||
177 | issue_pat = (?:\s*#)(\d+) |
|
178 | issue_pat = (?:\s*#)(\d+) | |
178 |
|
179 | |||
179 | ## server url to the issue, each {id} will be replaced with match |
|
180 | ## server url to the issue, each {id} will be replaced with match | |
180 | ## fetched from the regex and {repo} is replaced with full repository name |
|
181 | ## fetched from the regex and {repo} is replaced with full repository name | |
181 | ## including groups {repo_name} is replaced with just name of repo |
|
182 | ## including groups {repo_name} is replaced with just name of repo | |
182 |
|
183 | |||
183 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} | |
184 |
|
185 | |||
185 | ## prefix to add to link to indicate it's an url |
|
186 | ## prefix to add to link to indicate it's an url | |
186 | ## #314 will be replaced by <issue_prefix><id> |
|
187 | ## #314 will be replaced by <issue_prefix><id> | |
187 |
|
188 | |||
188 | issue_prefix = # |
|
189 | issue_prefix = # | |
189 |
|
190 | |||
190 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify | |
191 | ## multiple patterns, to other issues server, wiki or others |
|
192 | ## multiple patterns, to other issues server, wiki or others | |
192 | ## below an example how to create a wiki pattern |
|
193 | ## below an example how to create a wiki pattern | |
193 | # #wiki-some-id -> https://mywiki.com/some-id |
|
194 | # #wiki-some-id -> https://mywiki.com/some-id | |
194 |
|
195 | |||
195 | #issue_pat_wiki = (?:wiki-)(.+) |
|
196 | #issue_pat_wiki = (?:wiki-)(.+) | |
196 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
197 | #issue_server_link_wiki = https://mywiki.com/{id} | |
197 | #issue_prefix_wiki = WIKI- |
|
198 | #issue_prefix_wiki = WIKI- | |
198 |
|
199 | |||
199 |
|
200 | |||
200 | ## instance-id prefix |
|
201 | ## instance-id prefix | |
201 | ## a prefix key for this instance used for cache invalidation when running |
|
202 | ## a prefix key for this instance used for cache invalidation when running | |
202 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
203 | ## multiple instances of rhodecode, make sure it's globally unique for | |
203 | ## all running rhodecode instances. Leave empty if you don't use it |
|
204 | ## all running rhodecode instances. Leave empty if you don't use it | |
204 | instance_id = |
|
205 | instance_id = | |
205 |
|
206 | |||
206 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
207 | ## alternative return HTTP header for failed authentication. Default HTTP | |
207 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
208 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
209 | ## handling that. Set this variable to 403 to return HTTPForbidden | |
209 | auth_ret_code = |
|
210 | auth_ret_code = | |
210 |
|
211 | |||
211 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
212 | ## locking return code. When repository is locked return this HTTP code. 2XX | |
212 | ## codes don't break the transactions while 4XX codes do |
|
213 | ## codes don't break the transactions while 4XX codes do | |
213 | lock_ret_code = 423 |
|
214 | lock_ret_code = 423 | |
214 |
|
215 | |||
215 | allow_repo_location_change = True |
|
216 | allow_repo_location_change = True | |
216 |
|
217 | |||
217 | #################################### |
|
218 | #################################### | |
218 | ### CELERY CONFIG #### |
|
219 | ### CELERY CONFIG #### | |
219 | #################################### |
|
220 | #################################### | |
220 | use_celery = false |
|
221 | use_celery = false | |
221 | broker.host = localhost |
|
222 | broker.host = localhost | |
222 | broker.vhost = rabbitmqhost |
|
223 | broker.vhost = rabbitmqhost | |
223 | broker.port = 5672 |
|
224 | broker.port = 5672 | |
224 | broker.user = rabbitmq |
|
225 | broker.user = rabbitmq | |
225 | broker.password = qweqwe |
|
226 | broker.password = qweqwe | |
226 |
|
227 | |||
227 | celery.imports = rhodecode.lib.celerylib.tasks |
|
228 | celery.imports = rhodecode.lib.celerylib.tasks | |
228 |
|
229 | |||
229 | celery.result.backend = amqp |
|
230 | celery.result.backend = amqp | |
230 | celery.result.dburi = amqp:// |
|
231 | celery.result.dburi = amqp:// | |
231 | celery.result.serialier = json |
|
232 | celery.result.serialier = json | |
232 |
|
233 | |||
233 | #celery.send.task.error.emails = true |
|
234 | #celery.send.task.error.emails = true | |
234 | #celery.amqp.task.result.expires = 18000 |
|
235 | #celery.amqp.task.result.expires = 18000 | |
235 |
|
236 | |||
236 | celeryd.concurrency = 2 |
|
237 | celeryd.concurrency = 2 | |
237 | #celeryd.log.file = celeryd.log |
|
238 | #celeryd.log.file = celeryd.log | |
238 | celeryd.log.level = debug |
|
239 | celeryd.log.level = debug | |
239 | celeryd.max.tasks.per.child = 1 |
|
240 | celeryd.max.tasks.per.child = 1 | |
240 |
|
241 | |||
241 | ## tasks will never be sent to the queue, but executed locally instead. |
|
242 | ## tasks will never be sent to the queue, but executed locally instead. | |
242 | celery.always.eager = false |
|
243 | celery.always.eager = false | |
243 |
|
244 | |||
244 | #################################### |
|
245 | #################################### | |
245 | ### BEAKER CACHE #### |
|
246 | ### BEAKER CACHE #### | |
246 | #################################### |
|
247 | #################################### | |
247 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
248 | beaker.cache.data_dir=%(here)s/data/cache/data | |
248 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
249 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
249 |
|
250 | |||
250 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
251 |
|
252 | |||
252 | beaker.cache.super_short_term.type=memory |
|
253 | beaker.cache.super_short_term.type=memory | |
253 | beaker.cache.super_short_term.expire=10 |
|
254 | beaker.cache.super_short_term.expire=10 | |
254 | beaker.cache.super_short_term.key_length = 256 |
|
255 | beaker.cache.super_short_term.key_length = 256 | |
255 |
|
256 | |||
256 | beaker.cache.short_term.type=memory |
|
257 | beaker.cache.short_term.type=memory | |
257 | beaker.cache.short_term.expire=60 |
|
258 | beaker.cache.short_term.expire=60 | |
258 | beaker.cache.short_term.key_length = 256 |
|
259 | beaker.cache.short_term.key_length = 256 | |
259 |
|
260 | |||
260 | beaker.cache.long_term.type=memory |
|
261 | beaker.cache.long_term.type=memory | |
261 | beaker.cache.long_term.expire=36000 |
|
262 | beaker.cache.long_term.expire=36000 | |
262 | beaker.cache.long_term.key_length = 256 |
|
263 | beaker.cache.long_term.key_length = 256 | |
263 |
|
264 | |||
264 | beaker.cache.sql_cache_short.type=memory |
|
265 | beaker.cache.sql_cache_short.type=memory | |
265 | beaker.cache.sql_cache_short.expire=10 |
|
266 | beaker.cache.sql_cache_short.expire=10 | |
266 | beaker.cache.sql_cache_short.key_length = 256 |
|
267 | beaker.cache.sql_cache_short.key_length = 256 | |
267 |
|
268 | |||
268 | beaker.cache.sql_cache_med.type=memory |
|
269 | beaker.cache.sql_cache_med.type=memory | |
269 | beaker.cache.sql_cache_med.expire=360 |
|
270 | beaker.cache.sql_cache_med.expire=360 | |
270 | beaker.cache.sql_cache_med.key_length = 256 |
|
271 | beaker.cache.sql_cache_med.key_length = 256 | |
271 |
|
272 | |||
272 | beaker.cache.sql_cache_long.type=file |
|
273 | beaker.cache.sql_cache_long.type=file | |
273 | beaker.cache.sql_cache_long.expire=3600 |
|
274 | beaker.cache.sql_cache_long.expire=3600 | |
274 | beaker.cache.sql_cache_long.key_length = 256 |
|
275 | beaker.cache.sql_cache_long.key_length = 256 | |
275 |
|
276 | |||
276 | #################################### |
|
277 | #################################### | |
277 | ### BEAKER SESSION #### |
|
278 | ### BEAKER SESSION #### | |
278 | #################################### |
|
279 | #################################### | |
279 | ## Type of storage used for the session, current types are |
|
280 | ## Type of storage used for the session, current types are | |
280 | ## dbm, file, memcached, database, and memory. |
|
281 | ## dbm, file, memcached, database, and memory. | |
281 | ## The storage uses the Container API |
|
282 | ## The storage uses the Container API | |
282 | ## that is also used by the cache system. |
|
283 | ## that is also used by the cache system. | |
283 |
|
284 | |||
284 | ## db session ## |
|
285 | ## db session ## | |
285 | #beaker.session.type = ext:database |
|
286 | #beaker.session.type = ext:database | |
286 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
287 | #beaker.session.table_name = db_session |
|
288 | #beaker.session.table_name = db_session | |
288 |
|
289 | |||
289 | ## encrypted cookie client side session, good for many instances ## |
|
290 | ## encrypted cookie client side session, good for many instances ## | |
290 | #beaker.session.type = cookie |
|
291 | #beaker.session.type = cookie | |
291 |
|
292 | |||
292 | ## file based cookies (default) ## |
|
293 | ## file based cookies (default) ## | |
293 | #beaker.session.type = file |
|
294 | #beaker.session.type = file | |
294 |
|
295 | |||
295 |
|
296 | |||
296 | beaker.session.key = rhodecode |
|
297 | beaker.session.key = rhodecode | |
297 | ## secure cookie requires AES python libraries |
|
298 | ## secure cookie requires AES python libraries | |
298 | #beaker.session.encrypt_key = <key_for_encryption> |
|
299 | #beaker.session.encrypt_key = <key_for_encryption> | |
299 | #beaker.session.validate_key = <validation_key> |
|
300 | #beaker.session.validate_key = <validation_key> | |
300 |
|
301 | |||
301 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
302 | ## sets session as invalid if it haven't been accessed for given amount of time | |
302 | beaker.session.timeout = 2592000 |
|
303 | beaker.session.timeout = 2592000 | |
303 | beaker.session.httponly = true |
|
304 | beaker.session.httponly = true | |
304 | #beaker.session.cookie_path = /<your-prefix> |
|
305 | #beaker.session.cookie_path = /<your-prefix> | |
305 |
|
306 | |||
306 | ## uncomment for https secure cookie |
|
307 | ## uncomment for https secure cookie | |
307 | beaker.session.secure = false |
|
308 | beaker.session.secure = false | |
308 |
|
309 | |||
309 | ## auto save the session to not to use .save() |
|
310 | ## auto save the session to not to use .save() | |
310 | beaker.session.auto = False |
|
311 | beaker.session.auto = False | |
311 |
|
312 | |||
312 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
313 | ## default cookie expiration time in seconds `true` expire at browser close ## | |
313 | #beaker.session.cookie_expires = 3600 |
|
314 | #beaker.session.cookie_expires = 3600 | |
314 |
|
315 | |||
315 |
|
316 | |||
316 | ############################ |
|
317 | ############################ | |
317 | ## ERROR HANDLING SYSTEMS ## |
|
318 | ## ERROR HANDLING SYSTEMS ## | |
318 | ############################ |
|
319 | ############################ | |
319 |
|
320 | |||
320 | #################### |
|
321 | #################### | |
321 | ### [errormator] ### |
|
322 | ### [errormator] ### | |
322 | #################### |
|
323 | #################### | |
323 |
|
324 | |||
324 | ## Errormator is tailored to work with RhodeCode, see |
|
325 | ## Errormator is tailored to work with RhodeCode, see | |
325 | ## http://errormator.com for details how to obtain an account |
|
326 | ## http://errormator.com for details how to obtain an account | |
326 | ## you must install python package `errormator_client` to make it work |
|
327 | ## you must install python package `errormator_client` to make it work | |
327 |
|
328 | |||
328 | ## errormator enabled |
|
329 | ## errormator enabled | |
329 | errormator = false |
|
330 | errormator = false | |
330 |
|
331 | |||
331 | errormator.server_url = https://api.errormator.com |
|
332 | errormator.server_url = https://api.errormator.com | |
332 | errormator.api_key = YOUR_API_KEY |
|
333 | errormator.api_key = YOUR_API_KEY | |
333 |
|
334 | |||
334 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
335 | ## TWEAK AMOUNT OF INFO SENT HERE | |
335 |
|
336 | |||
336 | ## enables 404 error logging (default False) |
|
337 | ## enables 404 error logging (default False) | |
337 | errormator.report_404 = false |
|
338 | errormator.report_404 = false | |
338 |
|
339 | |||
339 | ## time in seconds after request is considered being slow (default 1) |
|
340 | ## time in seconds after request is considered being slow (default 1) | |
340 | errormator.slow_request_time = 1 |
|
341 | errormator.slow_request_time = 1 | |
341 |
|
342 | |||
342 | ## record slow requests in application |
|
343 | ## record slow requests in application | |
343 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
344 | ## (needs to be enabled for slow datastore recording and time tracking) | |
344 | errormator.slow_requests = true |
|
345 | errormator.slow_requests = true | |
345 |
|
346 | |||
346 | ## enable hooking to application loggers |
|
347 | ## enable hooking to application loggers | |
347 | # errormator.logging = true |
|
348 | # errormator.logging = true | |
348 |
|
349 | |||
349 | ## minimum log level for log capture |
|
350 | ## minimum log level for log capture | |
350 | # errormator.logging.level = WARNING |
|
351 | # errormator.logging.level = WARNING | |
351 |
|
352 | |||
352 | ## send logs only from erroneous/slow requests |
|
353 | ## send logs only from erroneous/slow requests | |
353 | ## (saves API quota for intensive logging) |
|
354 | ## (saves API quota for intensive logging) | |
354 | errormator.logging_on_error = false |
|
355 | errormator.logging_on_error = false | |
355 |
|
356 | |||
356 | ## list of additonal keywords that should be grabbed from environ object |
|
357 | ## list of additonal keywords that should be grabbed from environ object | |
357 | ## can be string with comma separated list of words in lowercase |
|
358 | ## can be string with comma separated list of words in lowercase | |
358 | ## (by default client will always send following info: |
|
359 | ## (by default client will always send following info: | |
359 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that | |
360 | ## start with HTTP* this list be extended with additional keywords here |
|
361 | ## start with HTTP* this list be extended with additional keywords here | |
361 | errormator.environ_keys_whitelist = |
|
362 | errormator.environ_keys_whitelist = | |
362 |
|
363 | |||
363 |
|
364 | |||
364 | ## list of keywords that should be blanked from request object |
|
365 | ## list of keywords that should be blanked from request object | |
365 | ## can be string with comma separated list of words in lowercase |
|
366 | ## can be string with comma separated list of words in lowercase | |
366 | ## (by default client will always blank keys that contain following words |
|
367 | ## (by default client will always blank keys that contain following words | |
367 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' | |
368 | ## this list be extended with additional keywords set here |
|
369 | ## this list be extended with additional keywords set here | |
369 | errormator.request_keys_blacklist = |
|
370 | errormator.request_keys_blacklist = | |
370 |
|
371 | |||
371 |
|
372 | |||
372 | ## list of namespaces that should be ignores when gathering log entries |
|
373 | ## list of namespaces that should be ignores when gathering log entries | |
373 | ## can be string with comma separated list of namespaces |
|
374 | ## can be string with comma separated list of namespaces | |
374 | ## (by default the client ignores own entries: errormator_client.client) |
|
375 | ## (by default the client ignores own entries: errormator_client.client) | |
375 | errormator.log_namespace_blacklist = |
|
376 | errormator.log_namespace_blacklist = | |
376 |
|
377 | |||
377 |
|
378 | |||
378 | ################ |
|
379 | ################ | |
379 | ### [sentry] ### |
|
380 | ### [sentry] ### | |
380 | ################ |
|
381 | ################ | |
381 |
|
382 | |||
382 | ## sentry is a alternative open source error aggregator |
|
383 | ## sentry is a alternative open source error aggregator | |
383 | ## you must install python packages `sentry` and `raven` to enable |
|
384 | ## you must install python packages `sentry` and `raven` to enable | |
384 |
|
385 | |||
385 | sentry.dsn = YOUR_DNS |
|
386 | sentry.dsn = YOUR_DNS | |
386 | sentry.servers = |
|
387 | sentry.servers = | |
387 | sentry.name = |
|
388 | sentry.name = | |
388 | sentry.key = |
|
389 | sentry.key = | |
389 | sentry.public_key = |
|
390 | sentry.public_key = | |
390 | sentry.secret_key = |
|
391 | sentry.secret_key = | |
391 | sentry.project = |
|
392 | sentry.project = | |
392 | sentry.site = |
|
393 | sentry.site = | |
393 | sentry.include_paths = |
|
394 | sentry.include_paths = | |
394 | sentry.exclude_paths = |
|
395 | sentry.exclude_paths = | |
395 |
|
396 | |||
396 |
|
397 | |||
397 | ################################################################################ |
|
398 | ################################################################################ | |
398 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
399 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
400 | ## execute malicious code after an exception is raised. ## |
|
401 | ## execute malicious code after an exception is raised. ## | |
401 | ################################################################################ |
|
402 | ################################################################################ | |
402 | #set debug = false |
|
403 | #set debug = false | |
403 |
|
404 | |||
404 | ################################## |
|
405 | ################################## | |
405 | ### LOGVIEW CONFIG ### |
|
406 | ### LOGVIEW CONFIG ### | |
406 | ################################## |
|
407 | ################################## | |
407 | logview.sqlalchemy = #faa |
|
408 | logview.sqlalchemy = #faa | |
408 | logview.pylons.templating = #bfb |
|
409 | logview.pylons.templating = #bfb | |
409 | logview.pylons.util = #eee |
|
410 | logview.pylons.util = #eee | |
410 |
|
411 | |||
411 | ######################################################### |
|
412 | ######################################################### | |
412 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
413 | ######################################################### |
|
414 | ######################################################### | |
414 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
415 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
415 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
416 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode | |
416 | sqlalchemy.db1.echo = false |
|
417 | sqlalchemy.db1.echo = false | |
417 | sqlalchemy.db1.pool_recycle = 3600 |
|
418 | sqlalchemy.db1.pool_recycle = 3600 | |
418 | sqlalchemy.db1.convert_unicode = true |
|
419 | sqlalchemy.db1.convert_unicode = true | |
419 |
|
420 | |||
420 | ################################ |
|
421 | ################################ | |
421 | ### LOGGING CONFIGURATION #### |
|
422 | ### LOGGING CONFIGURATION #### | |
422 | ################################ |
|
423 | ################################ | |
423 | [loggers] |
|
424 | [loggers] | |
424 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
425 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer | |
425 |
|
426 | |||
426 | [handlers] |
|
427 | [handlers] | |
427 | keys = console, console_sql |
|
428 | keys = console, console_sql | |
428 |
|
429 | |||
429 | [formatters] |
|
430 | [formatters] | |
430 | keys = generic, color_formatter, color_formatter_sql |
|
431 | keys = generic, color_formatter, color_formatter_sql | |
431 |
|
432 | |||
432 | ############# |
|
433 | ############# | |
433 | ## LOGGERS ## |
|
434 | ## LOGGERS ## | |
434 | ############# |
|
435 | ############# | |
435 | [logger_root] |
|
436 | [logger_root] | |
436 | level = NOTSET |
|
437 | level = NOTSET | |
437 | handlers = console |
|
438 | handlers = console | |
438 |
|
439 | |||
439 | [logger_routes] |
|
440 | [logger_routes] | |
440 | level = DEBUG |
|
441 | level = DEBUG | |
441 | handlers = |
|
442 | handlers = | |
442 | qualname = routes.middleware |
|
443 | qualname = routes.middleware | |
443 | ## "level = DEBUG" logs the route matched and routing variables. |
|
444 | ## "level = DEBUG" logs the route matched and routing variables. | |
444 | propagate = 1 |
|
445 | propagate = 1 | |
445 |
|
446 | |||
446 | [logger_beaker] |
|
447 | [logger_beaker] | |
447 | level = DEBUG |
|
448 | level = DEBUG | |
448 | handlers = |
|
449 | handlers = | |
449 | qualname = beaker.container |
|
450 | qualname = beaker.container | |
450 | propagate = 1 |
|
451 | propagate = 1 | |
451 |
|
452 | |||
452 | [logger_templates] |
|
453 | [logger_templates] | |
453 | level = INFO |
|
454 | level = INFO | |
454 | handlers = |
|
455 | handlers = | |
455 | qualname = pylons.templating |
|
456 | qualname = pylons.templating | |
456 | propagate = 1 |
|
457 | propagate = 1 | |
457 |
|
458 | |||
458 | [logger_rhodecode] |
|
459 | [logger_rhodecode] | |
459 | level = DEBUG |
|
460 | level = DEBUG | |
460 | handlers = |
|
461 | handlers = | |
461 | qualname = rhodecode |
|
462 | qualname = rhodecode | |
462 | propagate = 1 |
|
463 | propagate = 1 | |
463 |
|
464 | |||
464 | [logger_sqlalchemy] |
|
465 | [logger_sqlalchemy] | |
465 | level = INFO |
|
466 | level = INFO | |
466 | handlers = console_sql |
|
467 | handlers = console_sql | |
467 | qualname = sqlalchemy.engine |
|
468 | qualname = sqlalchemy.engine | |
468 | propagate = 0 |
|
469 | propagate = 0 | |
469 |
|
470 | |||
470 | [logger_whoosh_indexer] |
|
471 | [logger_whoosh_indexer] | |
471 | level = DEBUG |
|
472 | level = DEBUG | |
472 | handlers = |
|
473 | handlers = | |
473 | qualname = whoosh_indexer |
|
474 | qualname = whoosh_indexer | |
474 | propagate = 1 |
|
475 | propagate = 1 | |
475 |
|
476 | |||
476 | ############## |
|
477 | ############## | |
477 | ## HANDLERS ## |
|
478 | ## HANDLERS ## | |
478 | ############## |
|
479 | ############## | |
479 |
|
480 | |||
480 | [handler_console] |
|
481 | [handler_console] | |
481 | class = StreamHandler |
|
482 | class = StreamHandler | |
482 | args = (sys.stderr,) |
|
483 | args = (sys.stderr,) | |
483 | level = DEBUG |
|
484 | level = DEBUG | |
484 | formatter = color_formatter |
|
485 | formatter = color_formatter | |
485 |
|
486 | |||
486 | [handler_console_sql] |
|
487 | [handler_console_sql] | |
487 | class = StreamHandler |
|
488 | class = StreamHandler | |
488 | args = (sys.stderr,) |
|
489 | args = (sys.stderr,) | |
489 | level = DEBUG |
|
490 | level = DEBUG | |
490 | formatter = color_formatter_sql |
|
491 | formatter = color_formatter_sql | |
491 |
|
492 | |||
492 | ################ |
|
493 | ################ | |
493 | ## FORMATTERS ## |
|
494 | ## FORMATTERS ## | |
494 | ################ |
|
495 | ################ | |
495 |
|
496 | |||
496 | [formatter_generic] |
|
497 | [formatter_generic] | |
497 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
498 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
498 | datefmt = %Y-%m-%d %H:%M:%S |
|
499 | datefmt = %Y-%m-%d %H:%M:%S | |
499 |
|
500 | |||
500 | [formatter_color_formatter] |
|
501 | [formatter_color_formatter] | |
501 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
502 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
502 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
503 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
503 | datefmt = %Y-%m-%d %H:%M:%S |
|
504 | datefmt = %Y-%m-%d %H:%M:%S | |
504 |
|
505 | |||
505 | [formatter_color_formatter_sql] |
|
506 | [formatter_color_formatter_sql] | |
506 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
507 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
507 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
508 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
508 | datefmt = %Y-%m-%d %H:%M:%S |
|
509 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,508 +1,509 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ## PASTE ## |
|
32 | ## PASTE ## | |
33 | #use = egg:Paste#http |
|
33 | #use = egg:Paste#http | |
34 | ## nr of worker threads to spawn |
|
34 | ## nr of worker threads to spawn | |
35 | #threadpool_workers = 5 |
|
35 | #threadpool_workers = 5 | |
36 | ## max request before thread respawn |
|
36 | ## max request before thread respawn | |
37 | #threadpool_max_requests = 10 |
|
37 | #threadpool_max_requests = 10 | |
38 | ## option to use threads of process |
|
38 | ## option to use threads of process | |
39 | #use_threadpool = true |
|
39 | #use_threadpool = true | |
40 |
|
40 | |||
41 | ## WAITRESS ## |
|
41 | ## WAITRESS ## | |
42 | use = egg:waitress#main |
|
42 | use = egg:waitress#main | |
43 | ## number of worker threads |
|
43 | ## number of worker threads | |
44 | threads = 5 |
|
44 | threads = 5 | |
45 | ## MAX BODY SIZE 100GB |
|
45 | ## MAX BODY SIZE 100GB | |
46 | max_request_body_size = 107374182400 |
|
46 | max_request_body_size = 107374182400 | |
47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
47 | ## use poll instead of select, fixes fd limits, may not work on old | |
48 | ## windows systems. |
|
48 | ## windows systems. | |
49 | asyncore_use_poll = True |
|
49 | asyncore_use_poll = True | |
50 |
|
50 | |||
51 | ## GUNICORN ## |
|
51 | ## GUNICORN ## | |
52 | #use = egg:gunicorn#main |
|
52 | #use = egg:gunicorn#main | |
53 |
## number of process workers. |
|
53 | ## number of process workers. You must set `instance_id = *` when this option | |
|
54 | ## is set to more than one worker | |||
54 | #workers = 1 |
|
55 | #workers = 1 | |
55 | ## process name |
|
56 | ## process name | |
56 | #proc_name = rhodecode |
|
57 | #proc_name = rhodecode | |
57 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
58 | ## type of worker class, one of sync, eventlet, gevent, tornado | |
58 | ## recommended for bigger setup is using of of other than sync one |
|
59 | ## recommended for bigger setup is using of of other than sync one | |
59 | #worker-class = sync |
|
60 | #worker-class = sync | |
60 | #max-requests = 5 |
|
61 | #max-requests = 5 | |
61 |
|
62 | |||
62 | ## COMMON ## |
|
63 | ## COMMON ## | |
63 | host = 127.0.0.1 |
|
64 | host = 127.0.0.1 | |
64 | port = 5000 |
|
65 | port = 5000 | |
65 |
|
66 | |||
66 | ## prefix middleware for rc |
|
67 | ## prefix middleware for rc | |
67 | #[filter:proxy-prefix] |
|
68 | #[filter:proxy-prefix] | |
68 | #use = egg:PasteDeploy#prefix |
|
69 | #use = egg:PasteDeploy#prefix | |
69 | #prefix = /<your-prefix> |
|
70 | #prefix = /<your-prefix> | |
70 |
|
71 | |||
71 | [app:main] |
|
72 | [app:main] | |
72 | use = egg:rhodecode |
|
73 | use = egg:rhodecode | |
73 | ## enable proxy prefix middleware |
|
74 | ## enable proxy prefix middleware | |
74 | #filter-with = proxy-prefix |
|
75 | #filter-with = proxy-prefix | |
75 |
|
76 | |||
76 | full_stack = true |
|
77 | full_stack = true | |
77 | static_files = true |
|
78 | static_files = true | |
78 | ## Optional Languages |
|
79 | ## Optional Languages | |
79 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
80 | lang = en |
|
81 | lang = en | |
81 | cache_dir = %(here)s/data |
|
82 | cache_dir = %(here)s/data | |
82 | index_dir = %(here)s/data/index |
|
83 | index_dir = %(here)s/data/index | |
83 |
|
84 | |||
84 | ## perform a full repository scan on each server start, this should be |
|
85 | ## perform a full repository scan on each server start, this should be | |
85 | ## set to false after first startup, to allow faster server restarts. |
|
86 | ## set to false after first startup, to allow faster server restarts. | |
86 | initial_repo_scan = true |
|
87 | initial_repo_scan = true | |
87 |
|
88 | |||
88 | ## uncomment and set this path to use archive download cache |
|
89 | ## uncomment and set this path to use archive download cache | |
89 | #archive_cache_dir = /tmp/tarballcache |
|
90 | #archive_cache_dir = /tmp/tarballcache | |
90 |
|
91 | |||
91 | ## change this to unique ID for security |
|
92 | ## change this to unique ID for security | |
92 | app_instance_uuid = rc-production |
|
93 | app_instance_uuid = rc-production | |
93 |
|
94 | |||
94 | ## cut off limit for large diffs (size in bytes) |
|
95 | ## cut off limit for large diffs (size in bytes) | |
95 | cut_off_limit = 256000 |
|
96 | cut_off_limit = 256000 | |
96 |
|
97 | |||
97 | ## use cache version of scm repo everywhere |
|
98 | ## use cache version of scm repo everywhere | |
98 | vcs_full_cache = true |
|
99 | vcs_full_cache = true | |
99 |
|
100 | |||
100 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https | |
101 | force_https = false |
|
102 | force_https = false | |
102 |
|
103 | |||
103 | ## use Strict-Transport-Security headers |
|
104 | ## use Strict-Transport-Security headers | |
104 | use_htsts = false |
|
105 | use_htsts = false | |
105 |
|
106 | |||
106 | ## number of commits stats will parse on each iteration |
|
107 | ## number of commits stats will parse on each iteration | |
107 | commit_parse_limit = 25 |
|
108 | commit_parse_limit = 25 | |
108 |
|
109 | |||
109 | ## use gravatar service to display avatars |
|
110 | ## use gravatar service to display avatars | |
110 | use_gravatar = true |
|
111 | use_gravatar = true | |
111 |
|
112 | |||
112 | ## path to git executable |
|
113 | ## path to git executable | |
113 | git_path = git |
|
114 | git_path = git | |
114 |
|
115 | |||
115 | ## git rev filter option, --all is the default filter, if you need to |
|
116 | ## git rev filter option, --all is the default filter, if you need to | |
116 | ## hide all refs in changelog switch this to --branches --tags |
|
117 | ## hide all refs in changelog switch this to --branches --tags | |
117 | git_rev_filter=--all |
|
118 | git_rev_filter=--all | |
118 |
|
119 | |||
119 | ## RSS feed options |
|
120 | ## RSS feed options | |
120 | rss_cut_off_limit = 256000 |
|
121 | rss_cut_off_limit = 256000 | |
121 | rss_items_per_page = 10 |
|
122 | rss_items_per_page = 10 | |
122 | rss_include_diff = false |
|
123 | rss_include_diff = false | |
123 |
|
124 | |||
124 | ## options for showing and identifying changesets |
|
125 | ## options for showing and identifying changesets | |
125 | show_sha_length = 12 |
|
126 | show_sha_length = 12 | |
126 | show_revision_number = true |
|
127 | show_revision_number = true | |
127 |
|
128 | |||
128 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
129 | ## gist URL alias, used to create nicer urls for gist. This should be an | |
129 | ## url that does rewrites to _admin/gists/<gistid>. |
|
130 | ## url that does rewrites to _admin/gists/<gistid>. | |
130 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal | |
131 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> | |
132 | gist_alias_url = |
|
133 | gist_alias_url = | |
133 |
|
134 | |||
134 | ## white list of API enabled controllers. This allows to add list of |
|
135 | ## white list of API enabled controllers. This allows to add list of | |
135 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
136 | ## controllers to which access will be enabled by api_key. eg: to enable | |
136 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches | |
137 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated | |
138 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names | |
139 | api_access_controllers_whitelist = |
|
140 | api_access_controllers_whitelist = | |
140 |
|
141 | |||
141 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
142 | ## alternative_gravatar_url allows you to use your own avatar server application | |
142 | ## the following parts of the URL will be replaced |
|
143 | ## the following parts of the URL will be replaced | |
143 | ## {email} user email |
|
144 | ## {email} user email | |
144 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
145 | ## {md5email} md5 hash of the user email (like at gravatar.com) | |
145 | ## {size} size of the image that is expected from the server application |
|
146 | ## {size} size of the image that is expected from the server application | |
146 | ## {scheme} http/https from RhodeCode server |
|
147 | ## {scheme} http/https from RhodeCode server | |
147 | ## {netloc} network location from RhodeCode server |
|
148 | ## {netloc} network location from RhodeCode server | |
148 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} | |
149 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} | |
150 |
|
151 | |||
151 |
|
152 | |||
152 | ## container auth options |
|
153 | ## container auth options | |
153 | container_auth_enabled = false |
|
154 | container_auth_enabled = false | |
154 | proxypass_auth_enabled = false |
|
155 | proxypass_auth_enabled = false | |
155 |
|
156 | |||
156 | ## default encoding used to convert from and to unicode |
|
157 | ## default encoding used to convert from and to unicode | |
157 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
158 | ## can be also a comma seperated list of encoding in case of mixed encodings | |
158 | default_encoding = utf8 |
|
159 | default_encoding = utf8 | |
159 |
|
160 | |||
160 | ## overwrite schema of clone url |
|
161 | ## overwrite schema of clone url | |
161 | ## available vars: |
|
162 | ## available vars: | |
162 | ## scheme - http/https |
|
163 | ## scheme - http/https | |
163 | ## user - current user |
|
164 | ## user - current user | |
164 | ## pass - password |
|
165 | ## pass - password | |
165 | ## netloc - network location |
|
166 | ## netloc - network location | |
166 | ## path - usually repo_name |
|
167 | ## path - usually repo_name | |
167 |
|
168 | |||
168 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
169 |
|
170 | |||
170 | ## issue tracking mapping for commits messages |
|
171 | ## issue tracking mapping for commits messages | |
171 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
172 | ## comment out issue_pat, issue_server, issue_prefix to enable | |
172 |
|
173 | |||
173 | ## pattern to get the issues from commit messages |
|
174 | ## pattern to get the issues from commit messages | |
174 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
175 | ## default one used here is #<numbers> with a regex passive group for `#` | |
175 | ## {id} will be all groups matched from this pattern |
|
176 | ## {id} will be all groups matched from this pattern | |
176 |
|
177 | |||
177 | issue_pat = (?:\s*#)(\d+) |
|
178 | issue_pat = (?:\s*#)(\d+) | |
178 |
|
179 | |||
179 | ## server url to the issue, each {id} will be replaced with match |
|
180 | ## server url to the issue, each {id} will be replaced with match | |
180 | ## fetched from the regex and {repo} is replaced with full repository name |
|
181 | ## fetched from the regex and {repo} is replaced with full repository name | |
181 | ## including groups {repo_name} is replaced with just name of repo |
|
182 | ## including groups {repo_name} is replaced with just name of repo | |
182 |
|
183 | |||
183 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} | |
184 |
|
185 | |||
185 | ## prefix to add to link to indicate it's an url |
|
186 | ## prefix to add to link to indicate it's an url | |
186 | ## #314 will be replaced by <issue_prefix><id> |
|
187 | ## #314 will be replaced by <issue_prefix><id> | |
187 |
|
188 | |||
188 | issue_prefix = # |
|
189 | issue_prefix = # | |
189 |
|
190 | |||
190 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify | |
191 | ## multiple patterns, to other issues server, wiki or others |
|
192 | ## multiple patterns, to other issues server, wiki or others | |
192 | ## below an example how to create a wiki pattern |
|
193 | ## below an example how to create a wiki pattern | |
193 | # #wiki-some-id -> https://mywiki.com/some-id |
|
194 | # #wiki-some-id -> https://mywiki.com/some-id | |
194 |
|
195 | |||
195 | #issue_pat_wiki = (?:wiki-)(.+) |
|
196 | #issue_pat_wiki = (?:wiki-)(.+) | |
196 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
197 | #issue_server_link_wiki = https://mywiki.com/{id} | |
197 | #issue_prefix_wiki = WIKI- |
|
198 | #issue_prefix_wiki = WIKI- | |
198 |
|
199 | |||
199 |
|
200 | |||
200 | ## instance-id prefix |
|
201 | ## instance-id prefix | |
201 | ## a prefix key for this instance used for cache invalidation when running |
|
202 | ## a prefix key for this instance used for cache invalidation when running | |
202 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
203 | ## multiple instances of rhodecode, make sure it's globally unique for | |
203 | ## all running rhodecode instances. Leave empty if you don't use it |
|
204 | ## all running rhodecode instances. Leave empty if you don't use it | |
204 | instance_id = |
|
205 | instance_id = | |
205 |
|
206 | |||
206 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
207 | ## alternative return HTTP header for failed authentication. Default HTTP | |
207 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
208 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
209 | ## handling that. Set this variable to 403 to return HTTPForbidden | |
209 | auth_ret_code = |
|
210 | auth_ret_code = | |
210 |
|
211 | |||
211 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
212 | ## locking return code. When repository is locked return this HTTP code. 2XX | |
212 | ## codes don't break the transactions while 4XX codes do |
|
213 | ## codes don't break the transactions while 4XX codes do | |
213 | lock_ret_code = 423 |
|
214 | lock_ret_code = 423 | |
214 |
|
215 | |||
215 | allow_repo_location_change = True |
|
216 | allow_repo_location_change = True | |
216 |
|
217 | |||
217 | #################################### |
|
218 | #################################### | |
218 | ### CELERY CONFIG #### |
|
219 | ### CELERY CONFIG #### | |
219 | #################################### |
|
220 | #################################### | |
220 | use_celery = false |
|
221 | use_celery = false | |
221 | broker.host = localhost |
|
222 | broker.host = localhost | |
222 | broker.vhost = rabbitmqhost |
|
223 | broker.vhost = rabbitmqhost | |
223 | broker.port = 5672 |
|
224 | broker.port = 5672 | |
224 | broker.user = rabbitmq |
|
225 | broker.user = rabbitmq | |
225 | broker.password = qweqwe |
|
226 | broker.password = qweqwe | |
226 |
|
227 | |||
227 | celery.imports = rhodecode.lib.celerylib.tasks |
|
228 | celery.imports = rhodecode.lib.celerylib.tasks | |
228 |
|
229 | |||
229 | celery.result.backend = amqp |
|
230 | celery.result.backend = amqp | |
230 | celery.result.dburi = amqp:// |
|
231 | celery.result.dburi = amqp:// | |
231 | celery.result.serialier = json |
|
232 | celery.result.serialier = json | |
232 |
|
233 | |||
233 | #celery.send.task.error.emails = true |
|
234 | #celery.send.task.error.emails = true | |
234 | #celery.amqp.task.result.expires = 18000 |
|
235 | #celery.amqp.task.result.expires = 18000 | |
235 |
|
236 | |||
236 | celeryd.concurrency = 2 |
|
237 | celeryd.concurrency = 2 | |
237 | #celeryd.log.file = celeryd.log |
|
238 | #celeryd.log.file = celeryd.log | |
238 | celeryd.log.level = debug |
|
239 | celeryd.log.level = debug | |
239 | celeryd.max.tasks.per.child = 1 |
|
240 | celeryd.max.tasks.per.child = 1 | |
240 |
|
241 | |||
241 | ## tasks will never be sent to the queue, but executed locally instead. |
|
242 | ## tasks will never be sent to the queue, but executed locally instead. | |
242 | celery.always.eager = false |
|
243 | celery.always.eager = false | |
243 |
|
244 | |||
244 | #################################### |
|
245 | #################################### | |
245 | ### BEAKER CACHE #### |
|
246 | ### BEAKER CACHE #### | |
246 | #################################### |
|
247 | #################################### | |
247 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
248 | beaker.cache.data_dir=%(here)s/data/cache/data | |
248 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
249 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
249 |
|
250 | |||
250 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
251 |
|
252 | |||
252 | beaker.cache.super_short_term.type=memory |
|
253 | beaker.cache.super_short_term.type=memory | |
253 | beaker.cache.super_short_term.expire=10 |
|
254 | beaker.cache.super_short_term.expire=10 | |
254 | beaker.cache.super_short_term.key_length = 256 |
|
255 | beaker.cache.super_short_term.key_length = 256 | |
255 |
|
256 | |||
256 | beaker.cache.short_term.type=memory |
|
257 | beaker.cache.short_term.type=memory | |
257 | beaker.cache.short_term.expire=60 |
|
258 | beaker.cache.short_term.expire=60 | |
258 | beaker.cache.short_term.key_length = 256 |
|
259 | beaker.cache.short_term.key_length = 256 | |
259 |
|
260 | |||
260 | beaker.cache.long_term.type=memory |
|
261 | beaker.cache.long_term.type=memory | |
261 | beaker.cache.long_term.expire=36000 |
|
262 | beaker.cache.long_term.expire=36000 | |
262 | beaker.cache.long_term.key_length = 256 |
|
263 | beaker.cache.long_term.key_length = 256 | |
263 |
|
264 | |||
264 | beaker.cache.sql_cache_short.type=memory |
|
265 | beaker.cache.sql_cache_short.type=memory | |
265 | beaker.cache.sql_cache_short.expire=10 |
|
266 | beaker.cache.sql_cache_short.expire=10 | |
266 | beaker.cache.sql_cache_short.key_length = 256 |
|
267 | beaker.cache.sql_cache_short.key_length = 256 | |
267 |
|
268 | |||
268 | beaker.cache.sql_cache_med.type=memory |
|
269 | beaker.cache.sql_cache_med.type=memory | |
269 | beaker.cache.sql_cache_med.expire=360 |
|
270 | beaker.cache.sql_cache_med.expire=360 | |
270 | beaker.cache.sql_cache_med.key_length = 256 |
|
271 | beaker.cache.sql_cache_med.key_length = 256 | |
271 |
|
272 | |||
272 | beaker.cache.sql_cache_long.type=file |
|
273 | beaker.cache.sql_cache_long.type=file | |
273 | beaker.cache.sql_cache_long.expire=3600 |
|
274 | beaker.cache.sql_cache_long.expire=3600 | |
274 | beaker.cache.sql_cache_long.key_length = 256 |
|
275 | beaker.cache.sql_cache_long.key_length = 256 | |
275 |
|
276 | |||
276 | #################################### |
|
277 | #################################### | |
277 | ### BEAKER SESSION #### |
|
278 | ### BEAKER SESSION #### | |
278 | #################################### |
|
279 | #################################### | |
279 | ## Type of storage used for the session, current types are |
|
280 | ## Type of storage used for the session, current types are | |
280 | ## dbm, file, memcached, database, and memory. |
|
281 | ## dbm, file, memcached, database, and memory. | |
281 | ## The storage uses the Container API |
|
282 | ## The storage uses the Container API | |
282 | ## that is also used by the cache system. |
|
283 | ## that is also used by the cache system. | |
283 |
|
284 | |||
284 | ## db session ## |
|
285 | ## db session ## | |
285 | #beaker.session.type = ext:database |
|
286 | #beaker.session.type = ext:database | |
286 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
287 | #beaker.session.table_name = db_session |
|
288 | #beaker.session.table_name = db_session | |
288 |
|
289 | |||
289 | ## encrypted cookie client side session, good for many instances ## |
|
290 | ## encrypted cookie client side session, good for many instances ## | |
290 | #beaker.session.type = cookie |
|
291 | #beaker.session.type = cookie | |
291 |
|
292 | |||
292 | ## file based cookies (default) ## |
|
293 | ## file based cookies (default) ## | |
293 | #beaker.session.type = file |
|
294 | #beaker.session.type = file | |
294 |
|
295 | |||
295 |
|
296 | |||
296 | beaker.session.key = rhodecode |
|
297 | beaker.session.key = rhodecode | |
297 | ## secure cookie requires AES python libraries |
|
298 | ## secure cookie requires AES python libraries | |
298 | #beaker.session.encrypt_key = <key_for_encryption> |
|
299 | #beaker.session.encrypt_key = <key_for_encryption> | |
299 | #beaker.session.validate_key = <validation_key> |
|
300 | #beaker.session.validate_key = <validation_key> | |
300 |
|
301 | |||
301 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
302 | ## sets session as invalid if it haven't been accessed for given amount of time | |
302 | beaker.session.timeout = 2592000 |
|
303 | beaker.session.timeout = 2592000 | |
303 | beaker.session.httponly = true |
|
304 | beaker.session.httponly = true | |
304 | #beaker.session.cookie_path = /<your-prefix> |
|
305 | #beaker.session.cookie_path = /<your-prefix> | |
305 |
|
306 | |||
306 | ## uncomment for https secure cookie |
|
307 | ## uncomment for https secure cookie | |
307 | beaker.session.secure = false |
|
308 | beaker.session.secure = false | |
308 |
|
309 | |||
309 | ## auto save the session to not to use .save() |
|
310 | ## auto save the session to not to use .save() | |
310 | beaker.session.auto = False |
|
311 | beaker.session.auto = False | |
311 |
|
312 | |||
312 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
313 | ## default cookie expiration time in seconds `true` expire at browser close ## | |
313 | #beaker.session.cookie_expires = 3600 |
|
314 | #beaker.session.cookie_expires = 3600 | |
314 |
|
315 | |||
315 |
|
316 | |||
316 | ############################ |
|
317 | ############################ | |
317 | ## ERROR HANDLING SYSTEMS ## |
|
318 | ## ERROR HANDLING SYSTEMS ## | |
318 | ############################ |
|
319 | ############################ | |
319 |
|
320 | |||
320 | #################### |
|
321 | #################### | |
321 | ### [errormator] ### |
|
322 | ### [errormator] ### | |
322 | #################### |
|
323 | #################### | |
323 |
|
324 | |||
324 | ## Errormator is tailored to work with RhodeCode, see |
|
325 | ## Errormator is tailored to work with RhodeCode, see | |
325 | ## http://errormator.com for details how to obtain an account |
|
326 | ## http://errormator.com for details how to obtain an account | |
326 | ## you must install python package `errormator_client` to make it work |
|
327 | ## you must install python package `errormator_client` to make it work | |
327 |
|
328 | |||
328 | ## errormator enabled |
|
329 | ## errormator enabled | |
329 | errormator = false |
|
330 | errormator = false | |
330 |
|
331 | |||
331 | errormator.server_url = https://api.errormator.com |
|
332 | errormator.server_url = https://api.errormator.com | |
332 | errormator.api_key = YOUR_API_KEY |
|
333 | errormator.api_key = YOUR_API_KEY | |
333 |
|
334 | |||
334 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
335 | ## TWEAK AMOUNT OF INFO SENT HERE | |
335 |
|
336 | |||
336 | ## enables 404 error logging (default False) |
|
337 | ## enables 404 error logging (default False) | |
337 | errormator.report_404 = false |
|
338 | errormator.report_404 = false | |
338 |
|
339 | |||
339 | ## time in seconds after request is considered being slow (default 1) |
|
340 | ## time in seconds after request is considered being slow (default 1) | |
340 | errormator.slow_request_time = 1 |
|
341 | errormator.slow_request_time = 1 | |
341 |
|
342 | |||
342 | ## record slow requests in application |
|
343 | ## record slow requests in application | |
343 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
344 | ## (needs to be enabled for slow datastore recording and time tracking) | |
344 | errormator.slow_requests = true |
|
345 | errormator.slow_requests = true | |
345 |
|
346 | |||
346 | ## enable hooking to application loggers |
|
347 | ## enable hooking to application loggers | |
347 | # errormator.logging = true |
|
348 | # errormator.logging = true | |
348 |
|
349 | |||
349 | ## minimum log level for log capture |
|
350 | ## minimum log level for log capture | |
350 | # errormator.logging.level = WARNING |
|
351 | # errormator.logging.level = WARNING | |
351 |
|
352 | |||
352 | ## send logs only from erroneous/slow requests |
|
353 | ## send logs only from erroneous/slow requests | |
353 | ## (saves API quota for intensive logging) |
|
354 | ## (saves API quota for intensive logging) | |
354 | errormator.logging_on_error = false |
|
355 | errormator.logging_on_error = false | |
355 |
|
356 | |||
356 | ## list of additonal keywords that should be grabbed from environ object |
|
357 | ## list of additonal keywords that should be grabbed from environ object | |
357 | ## can be string with comma separated list of words in lowercase |
|
358 | ## can be string with comma separated list of words in lowercase | |
358 | ## (by default client will always send following info: |
|
359 | ## (by default client will always send following info: | |
359 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that | |
360 | ## start with HTTP* this list be extended with additional keywords here |
|
361 | ## start with HTTP* this list be extended with additional keywords here | |
361 | errormator.environ_keys_whitelist = |
|
362 | errormator.environ_keys_whitelist = | |
362 |
|
363 | |||
363 |
|
364 | |||
364 | ## list of keywords that should be blanked from request object |
|
365 | ## list of keywords that should be blanked from request object | |
365 | ## can be string with comma separated list of words in lowercase |
|
366 | ## can be string with comma separated list of words in lowercase | |
366 | ## (by default client will always blank keys that contain following words |
|
367 | ## (by default client will always blank keys that contain following words | |
367 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' | |
368 | ## this list be extended with additional keywords set here |
|
369 | ## this list be extended with additional keywords set here | |
369 | errormator.request_keys_blacklist = |
|
370 | errormator.request_keys_blacklist = | |
370 |
|
371 | |||
371 |
|
372 | |||
372 | ## list of namespaces that should be ignores when gathering log entries |
|
373 | ## list of namespaces that should be ignores when gathering log entries | |
373 | ## can be string with comma separated list of namespaces |
|
374 | ## can be string with comma separated list of namespaces | |
374 | ## (by default the client ignores own entries: errormator_client.client) |
|
375 | ## (by default the client ignores own entries: errormator_client.client) | |
375 | errormator.log_namespace_blacklist = |
|
376 | errormator.log_namespace_blacklist = | |
376 |
|
377 | |||
377 |
|
378 | |||
378 | ################ |
|
379 | ################ | |
379 | ### [sentry] ### |
|
380 | ### [sentry] ### | |
380 | ################ |
|
381 | ################ | |
381 |
|
382 | |||
382 | ## sentry is a alternative open source error aggregator |
|
383 | ## sentry is a alternative open source error aggregator | |
383 | ## you must install python packages `sentry` and `raven` to enable |
|
384 | ## you must install python packages `sentry` and `raven` to enable | |
384 |
|
385 | |||
385 | sentry.dsn = YOUR_DNS |
|
386 | sentry.dsn = YOUR_DNS | |
386 | sentry.servers = |
|
387 | sentry.servers = | |
387 | sentry.name = |
|
388 | sentry.name = | |
388 | sentry.key = |
|
389 | sentry.key = | |
389 | sentry.public_key = |
|
390 | sentry.public_key = | |
390 | sentry.secret_key = |
|
391 | sentry.secret_key = | |
391 | sentry.project = |
|
392 | sentry.project = | |
392 | sentry.site = |
|
393 | sentry.site = | |
393 | sentry.include_paths = |
|
394 | sentry.include_paths = | |
394 | sentry.exclude_paths = |
|
395 | sentry.exclude_paths = | |
395 |
|
396 | |||
396 |
|
397 | |||
397 | ################################################################################ |
|
398 | ################################################################################ | |
398 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
399 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
400 | ## execute malicious code after an exception is raised. ## |
|
401 | ## execute malicious code after an exception is raised. ## | |
401 | ################################################################################ |
|
402 | ################################################################################ | |
402 | set debug = false |
|
403 | set debug = false | |
403 |
|
404 | |||
404 | ################################## |
|
405 | ################################## | |
405 | ### LOGVIEW CONFIG ### |
|
406 | ### LOGVIEW CONFIG ### | |
406 | ################################## |
|
407 | ################################## | |
407 | logview.sqlalchemy = #faa |
|
408 | logview.sqlalchemy = #faa | |
408 | logview.pylons.templating = #bfb |
|
409 | logview.pylons.templating = #bfb | |
409 | logview.pylons.util = #eee |
|
410 | logview.pylons.util = #eee | |
410 |
|
411 | |||
411 | ######################################################### |
|
412 | ######################################################### | |
412 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
413 | ######################################################### |
|
414 | ######################################################### | |
414 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
415 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
415 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
416 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode | |
416 | sqlalchemy.db1.echo = false |
|
417 | sqlalchemy.db1.echo = false | |
417 | sqlalchemy.db1.pool_recycle = 3600 |
|
418 | sqlalchemy.db1.pool_recycle = 3600 | |
418 | sqlalchemy.db1.convert_unicode = true |
|
419 | sqlalchemy.db1.convert_unicode = true | |
419 |
|
420 | |||
420 | ################################ |
|
421 | ################################ | |
421 | ### LOGGING CONFIGURATION #### |
|
422 | ### LOGGING CONFIGURATION #### | |
422 | ################################ |
|
423 | ################################ | |
423 | [loggers] |
|
424 | [loggers] | |
424 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
425 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer | |
425 |
|
426 | |||
426 | [handlers] |
|
427 | [handlers] | |
427 | keys = console, console_sql |
|
428 | keys = console, console_sql | |
428 |
|
429 | |||
429 | [formatters] |
|
430 | [formatters] | |
430 | keys = generic, color_formatter, color_formatter_sql |
|
431 | keys = generic, color_formatter, color_formatter_sql | |
431 |
|
432 | |||
432 | ############# |
|
433 | ############# | |
433 | ## LOGGERS ## |
|
434 | ## LOGGERS ## | |
434 | ############# |
|
435 | ############# | |
435 | [logger_root] |
|
436 | [logger_root] | |
436 | level = NOTSET |
|
437 | level = NOTSET | |
437 | handlers = console |
|
438 | handlers = console | |
438 |
|
439 | |||
439 | [logger_routes] |
|
440 | [logger_routes] | |
440 | level = DEBUG |
|
441 | level = DEBUG | |
441 | handlers = |
|
442 | handlers = | |
442 | qualname = routes.middleware |
|
443 | qualname = routes.middleware | |
443 | ## "level = DEBUG" logs the route matched and routing variables. |
|
444 | ## "level = DEBUG" logs the route matched and routing variables. | |
444 | propagate = 1 |
|
445 | propagate = 1 | |
445 |
|
446 | |||
446 | [logger_beaker] |
|
447 | [logger_beaker] | |
447 | level = DEBUG |
|
448 | level = DEBUG | |
448 | handlers = |
|
449 | handlers = | |
449 | qualname = beaker.container |
|
450 | qualname = beaker.container | |
450 | propagate = 1 |
|
451 | propagate = 1 | |
451 |
|
452 | |||
452 | [logger_templates] |
|
453 | [logger_templates] | |
453 | level = INFO |
|
454 | level = INFO | |
454 | handlers = |
|
455 | handlers = | |
455 | qualname = pylons.templating |
|
456 | qualname = pylons.templating | |
456 | propagate = 1 |
|
457 | propagate = 1 | |
457 |
|
458 | |||
458 | [logger_rhodecode] |
|
459 | [logger_rhodecode] | |
459 | level = DEBUG |
|
460 | level = DEBUG | |
460 | handlers = |
|
461 | handlers = | |
461 | qualname = rhodecode |
|
462 | qualname = rhodecode | |
462 | propagate = 1 |
|
463 | propagate = 1 | |
463 |
|
464 | |||
464 | [logger_sqlalchemy] |
|
465 | [logger_sqlalchemy] | |
465 | level = INFO |
|
466 | level = INFO | |
466 | handlers = console_sql |
|
467 | handlers = console_sql | |
467 | qualname = sqlalchemy.engine |
|
468 | qualname = sqlalchemy.engine | |
468 | propagate = 0 |
|
469 | propagate = 0 | |
469 |
|
470 | |||
470 | [logger_whoosh_indexer] |
|
471 | [logger_whoosh_indexer] | |
471 | level = DEBUG |
|
472 | level = DEBUG | |
472 | handlers = |
|
473 | handlers = | |
473 | qualname = whoosh_indexer |
|
474 | qualname = whoosh_indexer | |
474 | propagate = 1 |
|
475 | propagate = 1 | |
475 |
|
476 | |||
476 | ############## |
|
477 | ############## | |
477 | ## HANDLERS ## |
|
478 | ## HANDLERS ## | |
478 | ############## |
|
479 | ############## | |
479 |
|
480 | |||
480 | [handler_console] |
|
481 | [handler_console] | |
481 | class = StreamHandler |
|
482 | class = StreamHandler | |
482 | args = (sys.stderr,) |
|
483 | args = (sys.stderr,) | |
483 | level = INFO |
|
484 | level = INFO | |
484 | formatter = generic |
|
485 | formatter = generic | |
485 |
|
486 | |||
486 | [handler_console_sql] |
|
487 | [handler_console_sql] | |
487 | class = StreamHandler |
|
488 | class = StreamHandler | |
488 | args = (sys.stderr,) |
|
489 | args = (sys.stderr,) | |
489 | level = WARN |
|
490 | level = WARN | |
490 | formatter = generic |
|
491 | formatter = generic | |
491 |
|
492 | |||
492 | ################ |
|
493 | ################ | |
493 | ## FORMATTERS ## |
|
494 | ## FORMATTERS ## | |
494 | ################ |
|
495 | ################ | |
495 |
|
496 | |||
496 | [formatter_generic] |
|
497 | [formatter_generic] | |
497 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
498 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
498 | datefmt = %Y-%m-%d %H:%M:%S |
|
499 | datefmt = %Y-%m-%d %H:%M:%S | |
499 |
|
500 | |||
500 | [formatter_color_formatter] |
|
501 | [formatter_color_formatter] | |
501 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
502 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
502 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
503 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
503 | datefmt = %Y-%m-%d %H:%M:%S |
|
504 | datefmt = %Y-%m-%d %H:%M:%S | |
504 |
|
505 | |||
505 | [formatter_color_formatter_sql] |
|
506 | [formatter_color_formatter_sql] | |
506 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
507 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
507 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
508 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
508 | datefmt = %Y-%m-%d %H:%M:%S |
|
509 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,518 +1,519 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ## PASTE ## |
|
32 | ## PASTE ## | |
33 | #use = egg:Paste#http |
|
33 | #use = egg:Paste#http | |
34 | ## nr of worker threads to spawn |
|
34 | ## nr of worker threads to spawn | |
35 | #threadpool_workers = 5 |
|
35 | #threadpool_workers = 5 | |
36 | ## max request before thread respawn |
|
36 | ## max request before thread respawn | |
37 | #threadpool_max_requests = 10 |
|
37 | #threadpool_max_requests = 10 | |
38 | ## option to use threads of process |
|
38 | ## option to use threads of process | |
39 | #use_threadpool = true |
|
39 | #use_threadpool = true | |
40 |
|
40 | |||
41 | ## WAITRESS ## |
|
41 | ## WAITRESS ## | |
42 | use = egg:waitress#main |
|
42 | use = egg:waitress#main | |
43 | ## number of worker threads |
|
43 | ## number of worker threads | |
44 | threads = 5 |
|
44 | threads = 5 | |
45 | ## MAX BODY SIZE 100GB |
|
45 | ## MAX BODY SIZE 100GB | |
46 | max_request_body_size = 107374182400 |
|
46 | max_request_body_size = 107374182400 | |
47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
47 | ## use poll instead of select, fixes fd limits, may not work on old | |
48 | ## windows systems. |
|
48 | ## windows systems. | |
49 | asyncore_use_poll = True |
|
49 | asyncore_use_poll = True | |
50 |
|
50 | |||
51 | ## GUNICORN ## |
|
51 | ## GUNICORN ## | |
52 | #use = egg:gunicorn#main |
|
52 | #use = egg:gunicorn#main | |
53 |
## number of process workers. |
|
53 | ## number of process workers. You must set `instance_id = *` when this option | |
|
54 | ## is set to more than one worker | |||
54 | #workers = 1 |
|
55 | #workers = 1 | |
55 | ## process name |
|
56 | ## process name | |
56 | #proc_name = rhodecode |
|
57 | #proc_name = rhodecode | |
57 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
58 | ## type of worker class, one of sync, eventlet, gevent, tornado | |
58 | ## recommended for bigger setup is using of of other than sync one |
|
59 | ## recommended for bigger setup is using of of other than sync one | |
59 | #worker-class = sync |
|
60 | #worker-class = sync | |
60 | #max-requests = 5 |
|
61 | #max-requests = 5 | |
61 |
|
62 | |||
62 | ## COMMON ## |
|
63 | ## COMMON ## | |
63 | host = 127.0.0.1 |
|
64 | host = 127.0.0.1 | |
64 | port = 5000 |
|
65 | port = 5000 | |
65 |
|
66 | |||
66 | ## prefix middleware for rc |
|
67 | ## prefix middleware for rc | |
67 | #[filter:proxy-prefix] |
|
68 | #[filter:proxy-prefix] | |
68 | #use = egg:PasteDeploy#prefix |
|
69 | #use = egg:PasteDeploy#prefix | |
69 | #prefix = /<your-prefix> |
|
70 | #prefix = /<your-prefix> | |
70 |
|
71 | |||
71 | [app:main] |
|
72 | [app:main] | |
72 | use = egg:rhodecode |
|
73 | use = egg:rhodecode | |
73 | ## enable proxy prefix middleware |
|
74 | ## enable proxy prefix middleware | |
74 | #filter-with = proxy-prefix |
|
75 | #filter-with = proxy-prefix | |
75 |
|
76 | |||
76 | full_stack = true |
|
77 | full_stack = true | |
77 | static_files = true |
|
78 | static_files = true | |
78 | ## Optional Languages |
|
79 | ## Optional Languages | |
79 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
80 | lang = en |
|
81 | lang = en | |
81 | cache_dir = %(here)s/data |
|
82 | cache_dir = %(here)s/data | |
82 | index_dir = %(here)s/data/index |
|
83 | index_dir = %(here)s/data/index | |
83 |
|
84 | |||
84 | ## perform a full repository scan on each server start, this should be |
|
85 | ## perform a full repository scan on each server start, this should be | |
85 | ## set to false after first startup, to allow faster server restarts. |
|
86 | ## set to false after first startup, to allow faster server restarts. | |
86 | initial_repo_scan = true |
|
87 | initial_repo_scan = true | |
87 |
|
88 | |||
88 | ## uncomment and set this path to use archive download cache |
|
89 | ## uncomment and set this path to use archive download cache | |
89 | #archive_cache_dir = /tmp/tarballcache |
|
90 | #archive_cache_dir = /tmp/tarballcache | |
90 |
|
91 | |||
91 | ## change this to unique ID for security |
|
92 | ## change this to unique ID for security | |
92 | app_instance_uuid = ${app_instance_uuid} |
|
93 | app_instance_uuid = ${app_instance_uuid} | |
93 |
|
94 | |||
94 | ## cut off limit for large diffs (size in bytes) |
|
95 | ## cut off limit for large diffs (size in bytes) | |
95 | cut_off_limit = 256000 |
|
96 | cut_off_limit = 256000 | |
96 |
|
97 | |||
97 | ## use cache version of scm repo everywhere |
|
98 | ## use cache version of scm repo everywhere | |
98 | vcs_full_cache = true |
|
99 | vcs_full_cache = true | |
99 |
|
100 | |||
100 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https | |
101 | force_https = false |
|
102 | force_https = false | |
102 |
|
103 | |||
103 | ## use Strict-Transport-Security headers |
|
104 | ## use Strict-Transport-Security headers | |
104 | use_htsts = false |
|
105 | use_htsts = false | |
105 |
|
106 | |||
106 | ## number of commits stats will parse on each iteration |
|
107 | ## number of commits stats will parse on each iteration | |
107 | commit_parse_limit = 25 |
|
108 | commit_parse_limit = 25 | |
108 |
|
109 | |||
109 | ## use gravatar service to display avatars |
|
110 | ## use gravatar service to display avatars | |
110 | use_gravatar = true |
|
111 | use_gravatar = true | |
111 |
|
112 | |||
112 | ## path to git executable |
|
113 | ## path to git executable | |
113 | git_path = git |
|
114 | git_path = git | |
114 |
|
115 | |||
115 | ## git rev filter option, --all is the default filter, if you need to |
|
116 | ## git rev filter option, --all is the default filter, if you need to | |
116 | ## hide all refs in changelog switch this to --branches --tags |
|
117 | ## hide all refs in changelog switch this to --branches --tags | |
117 | git_rev_filter=--all |
|
118 | git_rev_filter=--all | |
118 |
|
119 | |||
119 | ## RSS feed options |
|
120 | ## RSS feed options | |
120 | rss_cut_off_limit = 256000 |
|
121 | rss_cut_off_limit = 256000 | |
121 | rss_items_per_page = 10 |
|
122 | rss_items_per_page = 10 | |
122 | rss_include_diff = false |
|
123 | rss_include_diff = false | |
123 |
|
124 | |||
124 | ## options for showing and identifying changesets |
|
125 | ## options for showing and identifying changesets | |
125 | show_sha_length = 12 |
|
126 | show_sha_length = 12 | |
126 | show_revision_number = true |
|
127 | show_revision_number = true | |
127 |
|
128 | |||
128 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
129 | ## gist URL alias, used to create nicer urls for gist. This should be an | |
129 | ## url that does rewrites to _admin/gists/<gistid>. |
|
130 | ## url that does rewrites to _admin/gists/<gistid>. | |
130 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal | |
131 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> | |
132 | gist_alias_url = |
|
133 | gist_alias_url = | |
133 |
|
134 | |||
134 | ## white list of API enabled controllers. This allows to add list of |
|
135 | ## white list of API enabled controllers. This allows to add list of | |
135 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
136 | ## controllers to which access will be enabled by api_key. eg: to enable | |
136 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches | |
137 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated | |
138 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names | |
139 | api_access_controllers_whitelist = |
|
140 | api_access_controllers_whitelist = | |
140 |
|
141 | |||
141 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
142 | ## alternative_gravatar_url allows you to use your own avatar server application | |
142 | ## the following parts of the URL will be replaced |
|
143 | ## the following parts of the URL will be replaced | |
143 | ## {email} user email |
|
144 | ## {email} user email | |
144 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
145 | ## {md5email} md5 hash of the user email (like at gravatar.com) | |
145 | ## {size} size of the image that is expected from the server application |
|
146 | ## {size} size of the image that is expected from the server application | |
146 | ## {scheme} http/https from RhodeCode server |
|
147 | ## {scheme} http/https from RhodeCode server | |
147 | ## {netloc} network location from RhodeCode server |
|
148 | ## {netloc} network location from RhodeCode server | |
148 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} | |
149 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} | |
150 |
|
151 | |||
151 |
|
152 | |||
152 | ## container auth options |
|
153 | ## container auth options | |
153 | container_auth_enabled = false |
|
154 | container_auth_enabled = false | |
154 | proxypass_auth_enabled = false |
|
155 | proxypass_auth_enabled = false | |
155 |
|
156 | |||
156 | ## default encoding used to convert from and to unicode |
|
157 | ## default encoding used to convert from and to unicode | |
157 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
158 | ## can be also a comma seperated list of encoding in case of mixed encodings | |
158 | default_encoding = utf8 |
|
159 | default_encoding = utf8 | |
159 |
|
160 | |||
160 | ## overwrite schema of clone url |
|
161 | ## overwrite schema of clone url | |
161 | ## available vars: |
|
162 | ## available vars: | |
162 | ## scheme - http/https |
|
163 | ## scheme - http/https | |
163 | ## user - current user |
|
164 | ## user - current user | |
164 | ## pass - password |
|
165 | ## pass - password | |
165 | ## netloc - network location |
|
166 | ## netloc - network location | |
166 | ## path - usually repo_name |
|
167 | ## path - usually repo_name | |
167 |
|
168 | |||
168 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
169 |
|
170 | |||
170 | ## issue tracking mapping for commits messages |
|
171 | ## issue tracking mapping for commits messages | |
171 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
172 | ## comment out issue_pat, issue_server, issue_prefix to enable | |
172 |
|
173 | |||
173 | ## pattern to get the issues from commit messages |
|
174 | ## pattern to get the issues from commit messages | |
174 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
175 | ## default one used here is #<numbers> with a regex passive group for `#` | |
175 | ## {id} will be all groups matched from this pattern |
|
176 | ## {id} will be all groups matched from this pattern | |
176 |
|
177 | |||
177 | issue_pat = (?:\s*#)(\d+) |
|
178 | issue_pat = (?:\s*#)(\d+) | |
178 |
|
179 | |||
179 | ## server url to the issue, each {id} will be replaced with match |
|
180 | ## server url to the issue, each {id} will be replaced with match | |
180 | ## fetched from the regex and {repo} is replaced with full repository name |
|
181 | ## fetched from the regex and {repo} is replaced with full repository name | |
181 | ## including groups {repo_name} is replaced with just name of repo |
|
182 | ## including groups {repo_name} is replaced with just name of repo | |
182 |
|
183 | |||
183 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} | |
184 |
|
185 | |||
185 | ## prefix to add to link to indicate it's an url |
|
186 | ## prefix to add to link to indicate it's an url | |
186 | ## #314 will be replaced by <issue_prefix><id> |
|
187 | ## #314 will be replaced by <issue_prefix><id> | |
187 |
|
188 | |||
188 | issue_prefix = # |
|
189 | issue_prefix = # | |
189 |
|
190 | |||
190 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify | |
191 | ## multiple patterns, to other issues server, wiki or others |
|
192 | ## multiple patterns, to other issues server, wiki or others | |
192 | ## below an example how to create a wiki pattern |
|
193 | ## below an example how to create a wiki pattern | |
193 | # #wiki-some-id -> https://mywiki.com/some-id |
|
194 | # #wiki-some-id -> https://mywiki.com/some-id | |
194 |
|
195 | |||
195 | #issue_pat_wiki = (?:wiki-)(.+) |
|
196 | #issue_pat_wiki = (?:wiki-)(.+) | |
196 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
197 | #issue_server_link_wiki = https://mywiki.com/{id} | |
197 | #issue_prefix_wiki = WIKI- |
|
198 | #issue_prefix_wiki = WIKI- | |
198 |
|
199 | |||
199 |
|
200 | |||
200 | ## instance-id prefix |
|
201 | ## instance-id prefix | |
201 | ## a prefix key for this instance used for cache invalidation when running |
|
202 | ## a prefix key for this instance used for cache invalidation when running | |
202 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
203 | ## multiple instances of rhodecode, make sure it's globally unique for | |
203 | ## all running rhodecode instances. Leave empty if you don't use it |
|
204 | ## all running rhodecode instances. Leave empty if you don't use it | |
204 | instance_id = |
|
205 | instance_id = | |
205 |
|
206 | |||
206 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
207 | ## alternative return HTTP header for failed authentication. Default HTTP | |
207 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
208 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
209 | ## handling that. Set this variable to 403 to return HTTPForbidden | |
209 | auth_ret_code = |
|
210 | auth_ret_code = | |
210 |
|
211 | |||
211 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
212 | ## locking return code. When repository is locked return this HTTP code. 2XX | |
212 | ## codes don't break the transactions while 4XX codes do |
|
213 | ## codes don't break the transactions while 4XX codes do | |
213 | lock_ret_code = 423 |
|
214 | lock_ret_code = 423 | |
214 |
|
215 | |||
215 | allow_repo_location_change = True |
|
216 | allow_repo_location_change = True | |
216 |
|
217 | |||
217 | #################################### |
|
218 | #################################### | |
218 | ### CELERY CONFIG #### |
|
219 | ### CELERY CONFIG #### | |
219 | #################################### |
|
220 | #################################### | |
220 | use_celery = false |
|
221 | use_celery = false | |
221 | broker.host = localhost |
|
222 | broker.host = localhost | |
222 | broker.vhost = rabbitmqhost |
|
223 | broker.vhost = rabbitmqhost | |
223 | broker.port = 5672 |
|
224 | broker.port = 5672 | |
224 | broker.user = rabbitmq |
|
225 | broker.user = rabbitmq | |
225 | broker.password = qweqwe |
|
226 | broker.password = qweqwe | |
226 |
|
227 | |||
227 | celery.imports = rhodecode.lib.celerylib.tasks |
|
228 | celery.imports = rhodecode.lib.celerylib.tasks | |
228 |
|
229 | |||
229 | celery.result.backend = amqp |
|
230 | celery.result.backend = amqp | |
230 | celery.result.dburi = amqp:// |
|
231 | celery.result.dburi = amqp:// | |
231 | celery.result.serialier = json |
|
232 | celery.result.serialier = json | |
232 |
|
233 | |||
233 | #celery.send.task.error.emails = true |
|
234 | #celery.send.task.error.emails = true | |
234 | #celery.amqp.task.result.expires = 18000 |
|
235 | #celery.amqp.task.result.expires = 18000 | |
235 |
|
236 | |||
236 | celeryd.concurrency = 2 |
|
237 | celeryd.concurrency = 2 | |
237 | #celeryd.log.file = celeryd.log |
|
238 | #celeryd.log.file = celeryd.log | |
238 | celeryd.log.level = debug |
|
239 | celeryd.log.level = debug | |
239 | celeryd.max.tasks.per.child = 1 |
|
240 | celeryd.max.tasks.per.child = 1 | |
240 |
|
241 | |||
241 | ## tasks will never be sent to the queue, but executed locally instead. |
|
242 | ## tasks will never be sent to the queue, but executed locally instead. | |
242 | celery.always.eager = false |
|
243 | celery.always.eager = false | |
243 |
|
244 | |||
244 | #################################### |
|
245 | #################################### | |
245 | ### BEAKER CACHE #### |
|
246 | ### BEAKER CACHE #### | |
246 | #################################### |
|
247 | #################################### | |
247 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
248 | beaker.cache.data_dir=%(here)s/data/cache/data | |
248 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
249 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
249 |
|
250 | |||
250 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
251 |
|
252 | |||
252 | beaker.cache.super_short_term.type=memory |
|
253 | beaker.cache.super_short_term.type=memory | |
253 | beaker.cache.super_short_term.expire=10 |
|
254 | beaker.cache.super_short_term.expire=10 | |
254 | beaker.cache.super_short_term.key_length = 256 |
|
255 | beaker.cache.super_short_term.key_length = 256 | |
255 |
|
256 | |||
256 | beaker.cache.short_term.type=memory |
|
257 | beaker.cache.short_term.type=memory | |
257 | beaker.cache.short_term.expire=60 |
|
258 | beaker.cache.short_term.expire=60 | |
258 | beaker.cache.short_term.key_length = 256 |
|
259 | beaker.cache.short_term.key_length = 256 | |
259 |
|
260 | |||
260 | beaker.cache.long_term.type=memory |
|
261 | beaker.cache.long_term.type=memory | |
261 | beaker.cache.long_term.expire=36000 |
|
262 | beaker.cache.long_term.expire=36000 | |
262 | beaker.cache.long_term.key_length = 256 |
|
263 | beaker.cache.long_term.key_length = 256 | |
263 |
|
264 | |||
264 | beaker.cache.sql_cache_short.type=memory |
|
265 | beaker.cache.sql_cache_short.type=memory | |
265 | beaker.cache.sql_cache_short.expire=10 |
|
266 | beaker.cache.sql_cache_short.expire=10 | |
266 | beaker.cache.sql_cache_short.key_length = 256 |
|
267 | beaker.cache.sql_cache_short.key_length = 256 | |
267 |
|
268 | |||
268 | beaker.cache.sql_cache_med.type=memory |
|
269 | beaker.cache.sql_cache_med.type=memory | |
269 | beaker.cache.sql_cache_med.expire=360 |
|
270 | beaker.cache.sql_cache_med.expire=360 | |
270 | beaker.cache.sql_cache_med.key_length = 256 |
|
271 | beaker.cache.sql_cache_med.key_length = 256 | |
271 |
|
272 | |||
272 | beaker.cache.sql_cache_long.type=file |
|
273 | beaker.cache.sql_cache_long.type=file | |
273 | beaker.cache.sql_cache_long.expire=3600 |
|
274 | beaker.cache.sql_cache_long.expire=3600 | |
274 | beaker.cache.sql_cache_long.key_length = 256 |
|
275 | beaker.cache.sql_cache_long.key_length = 256 | |
275 |
|
276 | |||
276 | #################################### |
|
277 | #################################### | |
277 | ### BEAKER SESSION #### |
|
278 | ### BEAKER SESSION #### | |
278 | #################################### |
|
279 | #################################### | |
279 | ## Type of storage used for the session, current types are |
|
280 | ## Type of storage used for the session, current types are | |
280 | ## dbm, file, memcached, database, and memory. |
|
281 | ## dbm, file, memcached, database, and memory. | |
281 | ## The storage uses the Container API |
|
282 | ## The storage uses the Container API | |
282 | ## that is also used by the cache system. |
|
283 | ## that is also used by the cache system. | |
283 |
|
284 | |||
284 | ## db session ## |
|
285 | ## db session ## | |
285 | #beaker.session.type = ext:database |
|
286 | #beaker.session.type = ext:database | |
286 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
287 | #beaker.session.table_name = db_session |
|
288 | #beaker.session.table_name = db_session | |
288 |
|
289 | |||
289 | ## encrypted cookie client side session, good for many instances ## |
|
290 | ## encrypted cookie client side session, good for many instances ## | |
290 | #beaker.session.type = cookie |
|
291 | #beaker.session.type = cookie | |
291 |
|
292 | |||
292 | ## file based cookies (default) ## |
|
293 | ## file based cookies (default) ## | |
293 | #beaker.session.type = file |
|
294 | #beaker.session.type = file | |
294 |
|
295 | |||
295 |
|
296 | |||
296 | beaker.session.key = rhodecode |
|
297 | beaker.session.key = rhodecode | |
297 | ## secure cookie requires AES python libraries |
|
298 | ## secure cookie requires AES python libraries | |
298 | #beaker.session.encrypt_key = <key_for_encryption> |
|
299 | #beaker.session.encrypt_key = <key_for_encryption> | |
299 | #beaker.session.validate_key = <validation_key> |
|
300 | #beaker.session.validate_key = <validation_key> | |
300 |
|
301 | |||
301 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
302 | ## sets session as invalid if it haven't been accessed for given amount of time | |
302 | beaker.session.timeout = 2592000 |
|
303 | beaker.session.timeout = 2592000 | |
303 | beaker.session.httponly = true |
|
304 | beaker.session.httponly = true | |
304 | #beaker.session.cookie_path = /<your-prefix> |
|
305 | #beaker.session.cookie_path = /<your-prefix> | |
305 |
|
306 | |||
306 | ## uncomment for https secure cookie |
|
307 | ## uncomment for https secure cookie | |
307 | beaker.session.secure = false |
|
308 | beaker.session.secure = false | |
308 |
|
309 | |||
309 | ## auto save the session to not to use .save() |
|
310 | ## auto save the session to not to use .save() | |
310 | beaker.session.auto = False |
|
311 | beaker.session.auto = False | |
311 |
|
312 | |||
312 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
313 | ## default cookie expiration time in seconds `true` expire at browser close ## | |
313 | #beaker.session.cookie_expires = 3600 |
|
314 | #beaker.session.cookie_expires = 3600 | |
314 |
|
315 | |||
315 |
|
316 | |||
316 | ############################ |
|
317 | ############################ | |
317 | ## ERROR HANDLING SYSTEMS ## |
|
318 | ## ERROR HANDLING SYSTEMS ## | |
318 | ############################ |
|
319 | ############################ | |
319 |
|
320 | |||
320 | #################### |
|
321 | #################### | |
321 | ### [errormator] ### |
|
322 | ### [errormator] ### | |
322 | #################### |
|
323 | #################### | |
323 |
|
324 | |||
324 | ## Errormator is tailored to work with RhodeCode, see |
|
325 | ## Errormator is tailored to work with RhodeCode, see | |
325 | ## http://errormator.com for details how to obtain an account |
|
326 | ## http://errormator.com for details how to obtain an account | |
326 | ## you must install python package `errormator_client` to make it work |
|
327 | ## you must install python package `errormator_client` to make it work | |
327 |
|
328 | |||
328 | ## errormator enabled |
|
329 | ## errormator enabled | |
329 | errormator = false |
|
330 | errormator = false | |
330 |
|
331 | |||
331 | errormator.server_url = https://api.errormator.com |
|
332 | errormator.server_url = https://api.errormator.com | |
332 | errormator.api_key = YOUR_API_KEY |
|
333 | errormator.api_key = YOUR_API_KEY | |
333 |
|
334 | |||
334 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
335 | ## TWEAK AMOUNT OF INFO SENT HERE | |
335 |
|
336 | |||
336 | ## enables 404 error logging (default False) |
|
337 | ## enables 404 error logging (default False) | |
337 | errormator.report_404 = false |
|
338 | errormator.report_404 = false | |
338 |
|
339 | |||
339 | ## time in seconds after request is considered being slow (default 1) |
|
340 | ## time in seconds after request is considered being slow (default 1) | |
340 | errormator.slow_request_time = 1 |
|
341 | errormator.slow_request_time = 1 | |
341 |
|
342 | |||
342 | ## record slow requests in application |
|
343 | ## record slow requests in application | |
343 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
344 | ## (needs to be enabled for slow datastore recording and time tracking) | |
344 | errormator.slow_requests = true |
|
345 | errormator.slow_requests = true | |
345 |
|
346 | |||
346 | ## enable hooking to application loggers |
|
347 | ## enable hooking to application loggers | |
347 | # errormator.logging = true |
|
348 | # errormator.logging = true | |
348 |
|
349 | |||
349 | ## minimum log level for log capture |
|
350 | ## minimum log level for log capture | |
350 | # errormator.logging.level = WARNING |
|
351 | # errormator.logging.level = WARNING | |
351 |
|
352 | |||
352 | ## send logs only from erroneous/slow requests |
|
353 | ## send logs only from erroneous/slow requests | |
353 | ## (saves API quota for intensive logging) |
|
354 | ## (saves API quota for intensive logging) | |
354 | errormator.logging_on_error = false |
|
355 | errormator.logging_on_error = false | |
355 |
|
356 | |||
356 | ## list of additonal keywords that should be grabbed from environ object |
|
357 | ## list of additonal keywords that should be grabbed from environ object | |
357 | ## can be string with comma separated list of words in lowercase |
|
358 | ## can be string with comma separated list of words in lowercase | |
358 | ## (by default client will always send following info: |
|
359 | ## (by default client will always send following info: | |
359 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that | |
360 | ## start with HTTP* this list be extended with additional keywords here |
|
361 | ## start with HTTP* this list be extended with additional keywords here | |
361 | errormator.environ_keys_whitelist = |
|
362 | errormator.environ_keys_whitelist = | |
362 |
|
363 | |||
363 |
|
364 | |||
364 | ## list of keywords that should be blanked from request object |
|
365 | ## list of keywords that should be blanked from request object | |
365 | ## can be string with comma separated list of words in lowercase |
|
366 | ## can be string with comma separated list of words in lowercase | |
366 | ## (by default client will always blank keys that contain following words |
|
367 | ## (by default client will always blank keys that contain following words | |
367 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' | |
368 | ## this list be extended with additional keywords set here |
|
369 | ## this list be extended with additional keywords set here | |
369 | errormator.request_keys_blacklist = |
|
370 | errormator.request_keys_blacklist = | |
370 |
|
371 | |||
371 |
|
372 | |||
372 | ## list of namespaces that should be ignores when gathering log entries |
|
373 | ## list of namespaces that should be ignores when gathering log entries | |
373 | ## can be string with comma separated list of namespaces |
|
374 | ## can be string with comma separated list of namespaces | |
374 | ## (by default the client ignores own entries: errormator_client.client) |
|
375 | ## (by default the client ignores own entries: errormator_client.client) | |
375 | errormator.log_namespace_blacklist = |
|
376 | errormator.log_namespace_blacklist = | |
376 |
|
377 | |||
377 |
|
378 | |||
378 | ################ |
|
379 | ################ | |
379 | ### [sentry] ### |
|
380 | ### [sentry] ### | |
380 | ################ |
|
381 | ################ | |
381 |
|
382 | |||
382 | ## sentry is a alternative open source error aggregator |
|
383 | ## sentry is a alternative open source error aggregator | |
383 | ## you must install python packages `sentry` and `raven` to enable |
|
384 | ## you must install python packages `sentry` and `raven` to enable | |
384 |
|
385 | |||
385 | sentry.dsn = YOUR_DNS |
|
386 | sentry.dsn = YOUR_DNS | |
386 | sentry.servers = |
|
387 | sentry.servers = | |
387 | sentry.name = |
|
388 | sentry.name = | |
388 | sentry.key = |
|
389 | sentry.key = | |
389 | sentry.public_key = |
|
390 | sentry.public_key = | |
390 | sentry.secret_key = |
|
391 | sentry.secret_key = | |
391 | sentry.project = |
|
392 | sentry.project = | |
392 | sentry.site = |
|
393 | sentry.site = | |
393 | sentry.include_paths = |
|
394 | sentry.include_paths = | |
394 | sentry.exclude_paths = |
|
395 | sentry.exclude_paths = | |
395 |
|
396 | |||
396 |
|
397 | |||
397 | ################################################################################ |
|
398 | ################################################################################ | |
398 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
399 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
400 | ## execute malicious code after an exception is raised. ## |
|
401 | ## execute malicious code after an exception is raised. ## | |
401 | ################################################################################ |
|
402 | ################################################################################ | |
402 | set debug = false |
|
403 | set debug = false | |
403 |
|
404 | |||
404 | ################################## |
|
405 | ################################## | |
405 | ### LOGVIEW CONFIG ### |
|
406 | ### LOGVIEW CONFIG ### | |
406 | ################################## |
|
407 | ################################## | |
407 | logview.sqlalchemy = #faa |
|
408 | logview.sqlalchemy = #faa | |
408 | logview.pylons.templating = #bfb |
|
409 | logview.pylons.templating = #bfb | |
409 | logview.pylons.util = #eee |
|
410 | logview.pylons.util = #eee | |
410 |
|
411 | |||
411 | ######################################################### |
|
412 | ######################################################### | |
412 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
413 | ######################################################### |
|
414 | ######################################################### | |
414 |
|
415 | |||
415 | # SQLITE [default] |
|
416 | # SQLITE [default] | |
416 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
417 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
417 |
|
418 | |||
418 | # POSTGRESQL |
|
419 | # POSTGRESQL | |
419 | # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode |
|
420 | # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode | |
420 |
|
421 | |||
421 | # MySQL |
|
422 | # MySQL | |
422 | # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode |
|
423 | # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode | |
423 |
|
424 | |||
424 | # see sqlalchemy docs for others |
|
425 | # see sqlalchemy docs for others | |
425 |
|
426 | |||
426 | sqlalchemy.db1.echo = false |
|
427 | sqlalchemy.db1.echo = false | |
427 | sqlalchemy.db1.pool_recycle = 3600 |
|
428 | sqlalchemy.db1.pool_recycle = 3600 | |
428 | sqlalchemy.db1.convert_unicode = true |
|
429 | sqlalchemy.db1.convert_unicode = true | |
429 |
|
430 | |||
430 | ################################ |
|
431 | ################################ | |
431 | ### LOGGING CONFIGURATION #### |
|
432 | ### LOGGING CONFIGURATION #### | |
432 | ################################ |
|
433 | ################################ | |
433 | [loggers] |
|
434 | [loggers] | |
434 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
435 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer | |
435 |
|
436 | |||
436 | [handlers] |
|
437 | [handlers] | |
437 | keys = console, console_sql |
|
438 | keys = console, console_sql | |
438 |
|
439 | |||
439 | [formatters] |
|
440 | [formatters] | |
440 | keys = generic, color_formatter, color_formatter_sql |
|
441 | keys = generic, color_formatter, color_formatter_sql | |
441 |
|
442 | |||
442 | ############# |
|
443 | ############# | |
443 | ## LOGGERS ## |
|
444 | ## LOGGERS ## | |
444 | ############# |
|
445 | ############# | |
445 | [logger_root] |
|
446 | [logger_root] | |
446 | level = NOTSET |
|
447 | level = NOTSET | |
447 | handlers = console |
|
448 | handlers = console | |
448 |
|
449 | |||
449 | [logger_routes] |
|
450 | [logger_routes] | |
450 | level = DEBUG |
|
451 | level = DEBUG | |
451 | handlers = |
|
452 | handlers = | |
452 | qualname = routes.middleware |
|
453 | qualname = routes.middleware | |
453 | ## "level = DEBUG" logs the route matched and routing variables. |
|
454 | ## "level = DEBUG" logs the route matched and routing variables. | |
454 | propagate = 1 |
|
455 | propagate = 1 | |
455 |
|
456 | |||
456 | [logger_beaker] |
|
457 | [logger_beaker] | |
457 | level = DEBUG |
|
458 | level = DEBUG | |
458 | handlers = |
|
459 | handlers = | |
459 | qualname = beaker.container |
|
460 | qualname = beaker.container | |
460 | propagate = 1 |
|
461 | propagate = 1 | |
461 |
|
462 | |||
462 | [logger_templates] |
|
463 | [logger_templates] | |
463 | level = INFO |
|
464 | level = INFO | |
464 | handlers = |
|
465 | handlers = | |
465 | qualname = pylons.templating |
|
466 | qualname = pylons.templating | |
466 | propagate = 1 |
|
467 | propagate = 1 | |
467 |
|
468 | |||
468 | [logger_rhodecode] |
|
469 | [logger_rhodecode] | |
469 | level = DEBUG |
|
470 | level = DEBUG | |
470 | handlers = |
|
471 | handlers = | |
471 | qualname = rhodecode |
|
472 | qualname = rhodecode | |
472 | propagate = 1 |
|
473 | propagate = 1 | |
473 |
|
474 | |||
474 | [logger_sqlalchemy] |
|
475 | [logger_sqlalchemy] | |
475 | level = INFO |
|
476 | level = INFO | |
476 | handlers = console_sql |
|
477 | handlers = console_sql | |
477 | qualname = sqlalchemy.engine |
|
478 | qualname = sqlalchemy.engine | |
478 | propagate = 0 |
|
479 | propagate = 0 | |
479 |
|
480 | |||
480 | [logger_whoosh_indexer] |
|
481 | [logger_whoosh_indexer] | |
481 | level = DEBUG |
|
482 | level = DEBUG | |
482 | handlers = |
|
483 | handlers = | |
483 | qualname = whoosh_indexer |
|
484 | qualname = whoosh_indexer | |
484 | propagate = 1 |
|
485 | propagate = 1 | |
485 |
|
486 | |||
486 | ############## |
|
487 | ############## | |
487 | ## HANDLERS ## |
|
488 | ## HANDLERS ## | |
488 | ############## |
|
489 | ############## | |
489 |
|
490 | |||
490 | [handler_console] |
|
491 | [handler_console] | |
491 | class = StreamHandler |
|
492 | class = StreamHandler | |
492 | args = (sys.stderr,) |
|
493 | args = (sys.stderr,) | |
493 | level = INFO |
|
494 | level = INFO | |
494 | formatter = generic |
|
495 | formatter = generic | |
495 |
|
496 | |||
496 | [handler_console_sql] |
|
497 | [handler_console_sql] | |
497 | class = StreamHandler |
|
498 | class = StreamHandler | |
498 | args = (sys.stderr,) |
|
499 | args = (sys.stderr,) | |
499 | level = WARN |
|
500 | level = WARN | |
500 | formatter = generic |
|
501 | formatter = generic | |
501 |
|
502 | |||
502 | ################ |
|
503 | ################ | |
503 | ## FORMATTERS ## |
|
504 | ## FORMATTERS ## | |
504 | ################ |
|
505 | ################ | |
505 |
|
506 | |||
506 | [formatter_generic] |
|
507 | [formatter_generic] | |
507 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
508 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
508 | datefmt = %Y-%m-%d %H:%M:%S |
|
509 | datefmt = %Y-%m-%d %H:%M:%S | |
509 |
|
510 | |||
510 | [formatter_color_formatter] |
|
511 | [formatter_color_formatter] | |
511 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
512 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
512 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
513 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
513 | datefmt = %Y-%m-%d %H:%M:%S |
|
514 | datefmt = %Y-%m-%d %H:%M:%S | |
514 |
|
515 | |||
515 | [formatter_color_formatter_sql] |
|
516 | [formatter_color_formatter_sql] | |
516 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
517 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
517 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
518 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
518 | datefmt = %Y-%m-%d %H:%M:%S |
|
519 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now