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