##// END OF EJS Templates
Fill session cookie secret with random generated app_uuid....
marcink -
r3961:c9ca7fa5 beta
parent child Browse files
Show More
@@ -1,509 +1,511 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_class = sync
60 #worker_class = sync
61 #max_requests = 5
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 beaker.session.key = rhodecode
297 beaker.session.secret = ${app_instance_uuid}
296
298
297 beaker.session.key = rhodecode
299 ## Secure encrypted cookie. Requires AES and AES python libraries
298 ## secure cookie requires AES python libraries
300 ## you must disable beaker.session.secret to use this
299 #beaker.session.encrypt_key = <key_for_encryption>
301 #beaker.session.encrypt_key = <key_for_encryption>
300 #beaker.session.validate_key = <validation_key>
302 #beaker.session.validate_key = <validation_key>
301
303
302 ## sets session as invalid if it haven't been accessed for given amount of time
304 ## sets session as invalid if it haven't been accessed for given amount of time
303 beaker.session.timeout = 2592000
305 beaker.session.timeout = 2592000
304 beaker.session.httponly = true
306 beaker.session.httponly = true
305 #beaker.session.cookie_path = /<your-prefix>
307 #beaker.session.cookie_path = /<your-prefix>
306
308
307 ## uncomment for https secure cookie
309 ## uncomment for https secure cookie
308 beaker.session.secure = false
310 beaker.session.secure = false
309
311
310 ## auto save the session to not to use .save()
312 ## auto save the session to not to use .save()
311 beaker.session.auto = False
313 beaker.session.auto = False
312
314
313 ## default cookie expiration time in seconds `true` expire at browser close ##
315 ## default cookie expiration time in seconds `true` expire at browser close ##
314 #beaker.session.cookie_expires = 3600
316 #beaker.session.cookie_expires = 3600
315
317
316
318
317 ############################
319 ############################
318 ## ERROR HANDLING SYSTEMS ##
320 ## ERROR HANDLING SYSTEMS ##
319 ############################
321 ############################
320
322
321 ####################
323 ####################
322 ### [errormator] ###
324 ### [errormator] ###
323 ####################
325 ####################
324
326
325 ## Errormator is tailored to work with RhodeCode, see
327 ## Errormator is tailored to work with RhodeCode, see
326 ## http://errormator.com for details how to obtain an account
328 ## http://errormator.com for details how to obtain an account
327 ## you must install python package `errormator_client` to make it work
329 ## you must install python package `errormator_client` to make it work
328
330
329 ## errormator enabled
331 ## errormator enabled
330 errormator = false
332 errormator = false
331
333
332 errormator.server_url = https://api.errormator.com
334 errormator.server_url = https://api.errormator.com
333 errormator.api_key = YOUR_API_KEY
335 errormator.api_key = YOUR_API_KEY
334
336
335 ## TWEAK AMOUNT OF INFO SENT HERE
337 ## TWEAK AMOUNT OF INFO SENT HERE
336
338
337 ## enables 404 error logging (default False)
339 ## enables 404 error logging (default False)
338 errormator.report_404 = false
340 errormator.report_404 = false
339
341
340 ## time in seconds after request is considered being slow (default 1)
342 ## time in seconds after request is considered being slow (default 1)
341 errormator.slow_request_time = 1
343 errormator.slow_request_time = 1
342
344
343 ## record slow requests in application
345 ## record slow requests in application
344 ## (needs to be enabled for slow datastore recording and time tracking)
346 ## (needs to be enabled for slow datastore recording and time tracking)
345 errormator.slow_requests = true
347 errormator.slow_requests = true
346
348
347 ## enable hooking to application loggers
349 ## enable hooking to application loggers
348 # errormator.logging = true
350 # errormator.logging = true
349
351
350 ## minimum log level for log capture
352 ## minimum log level for log capture
351 # errormator.logging.level = WARNING
353 # errormator.logging.level = WARNING
352
354
353 ## send logs only from erroneous/slow requests
355 ## send logs only from erroneous/slow requests
354 ## (saves API quota for intensive logging)
356 ## (saves API quota for intensive logging)
355 errormator.logging_on_error = false
357 errormator.logging_on_error = false
356
358
357 ## list of additonal keywords that should be grabbed from environ object
359 ## list of additonal keywords that should be grabbed from environ object
358 ## can be string with comma separated list of words in lowercase
360 ## can be string with comma separated list of words in lowercase
359 ## (by default client will always send following info:
361 ## (by default client will always send following info:
360 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
362 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
361 ## start with HTTP* this list be extended with additional keywords here
363 ## start with HTTP* this list be extended with additional keywords here
362 errormator.environ_keys_whitelist =
364 errormator.environ_keys_whitelist =
363
365
364
366
365 ## list of keywords that should be blanked from request object
367 ## list of keywords that should be blanked from request object
366 ## can be string with comma separated list of words in lowercase
368 ## can be string with comma separated list of words in lowercase
367 ## (by default client will always blank keys that contain following words
369 ## (by default client will always blank keys that contain following words
368 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
370 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
369 ## this list be extended with additional keywords set here
371 ## this list be extended with additional keywords set here
370 errormator.request_keys_blacklist =
372 errormator.request_keys_blacklist =
371
373
372
374
373 ## list of namespaces that should be ignores when gathering log entries
375 ## list of namespaces that should be ignores when gathering log entries
374 ## can be string with comma separated list of namespaces
376 ## can be string with comma separated list of namespaces
375 ## (by default the client ignores own entries: errormator_client.client)
377 ## (by default the client ignores own entries: errormator_client.client)
376 errormator.log_namespace_blacklist =
378 errormator.log_namespace_blacklist =
377
379
378
380
379 ################
381 ################
380 ### [sentry] ###
382 ### [sentry] ###
381 ################
383 ################
382
384
383 ## sentry is a alternative open source error aggregator
385 ## sentry is a alternative open source error aggregator
384 ## you must install python packages `sentry` and `raven` to enable
386 ## you must install python packages `sentry` and `raven` to enable
385
387
386 sentry.dsn = YOUR_DNS
388 sentry.dsn = YOUR_DNS
387 sentry.servers =
389 sentry.servers =
388 sentry.name =
390 sentry.name =
389 sentry.key =
391 sentry.key =
390 sentry.public_key =
392 sentry.public_key =
391 sentry.secret_key =
393 sentry.secret_key =
392 sentry.project =
394 sentry.project =
393 sentry.site =
395 sentry.site =
394 sentry.include_paths =
396 sentry.include_paths =
395 sentry.exclude_paths =
397 sentry.exclude_paths =
396
398
397
399
398 ################################################################################
400 ################################################################################
399 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
401 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
400 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
402 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
401 ## execute malicious code after an exception is raised. ##
403 ## execute malicious code after an exception is raised. ##
402 ################################################################################
404 ################################################################################
403 #set debug = false
405 #set debug = false
404
406
405 ##################################
407 ##################################
406 ### LOGVIEW CONFIG ###
408 ### LOGVIEW CONFIG ###
407 ##################################
409 ##################################
408 logview.sqlalchemy = #faa
410 logview.sqlalchemy = #faa
409 logview.pylons.templating = #bfb
411 logview.pylons.templating = #bfb
410 logview.pylons.util = #eee
412 logview.pylons.util = #eee
411
413
412 #########################################################
414 #########################################################
413 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
415 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
414 #########################################################
416 #########################################################
415 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
417 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
416 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
418 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
417 sqlalchemy.db1.echo = false
419 sqlalchemy.db1.echo = false
418 sqlalchemy.db1.pool_recycle = 3600
420 sqlalchemy.db1.pool_recycle = 3600
419 sqlalchemy.db1.convert_unicode = true
421 sqlalchemy.db1.convert_unicode = true
420
422
421 ################################
423 ################################
422 ### LOGGING CONFIGURATION ####
424 ### LOGGING CONFIGURATION ####
423 ################################
425 ################################
424 [loggers]
426 [loggers]
425 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
427 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
426
428
427 [handlers]
429 [handlers]
428 keys = console, console_sql
430 keys = console, console_sql
429
431
430 [formatters]
432 [formatters]
431 keys = generic, color_formatter, color_formatter_sql
433 keys = generic, color_formatter, color_formatter_sql
432
434
433 #############
435 #############
434 ## LOGGERS ##
436 ## LOGGERS ##
435 #############
437 #############
436 [logger_root]
438 [logger_root]
437 level = NOTSET
439 level = NOTSET
438 handlers = console
440 handlers = console
439
441
440 [logger_routes]
442 [logger_routes]
441 level = DEBUG
443 level = DEBUG
442 handlers =
444 handlers =
443 qualname = routes.middleware
445 qualname = routes.middleware
444 ## "level = DEBUG" logs the route matched and routing variables.
446 ## "level = DEBUG" logs the route matched and routing variables.
445 propagate = 1
447 propagate = 1
446
448
447 [logger_beaker]
449 [logger_beaker]
448 level = DEBUG
450 level = DEBUG
449 handlers =
451 handlers =
450 qualname = beaker.container
452 qualname = beaker.container
451 propagate = 1
453 propagate = 1
452
454
453 [logger_templates]
455 [logger_templates]
454 level = INFO
456 level = INFO
455 handlers =
457 handlers =
456 qualname = pylons.templating
458 qualname = pylons.templating
457 propagate = 1
459 propagate = 1
458
460
459 [logger_rhodecode]
461 [logger_rhodecode]
460 level = DEBUG
462 level = DEBUG
461 handlers =
463 handlers =
462 qualname = rhodecode
464 qualname = rhodecode
463 propagate = 1
465 propagate = 1
464
466
465 [logger_sqlalchemy]
467 [logger_sqlalchemy]
466 level = INFO
468 level = INFO
467 handlers = console_sql
469 handlers = console_sql
468 qualname = sqlalchemy.engine
470 qualname = sqlalchemy.engine
469 propagate = 0
471 propagate = 0
470
472
471 [logger_whoosh_indexer]
473 [logger_whoosh_indexer]
472 level = DEBUG
474 level = DEBUG
473 handlers =
475 handlers =
474 qualname = whoosh_indexer
476 qualname = whoosh_indexer
475 propagate = 1
477 propagate = 1
476
478
477 ##############
479 ##############
478 ## HANDLERS ##
480 ## HANDLERS ##
479 ##############
481 ##############
480
482
481 [handler_console]
483 [handler_console]
482 class = StreamHandler
484 class = StreamHandler
483 args = (sys.stderr,)
485 args = (sys.stderr,)
484 level = DEBUG
486 level = DEBUG
485 formatter = color_formatter
487 formatter = color_formatter
486
488
487 [handler_console_sql]
489 [handler_console_sql]
488 class = StreamHandler
490 class = StreamHandler
489 args = (sys.stderr,)
491 args = (sys.stderr,)
490 level = DEBUG
492 level = DEBUG
491 formatter = color_formatter_sql
493 formatter = color_formatter_sql
492
494
493 ################
495 ################
494 ## FORMATTERS ##
496 ## FORMATTERS ##
495 ################
497 ################
496
498
497 [formatter_generic]
499 [formatter_generic]
498 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
500 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
499 datefmt = %Y-%m-%d %H:%M:%S
501 datefmt = %Y-%m-%d %H:%M:%S
500
502
501 [formatter_color_formatter]
503 [formatter_color_formatter]
502 class=rhodecode.lib.colored_formatter.ColorFormatter
504 class=rhodecode.lib.colored_formatter.ColorFormatter
503 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
505 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
504 datefmt = %Y-%m-%d %H:%M:%S
506 datefmt = %Y-%m-%d %H:%M:%S
505
507
506 [formatter_color_formatter_sql]
508 [formatter_color_formatter_sql]
507 class=rhodecode.lib.colored_formatter.ColorFormatterSql
509 class=rhodecode.lib.colored_formatter.ColorFormatterSql
508 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
510 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
509 datefmt = %Y-%m-%d %H:%M:%S
511 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,509 +1,511 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_class = sync
60 #worker_class = sync
61 #max_requests = 5
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 beaker.session.key = rhodecode
297 beaker.session.secret = ${app_instance_uuid}
296
298
297 beaker.session.key = rhodecode
299 ## Secure encrypted cookie. Requires AES and AES python libraries
298 ## secure cookie requires AES python libraries
300 ## you must disable beaker.session.secret to use this
299 #beaker.session.encrypt_key = <key_for_encryption>
301 #beaker.session.encrypt_key = <key_for_encryption>
300 #beaker.session.validate_key = <validation_key>
302 #beaker.session.validate_key = <validation_key>
301
303
302 ## sets session as invalid if it haven't been accessed for given amount of time
304 ## sets session as invalid if it haven't been accessed for given amount of time
303 beaker.session.timeout = 2592000
305 beaker.session.timeout = 2592000
304 beaker.session.httponly = true
306 beaker.session.httponly = true
305 #beaker.session.cookie_path = /<your-prefix>
307 #beaker.session.cookie_path = /<your-prefix>
306
308
307 ## uncomment for https secure cookie
309 ## uncomment for https secure cookie
308 beaker.session.secure = false
310 beaker.session.secure = false
309
311
310 ## auto save the session to not to use .save()
312 ## auto save the session to not to use .save()
311 beaker.session.auto = False
313 beaker.session.auto = False
312
314
313 ## default cookie expiration time in seconds `true` expire at browser close ##
315 ## default cookie expiration time in seconds `true` expire at browser close ##
314 #beaker.session.cookie_expires = 3600
316 #beaker.session.cookie_expires = 3600
315
317
316
318
317 ############################
319 ############################
318 ## ERROR HANDLING SYSTEMS ##
320 ## ERROR HANDLING SYSTEMS ##
319 ############################
321 ############################
320
322
321 ####################
323 ####################
322 ### [errormator] ###
324 ### [errormator] ###
323 ####################
325 ####################
324
326
325 ## Errormator is tailored to work with RhodeCode, see
327 ## Errormator is tailored to work with RhodeCode, see
326 ## http://errormator.com for details how to obtain an account
328 ## http://errormator.com for details how to obtain an account
327 ## you must install python package `errormator_client` to make it work
329 ## you must install python package `errormator_client` to make it work
328
330
329 ## errormator enabled
331 ## errormator enabled
330 errormator = false
332 errormator = false
331
333
332 errormator.server_url = https://api.errormator.com
334 errormator.server_url = https://api.errormator.com
333 errormator.api_key = YOUR_API_KEY
335 errormator.api_key = YOUR_API_KEY
334
336
335 ## TWEAK AMOUNT OF INFO SENT HERE
337 ## TWEAK AMOUNT OF INFO SENT HERE
336
338
337 ## enables 404 error logging (default False)
339 ## enables 404 error logging (default False)
338 errormator.report_404 = false
340 errormator.report_404 = false
339
341
340 ## time in seconds after request is considered being slow (default 1)
342 ## time in seconds after request is considered being slow (default 1)
341 errormator.slow_request_time = 1
343 errormator.slow_request_time = 1
342
344
343 ## record slow requests in application
345 ## record slow requests in application
344 ## (needs to be enabled for slow datastore recording and time tracking)
346 ## (needs to be enabled for slow datastore recording and time tracking)
345 errormator.slow_requests = true
347 errormator.slow_requests = true
346
348
347 ## enable hooking to application loggers
349 ## enable hooking to application loggers
348 # errormator.logging = true
350 # errormator.logging = true
349
351
350 ## minimum log level for log capture
352 ## minimum log level for log capture
351 # errormator.logging.level = WARNING
353 # errormator.logging.level = WARNING
352
354
353 ## send logs only from erroneous/slow requests
355 ## send logs only from erroneous/slow requests
354 ## (saves API quota for intensive logging)
356 ## (saves API quota for intensive logging)
355 errormator.logging_on_error = false
357 errormator.logging_on_error = false
356
358
357 ## list of additonal keywords that should be grabbed from environ object
359 ## list of additonal keywords that should be grabbed from environ object
358 ## can be string with comma separated list of words in lowercase
360 ## can be string with comma separated list of words in lowercase
359 ## (by default client will always send following info:
361 ## (by default client will always send following info:
360 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
362 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
361 ## start with HTTP* this list be extended with additional keywords here
363 ## start with HTTP* this list be extended with additional keywords here
362 errormator.environ_keys_whitelist =
364 errormator.environ_keys_whitelist =
363
365
364
366
365 ## list of keywords that should be blanked from request object
367 ## list of keywords that should be blanked from request object
366 ## can be string with comma separated list of words in lowercase
368 ## can be string with comma separated list of words in lowercase
367 ## (by default client will always blank keys that contain following words
369 ## (by default client will always blank keys that contain following words
368 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
370 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
369 ## this list be extended with additional keywords set here
371 ## this list be extended with additional keywords set here
370 errormator.request_keys_blacklist =
372 errormator.request_keys_blacklist =
371
373
372
374
373 ## list of namespaces that should be ignores when gathering log entries
375 ## list of namespaces that should be ignores when gathering log entries
374 ## can be string with comma separated list of namespaces
376 ## can be string with comma separated list of namespaces
375 ## (by default the client ignores own entries: errormator_client.client)
377 ## (by default the client ignores own entries: errormator_client.client)
376 errormator.log_namespace_blacklist =
378 errormator.log_namespace_blacklist =
377
379
378
380
379 ################
381 ################
380 ### [sentry] ###
382 ### [sentry] ###
381 ################
383 ################
382
384
383 ## sentry is a alternative open source error aggregator
385 ## sentry is a alternative open source error aggregator
384 ## you must install python packages `sentry` and `raven` to enable
386 ## you must install python packages `sentry` and `raven` to enable
385
387
386 sentry.dsn = YOUR_DNS
388 sentry.dsn = YOUR_DNS
387 sentry.servers =
389 sentry.servers =
388 sentry.name =
390 sentry.name =
389 sentry.key =
391 sentry.key =
390 sentry.public_key =
392 sentry.public_key =
391 sentry.secret_key =
393 sentry.secret_key =
392 sentry.project =
394 sentry.project =
393 sentry.site =
395 sentry.site =
394 sentry.include_paths =
396 sentry.include_paths =
395 sentry.exclude_paths =
397 sentry.exclude_paths =
396
398
397
399
398 ################################################################################
400 ################################################################################
399 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
401 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
400 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
402 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
401 ## execute malicious code after an exception is raised. ##
403 ## execute malicious code after an exception is raised. ##
402 ################################################################################
404 ################################################################################
403 set debug = false
405 set debug = false
404
406
405 ##################################
407 ##################################
406 ### LOGVIEW CONFIG ###
408 ### LOGVIEW CONFIG ###
407 ##################################
409 ##################################
408 logview.sqlalchemy = #faa
410 logview.sqlalchemy = #faa
409 logview.pylons.templating = #bfb
411 logview.pylons.templating = #bfb
410 logview.pylons.util = #eee
412 logview.pylons.util = #eee
411
413
412 #########################################################
414 #########################################################
413 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
415 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
414 #########################################################
416 #########################################################
415 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
417 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
416 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
418 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
417 sqlalchemy.db1.echo = false
419 sqlalchemy.db1.echo = false
418 sqlalchemy.db1.pool_recycle = 3600
420 sqlalchemy.db1.pool_recycle = 3600
419 sqlalchemy.db1.convert_unicode = true
421 sqlalchemy.db1.convert_unicode = true
420
422
421 ################################
423 ################################
422 ### LOGGING CONFIGURATION ####
424 ### LOGGING CONFIGURATION ####
423 ################################
425 ################################
424 [loggers]
426 [loggers]
425 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
427 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
426
428
427 [handlers]
429 [handlers]
428 keys = console, console_sql
430 keys = console, console_sql
429
431
430 [formatters]
432 [formatters]
431 keys = generic, color_formatter, color_formatter_sql
433 keys = generic, color_formatter, color_formatter_sql
432
434
433 #############
435 #############
434 ## LOGGERS ##
436 ## LOGGERS ##
435 #############
437 #############
436 [logger_root]
438 [logger_root]
437 level = NOTSET
439 level = NOTSET
438 handlers = console
440 handlers = console
439
441
440 [logger_routes]
442 [logger_routes]
441 level = DEBUG
443 level = DEBUG
442 handlers =
444 handlers =
443 qualname = routes.middleware
445 qualname = routes.middleware
444 ## "level = DEBUG" logs the route matched and routing variables.
446 ## "level = DEBUG" logs the route matched and routing variables.
445 propagate = 1
447 propagate = 1
446
448
447 [logger_beaker]
449 [logger_beaker]
448 level = DEBUG
450 level = DEBUG
449 handlers =
451 handlers =
450 qualname = beaker.container
452 qualname = beaker.container
451 propagate = 1
453 propagate = 1
452
454
453 [logger_templates]
455 [logger_templates]
454 level = INFO
456 level = INFO
455 handlers =
457 handlers =
456 qualname = pylons.templating
458 qualname = pylons.templating
457 propagate = 1
459 propagate = 1
458
460
459 [logger_rhodecode]
461 [logger_rhodecode]
460 level = DEBUG
462 level = DEBUG
461 handlers =
463 handlers =
462 qualname = rhodecode
464 qualname = rhodecode
463 propagate = 1
465 propagate = 1
464
466
465 [logger_sqlalchemy]
467 [logger_sqlalchemy]
466 level = INFO
468 level = INFO
467 handlers = console_sql
469 handlers = console_sql
468 qualname = sqlalchemy.engine
470 qualname = sqlalchemy.engine
469 propagate = 0
471 propagate = 0
470
472
471 [logger_whoosh_indexer]
473 [logger_whoosh_indexer]
472 level = DEBUG
474 level = DEBUG
473 handlers =
475 handlers =
474 qualname = whoosh_indexer
476 qualname = whoosh_indexer
475 propagate = 1
477 propagate = 1
476
478
477 ##############
479 ##############
478 ## HANDLERS ##
480 ## HANDLERS ##
479 ##############
481 ##############
480
482
481 [handler_console]
483 [handler_console]
482 class = StreamHandler
484 class = StreamHandler
483 args = (sys.stderr,)
485 args = (sys.stderr,)
484 level = INFO
486 level = INFO
485 formatter = generic
487 formatter = generic
486
488
487 [handler_console_sql]
489 [handler_console_sql]
488 class = StreamHandler
490 class = StreamHandler
489 args = (sys.stderr,)
491 args = (sys.stderr,)
490 level = WARN
492 level = WARN
491 formatter = generic
493 formatter = generic
492
494
493 ################
495 ################
494 ## FORMATTERS ##
496 ## FORMATTERS ##
495 ################
497 ################
496
498
497 [formatter_generic]
499 [formatter_generic]
498 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
500 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
499 datefmt = %Y-%m-%d %H:%M:%S
501 datefmt = %Y-%m-%d %H:%M:%S
500
502
501 [formatter_color_formatter]
503 [formatter_color_formatter]
502 class=rhodecode.lib.colored_formatter.ColorFormatter
504 class=rhodecode.lib.colored_formatter.ColorFormatter
503 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
505 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
504 datefmt = %Y-%m-%d %H:%M:%S
506 datefmt = %Y-%m-%d %H:%M:%S
505
507
506 [formatter_color_formatter_sql]
508 [formatter_color_formatter_sql]
507 class=rhodecode.lib.colored_formatter.ColorFormatterSql
509 class=rhodecode.lib.colored_formatter.ColorFormatterSql
508 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
510 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
509 datefmt = %Y-%m-%d %H:%M:%S
511 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,519 +1,521 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_class = sync
60 #worker_class = sync
61 #max_requests = 5
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 beaker.session.key = rhodecode
297 beaker.session.secret = ${app_instance_uuid}
296
298
297 beaker.session.key = rhodecode
299 ## Secure encrypted cookie. Requires AES and AES python libraries
298 ## secure cookie requires AES python libraries
300 ## you must disable beaker.session.secret to use this
299 #beaker.session.encrypt_key = <key_for_encryption>
301 #beaker.session.encrypt_key = <key_for_encryption>
300 #beaker.session.validate_key = <validation_key>
302 #beaker.session.validate_key = <validation_key>
301
303
302 ## sets session as invalid if it haven't been accessed for given amount of time
304 ## sets session as invalid if it haven't been accessed for given amount of time
303 beaker.session.timeout = 2592000
305 beaker.session.timeout = 2592000
304 beaker.session.httponly = true
306 beaker.session.httponly = true
305 #beaker.session.cookie_path = /<your-prefix>
307 #beaker.session.cookie_path = /<your-prefix>
306
308
307 ## uncomment for https secure cookie
309 ## uncomment for https secure cookie
308 beaker.session.secure = false
310 beaker.session.secure = false
309
311
310 ## auto save the session to not to use .save()
312 ## auto save the session to not to use .save()
311 beaker.session.auto = False
313 beaker.session.auto = False
312
314
313 ## default cookie expiration time in seconds `true` expire at browser close ##
315 ## default cookie expiration time in seconds `true` expire at browser close ##
314 #beaker.session.cookie_expires = 3600
316 #beaker.session.cookie_expires = 3600
315
317
316
318
317 ############################
319 ############################
318 ## ERROR HANDLING SYSTEMS ##
320 ## ERROR HANDLING SYSTEMS ##
319 ############################
321 ############################
320
322
321 ####################
323 ####################
322 ### [errormator] ###
324 ### [errormator] ###
323 ####################
325 ####################
324
326
325 ## Errormator is tailored to work with RhodeCode, see
327 ## Errormator is tailored to work with RhodeCode, see
326 ## http://errormator.com for details how to obtain an account
328 ## http://errormator.com for details how to obtain an account
327 ## you must install python package `errormator_client` to make it work
329 ## you must install python package `errormator_client` to make it work
328
330
329 ## errormator enabled
331 ## errormator enabled
330 errormator = false
332 errormator = false
331
333
332 errormator.server_url = https://api.errormator.com
334 errormator.server_url = https://api.errormator.com
333 errormator.api_key = YOUR_API_KEY
335 errormator.api_key = YOUR_API_KEY
334
336
335 ## TWEAK AMOUNT OF INFO SENT HERE
337 ## TWEAK AMOUNT OF INFO SENT HERE
336
338
337 ## enables 404 error logging (default False)
339 ## enables 404 error logging (default False)
338 errormator.report_404 = false
340 errormator.report_404 = false
339
341
340 ## time in seconds after request is considered being slow (default 1)
342 ## time in seconds after request is considered being slow (default 1)
341 errormator.slow_request_time = 1
343 errormator.slow_request_time = 1
342
344
343 ## record slow requests in application
345 ## record slow requests in application
344 ## (needs to be enabled for slow datastore recording and time tracking)
346 ## (needs to be enabled for slow datastore recording and time tracking)
345 errormator.slow_requests = true
347 errormator.slow_requests = true
346
348
347 ## enable hooking to application loggers
349 ## enable hooking to application loggers
348 # errormator.logging = true
350 # errormator.logging = true
349
351
350 ## minimum log level for log capture
352 ## minimum log level for log capture
351 # errormator.logging.level = WARNING
353 # errormator.logging.level = WARNING
352
354
353 ## send logs only from erroneous/slow requests
355 ## send logs only from erroneous/slow requests
354 ## (saves API quota for intensive logging)
356 ## (saves API quota for intensive logging)
355 errormator.logging_on_error = false
357 errormator.logging_on_error = false
356
358
357 ## list of additonal keywords that should be grabbed from environ object
359 ## list of additonal keywords that should be grabbed from environ object
358 ## can be string with comma separated list of words in lowercase
360 ## can be string with comma separated list of words in lowercase
359 ## (by default client will always send following info:
361 ## (by default client will always send following info:
360 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
362 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
361 ## start with HTTP* this list be extended with additional keywords here
363 ## start with HTTP* this list be extended with additional keywords here
362 errormator.environ_keys_whitelist =
364 errormator.environ_keys_whitelist =
363
365
364
366
365 ## list of keywords that should be blanked from request object
367 ## list of keywords that should be blanked from request object
366 ## can be string with comma separated list of words in lowercase
368 ## can be string with comma separated list of words in lowercase
367 ## (by default client will always blank keys that contain following words
369 ## (by default client will always blank keys that contain following words
368 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
370 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
369 ## this list be extended with additional keywords set here
371 ## this list be extended with additional keywords set here
370 errormator.request_keys_blacklist =
372 errormator.request_keys_blacklist =
371
373
372
374
373 ## list of namespaces that should be ignores when gathering log entries
375 ## list of namespaces that should be ignores when gathering log entries
374 ## can be string with comma separated list of namespaces
376 ## can be string with comma separated list of namespaces
375 ## (by default the client ignores own entries: errormator_client.client)
377 ## (by default the client ignores own entries: errormator_client.client)
376 errormator.log_namespace_blacklist =
378 errormator.log_namespace_blacklist =
377
379
378
380
379 ################
381 ################
380 ### [sentry] ###
382 ### [sentry] ###
381 ################
383 ################
382
384
383 ## sentry is a alternative open source error aggregator
385 ## sentry is a alternative open source error aggregator
384 ## you must install python packages `sentry` and `raven` to enable
386 ## you must install python packages `sentry` and `raven` to enable
385
387
386 sentry.dsn = YOUR_DNS
388 sentry.dsn = YOUR_DNS
387 sentry.servers =
389 sentry.servers =
388 sentry.name =
390 sentry.name =
389 sentry.key =
391 sentry.key =
390 sentry.public_key =
392 sentry.public_key =
391 sentry.secret_key =
393 sentry.secret_key =
392 sentry.project =
394 sentry.project =
393 sentry.site =
395 sentry.site =
394 sentry.include_paths =
396 sentry.include_paths =
395 sentry.exclude_paths =
397 sentry.exclude_paths =
396
398
397
399
398 ################################################################################
400 ################################################################################
399 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
401 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
400 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
402 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
401 ## execute malicious code after an exception is raised. ##
403 ## execute malicious code after an exception is raised. ##
402 ################################################################################
404 ################################################################################
403 set debug = false
405 set debug = false
404
406
405 ##################################
407 ##################################
406 ### LOGVIEW CONFIG ###
408 ### LOGVIEW CONFIG ###
407 ##################################
409 ##################################
408 logview.sqlalchemy = #faa
410 logview.sqlalchemy = #faa
409 logview.pylons.templating = #bfb
411 logview.pylons.templating = #bfb
410 logview.pylons.util = #eee
412 logview.pylons.util = #eee
411
413
412 #########################################################
414 #########################################################
413 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
415 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
414 #########################################################
416 #########################################################
415
417
416 # SQLITE [default]
418 # SQLITE [default]
417 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
419 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
418
420
419 # POSTGRESQL
421 # POSTGRESQL
420 # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode
422 # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode
421
423
422 # MySQL
424 # MySQL
423 # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode
425 # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode
424
426
425 # see sqlalchemy docs for others
427 # see sqlalchemy docs for others
426
428
427 sqlalchemy.db1.echo = false
429 sqlalchemy.db1.echo = false
428 sqlalchemy.db1.pool_recycle = 3600
430 sqlalchemy.db1.pool_recycle = 3600
429 sqlalchemy.db1.convert_unicode = true
431 sqlalchemy.db1.convert_unicode = true
430
432
431 ################################
433 ################################
432 ### LOGGING CONFIGURATION ####
434 ### LOGGING CONFIGURATION ####
433 ################################
435 ################################
434 [loggers]
436 [loggers]
435 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
437 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
436
438
437 [handlers]
439 [handlers]
438 keys = console, console_sql
440 keys = console, console_sql
439
441
440 [formatters]
442 [formatters]
441 keys = generic, color_formatter, color_formatter_sql
443 keys = generic, color_formatter, color_formatter_sql
442
444
443 #############
445 #############
444 ## LOGGERS ##
446 ## LOGGERS ##
445 #############
447 #############
446 [logger_root]
448 [logger_root]
447 level = NOTSET
449 level = NOTSET
448 handlers = console
450 handlers = console
449
451
450 [logger_routes]
452 [logger_routes]
451 level = DEBUG
453 level = DEBUG
452 handlers =
454 handlers =
453 qualname = routes.middleware
455 qualname = routes.middleware
454 ## "level = DEBUG" logs the route matched and routing variables.
456 ## "level = DEBUG" logs the route matched and routing variables.
455 propagate = 1
457 propagate = 1
456
458
457 [logger_beaker]
459 [logger_beaker]
458 level = DEBUG
460 level = DEBUG
459 handlers =
461 handlers =
460 qualname = beaker.container
462 qualname = beaker.container
461 propagate = 1
463 propagate = 1
462
464
463 [logger_templates]
465 [logger_templates]
464 level = INFO
466 level = INFO
465 handlers =
467 handlers =
466 qualname = pylons.templating
468 qualname = pylons.templating
467 propagate = 1
469 propagate = 1
468
470
469 [logger_rhodecode]
471 [logger_rhodecode]
470 level = DEBUG
472 level = DEBUG
471 handlers =
473 handlers =
472 qualname = rhodecode
474 qualname = rhodecode
473 propagate = 1
475 propagate = 1
474
476
475 [logger_sqlalchemy]
477 [logger_sqlalchemy]
476 level = INFO
478 level = INFO
477 handlers = console_sql
479 handlers = console_sql
478 qualname = sqlalchemy.engine
480 qualname = sqlalchemy.engine
479 propagate = 0
481 propagate = 0
480
482
481 [logger_whoosh_indexer]
483 [logger_whoosh_indexer]
482 level = DEBUG
484 level = DEBUG
483 handlers =
485 handlers =
484 qualname = whoosh_indexer
486 qualname = whoosh_indexer
485 propagate = 1
487 propagate = 1
486
488
487 ##############
489 ##############
488 ## HANDLERS ##
490 ## HANDLERS ##
489 ##############
491 ##############
490
492
491 [handler_console]
493 [handler_console]
492 class = StreamHandler
494 class = StreamHandler
493 args = (sys.stderr,)
495 args = (sys.stderr,)
494 level = INFO
496 level = INFO
495 formatter = generic
497 formatter = generic
496
498
497 [handler_console_sql]
499 [handler_console_sql]
498 class = StreamHandler
500 class = StreamHandler
499 args = (sys.stderr,)
501 args = (sys.stderr,)
500 level = WARN
502 level = WARN
501 formatter = generic
503 formatter = generic
502
504
503 ################
505 ################
504 ## FORMATTERS ##
506 ## FORMATTERS ##
505 ################
507 ################
506
508
507 [formatter_generic]
509 [formatter_generic]
508 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
510 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
509 datefmt = %Y-%m-%d %H:%M:%S
511 datefmt = %Y-%m-%d %H:%M:%S
510
512
511 [formatter_color_formatter]
513 [formatter_color_formatter]
512 class=rhodecode.lib.colored_formatter.ColorFormatter
514 class=rhodecode.lib.colored_formatter.ColorFormatter
513 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
515 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
514 datefmt = %Y-%m-%d %H:%M:%S
516 datefmt = %Y-%m-%d %H:%M:%S
515
517
516 [formatter_color_formatter_sql]
518 [formatter_color_formatter_sql]
517 class=rhodecode.lib.colored_formatter.ColorFormatterSql
519 class=rhodecode.lib.colored_formatter.ColorFormatterSql
518 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
520 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
519 datefmt = %Y-%m-%d %H:%M:%S
521 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now