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