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