##// END OF EJS Templates
config: Set 'gzip_responses' to false by default.
Martin Bornhold -
r597:3f693e41 default
parent child Browse files
Show More
@@ -1,649 +1,649 b''
1 1 ################################################################################
2 2 ################################################################################
3 3 # RhodeCode Enterprise - configuration file #
4 4 # Built-in functions and variables #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 # #
7 7 ################################################################################
8 8
9 9 [DEFAULT]
10 10 debug = true
11 11 ################################################################################
12 12 ## Uncomment and replace with the email address which should receive ##
13 13 ## any error reports after an application crash ##
14 14 ## Additionally these settings will be used by the 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 ## COMMON ##
33 33 host = 127.0.0.1
34 34 port = 5000
35 35
36 36 ##################################
37 37 ## WAITRESS WSGI SERVER ##
38 38 ## Recommended for Development ##
39 39 ##################################
40 40 use = egg:waitress#main
41 41 ## number of worker threads
42 42 threads = 5
43 43 ## MAX BODY SIZE 100GB
44 44 max_request_body_size = 107374182400
45 45 ## Use poll instead of select, fixes file descriptors limits problems.
46 46 ## May not work on old windows systems.
47 47 asyncore_use_poll = true
48 48
49 49
50 50 ##########################
51 51 ## GUNICORN WSGI SERVER ##
52 52 ##########################
53 53 ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini>
54 54 #use = egg:gunicorn#main
55 55 ## Sets the number of process workers. You must set `instance_id = *`
56 56 ## when this option is set to more than one worker, recommended
57 57 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
58 58 ## The `instance_id = *` must be set in the [app:main] section below
59 59 #workers = 2
60 60 ## number of threads for each of the worker, must be set to 1 for gevent
61 61 ## generally recommened to be at 1
62 62 #threads = 1
63 63 ## process name
64 64 #proc_name = rhodecode
65 65 ## type of worker class, one of sync, gevent
66 66 ## recommended for bigger setup is using of of other than sync one
67 67 #worker_class = sync
68 68 ## The maximum number of simultaneous clients. Valid only for Gevent
69 69 #worker_connections = 10
70 70 ## max number of requests that worker will handle before being gracefully
71 71 ## restarted, could prevent memory leaks
72 72 #max_requests = 1000
73 73 #max_requests_jitter = 30
74 74 ## amount of time a worker can spend with handling a request before it
75 75 ## gets killed and restarted. Set to 6hrs
76 76 #timeout = 21600
77 77
78 78
79 79 ## prefix middleware for RhodeCode, disables force_https flag.
80 80 ## allows to set RhodeCode under a prefix in server.
81 81 ## eg https://server.com/<prefix>. Enable `filter-with =` option below as well.
82 82 #[filter:proxy-prefix]
83 83 #use = egg:PasteDeploy#prefix
84 84 #prefix = /<your-prefix>
85 85
86 86 [app:main]
87 87 use = egg:rhodecode-enterprise-ce
88 88 ## enable proxy prefix middleware, defined below
89 89 #filter-with = proxy-prefix
90 90
91 91 # During development the we want to have the debug toolbar enabled
92 92 pyramid.includes =
93 93 pyramid_debugtoolbar
94 94 rhodecode.utils.debugtoolbar
95 95 rhodecode.lib.middleware.request_wrapper
96 96
97 97 pyramid.reload_templates = true
98 98
99 99 debugtoolbar.hosts = 0.0.0.0/0
100 100 debugtoolbar.exclude_prefixes =
101 101 /css
102 102 /fonts
103 103 /images
104 104 /js
105 105
106 106 ## RHODECODE PLUGINS ##
107 107 rhodecode.includes =
108 108 rhodecode.api
109 109
110 110
111 111 # api prefix url
112 112 rhodecode.api.url = /_admin/api
113 113
114 114
115 115 ## END RHODECODE PLUGINS ##
116 116
117 117 ## encryption key used to encrypt social plugin tokens,
118 118 ## remote_urls with credentials etc, if not set it defaults to
119 119 ## `beaker.session.secret`
120 120 #rhodecode.encrypted_values.secret =
121 121
122 122 ## decryption strict mode (enabled by default). It controls if decryption raises
123 123 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
124 124 #rhodecode.encrypted_values.strict = false
125 125
126 126 ## return gzipped responses from Rhodecode (static files/application)
127 gzip_responses = true
127 gzip_responses = false
128 128
129 129 ## autogenerate javascript routes file on startup
130 130 generate_js_files = false
131 131
132 132 ## Optional Languages
133 133 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
134 134 lang = en
135 135
136 136 ## perform a full repository scan on each server start, this should be
137 137 ## set to false after first startup, to allow faster server restarts.
138 138 startup.import_repos = false
139 139
140 140 ## Uncomment and set this path to use archive download cache.
141 141 ## Once enabled, generated archives will be cached at this location
142 142 ## and served from the cache during subsequent requests for the same archive of
143 143 ## the repository.
144 144 #archive_cache_dir = /tmp/tarballcache
145 145
146 146 ## change this to unique ID for security
147 147 app_instance_uuid = rc-production
148 148
149 149 ## cut off limit for large diffs (size in bytes)
150 150 cut_off_limit_diff = 1024000
151 151 cut_off_limit_file = 256000
152 152
153 153 ## use cache version of scm repo everywhere
154 154 vcs_full_cache = true
155 155
156 156 ## force https in RhodeCode, fixes https redirects, assumes it's always https
157 157 ## Normally this is controlled by proper http flags sent from http server
158 158 force_https = false
159 159
160 160 ## use Strict-Transport-Security headers
161 161 use_htsts = false
162 162
163 163 ## number of commits stats will parse on each iteration
164 164 commit_parse_limit = 25
165 165
166 166 ## git rev filter option, --all is the default filter, if you need to
167 167 ## hide all refs in changelog switch this to --branches --tags
168 168 git_rev_filter = --branches --tags
169 169
170 170 # Set to true if your repos are exposed using the dumb protocol
171 171 git_update_server_info = false
172 172
173 173 ## RSS/ATOM feed options
174 174 rss_cut_off_limit = 256000
175 175 rss_items_per_page = 10
176 176 rss_include_diff = false
177 177
178 178 ## gist URL alias, used to create nicer urls for gist. This should be an
179 179 ## url that does rewrites to _admin/gists/<gistid>.
180 180 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
181 181 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid>
182 182 gist_alias_url =
183 183
184 184 ## List of controllers (using glob pattern syntax) that AUTH TOKENS could be
185 185 ## used for access.
186 186 ## Adding ?auth_token = <token> to the url authenticates this request as if it
187 187 ## came from the the logged in user who own this authentication token.
188 188 ##
189 189 ## Syntax is <ControllerClass>:<function_pattern>.
190 190 ## To enable access to raw_files put `FilesController:raw`.
191 191 ## To enable access to patches add `ChangesetController:changeset_patch`.
192 192 ## The list should be "," separated and on a single line.
193 193 ##
194 194 ## Recommended controllers to enable:
195 195 # ChangesetController:changeset_patch,
196 196 # ChangesetController:changeset_raw,
197 197 # FilesController:raw,
198 198 # FilesController:archivefile,
199 199 # GistsController:*,
200 200 api_access_controllers_whitelist =
201 201
202 202 ## default encoding used to convert from and to unicode
203 203 ## can be also a comma separated list of encoding in case of mixed encodings
204 204 default_encoding = UTF-8
205 205
206 206 ## instance-id prefix
207 207 ## a prefix key for this instance used for cache invalidation when running
208 208 ## multiple instances of rhodecode, make sure it's globally unique for
209 209 ## all running rhodecode instances. Leave empty if you don't use it
210 210 instance_id =
211 211
212 212 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
213 213 ## of an authentication plugin also if it is disabled by it's settings.
214 214 ## This could be useful if you are unable to log in to the system due to broken
215 215 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
216 216 ## module to log in again and fix the settings.
217 217 ##
218 218 ## Available builtin plugin IDs (hash is part of the ID):
219 219 ## egg:rhodecode-enterprise-ce#rhodecode
220 220 ## egg:rhodecode-enterprise-ce#pam
221 221 ## egg:rhodecode-enterprise-ce#ldap
222 222 ## egg:rhodecode-enterprise-ce#jasig_cas
223 223 ## egg:rhodecode-enterprise-ce#headers
224 224 ## egg:rhodecode-enterprise-ce#crowd
225 225 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
226 226
227 227 ## alternative return HTTP header for failed authentication. Default HTTP
228 228 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
229 229 ## handling that causing a series of failed authentication calls.
230 230 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
231 231 ## This will be served instead of default 401 on bad authnetication
232 232 auth_ret_code =
233 233
234 234 ## use special detection method when serving auth_ret_code, instead of serving
235 235 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
236 236 ## and then serve auth_ret_code to clients
237 237 auth_ret_code_detection = false
238 238
239 239 ## locking return code. When repository is locked return this HTTP code. 2XX
240 240 ## codes don't break the transactions while 4XX codes do
241 241 lock_ret_code = 423
242 242
243 243 ## allows to change the repository location in settings page
244 244 allow_repo_location_change = true
245 245
246 246 ## allows to setup custom hooks in settings page
247 247 allow_custom_hooks_settings = true
248 248
249 249 ## generated license token, goto license page in RhodeCode settings to obtain
250 250 ## new token
251 251 license_token =
252 252
253 253 ## supervisor connection uri, for managing supervisor and logs.
254 254 supervisor.uri =
255 255 ## supervisord group name/id we only want this RC instance to handle
256 256 supervisor.group_id = dev
257 257
258 258 ## Display extended labs settings
259 259 labs_settings_active = true
260 260
261 261 ####################################
262 262 ### CELERY CONFIG ####
263 263 ####################################
264 264 use_celery = false
265 265 broker.host = localhost
266 266 broker.vhost = rabbitmqhost
267 267 broker.port = 5672
268 268 broker.user = rabbitmq
269 269 broker.password = qweqwe
270 270
271 271 celery.imports = rhodecode.lib.celerylib.tasks
272 272
273 273 celery.result.backend = amqp
274 274 celery.result.dburi = amqp://
275 275 celery.result.serialier = json
276 276
277 277 #celery.send.task.error.emails = true
278 278 #celery.amqp.task.result.expires = 18000
279 279
280 280 celeryd.concurrency = 2
281 281 #celeryd.log.file = celeryd.log
282 282 celeryd.log.level = debug
283 283 celeryd.max.tasks.per.child = 1
284 284
285 285 ## tasks will never be sent to the queue, but executed locally instead.
286 286 celery.always.eager = false
287 287
288 288 ####################################
289 289 ### BEAKER CACHE ####
290 290 ####################################
291 291 # default cache dir for templates. Putting this into a ramdisk
292 292 ## can boost performance, eg. %(here)s/data_ramdisk
293 293 cache_dir = %(here)s/data
294 294
295 295 ## locking and default file storage for Beaker. Putting this into a ramdisk
296 296 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
297 297 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
298 298 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
299 299
300 300 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
301 301
302 302 beaker.cache.super_short_term.type = memory
303 303 beaker.cache.super_short_term.expire = 10
304 304 beaker.cache.super_short_term.key_length = 256
305 305
306 306 beaker.cache.short_term.type = memory
307 307 beaker.cache.short_term.expire = 60
308 308 beaker.cache.short_term.key_length = 256
309 309
310 310 beaker.cache.long_term.type = memory
311 311 beaker.cache.long_term.expire = 36000
312 312 beaker.cache.long_term.key_length = 256
313 313
314 314 beaker.cache.sql_cache_short.type = memory
315 315 beaker.cache.sql_cache_short.expire = 10
316 316 beaker.cache.sql_cache_short.key_length = 256
317 317
318 318 ## default is memory cache, configure only if required
319 319 ## using multi-node or multi-worker setup
320 320 #beaker.cache.auth_plugins.type = ext:database
321 321 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
322 322 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
323 323 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
324 324 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
325 325 #beaker.cache.auth_plugins.sa.pool_size = 10
326 326 #beaker.cache.auth_plugins.sa.max_overflow = 0
327 327
328 328 beaker.cache.repo_cache_long.type = memorylru_base
329 329 beaker.cache.repo_cache_long.max_items = 4096
330 330 beaker.cache.repo_cache_long.expire = 2592000
331 331
332 332 ## default is memorylru_base cache, configure only if required
333 333 ## using multi-node or multi-worker setup
334 334 #beaker.cache.repo_cache_long.type = ext:memcached
335 335 #beaker.cache.repo_cache_long.url = localhost:11211
336 336 #beaker.cache.repo_cache_long.expire = 1209600
337 337 #beaker.cache.repo_cache_long.key_length = 256
338 338
339 339 ####################################
340 340 ### BEAKER SESSION ####
341 341 ####################################
342 342
343 343 ## .session.type is type of storage options for the session, current allowed
344 344 ## types are file, ext:memcached, ext:database, and memory (default).
345 345 beaker.session.type = file
346 346 beaker.session.data_dir = %(here)s/data/sessions/data
347 347
348 348 ## db based session, fast, and allows easy management over logged in users ##
349 349 #beaker.session.type = ext:database
350 350 #beaker.session.table_name = db_session
351 351 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
352 352 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
353 353 #beaker.session.sa.pool_recycle = 3600
354 354 #beaker.session.sa.echo = false
355 355
356 356 beaker.session.key = rhodecode
357 357 beaker.session.secret = develop-rc-uytcxaz
358 358 beaker.session.lock_dir = %(here)s/data/sessions/lock
359 359
360 360 ## Secure encrypted cookie. Requires AES and AES python libraries
361 361 ## you must disable beaker.session.secret to use this
362 362 #beaker.session.encrypt_key = <key_for_encryption>
363 363 #beaker.session.validate_key = <validation_key>
364 364
365 365 ## sets session as invalid(also logging out user) if it haven not been
366 366 ## accessed for given amount of time in seconds
367 367 beaker.session.timeout = 2592000
368 368 beaker.session.httponly = true
369 369 #beaker.session.cookie_path = /<your-prefix>
370 370
371 371 ## uncomment for https secure cookie
372 372 beaker.session.secure = false
373 373
374 374 ## auto save the session to not to use .save()
375 375 beaker.session.auto = false
376 376
377 377 ## default cookie expiration time in seconds, set to `true` to set expire
378 378 ## at browser close
379 379 #beaker.session.cookie_expires = 3600
380 380
381 381 ###################################
382 382 ## SEARCH INDEXING CONFIGURATION ##
383 383 ###################################
384 384 ## Full text search indexer is available in rhodecode-tools under
385 385 ## `rhodecode-tools index` command
386 386
387 387 # WHOOSH Backend, doesn't require additional services to run
388 388 # it works good with few dozen repos
389 389 search.module = rhodecode.lib.index.whoosh
390 390 search.location = %(here)s/data/index
391 391
392 392 ########################################
393 393 ### CHANNELSTREAM CONFIG ####
394 394 ########################################
395 395 ## channelstream enables persistent connections and live notification
396 396 ## in the system. It's also used by the chat system
397 397
398 398 channelstream.enabled = true
399 399 # location of channelstream server on the backend
400 400 channelstream.server = 127.0.0.1:9800
401 401 # location of the channelstream server from outside world
402 402 channelstream.ws_url = ws://127.0.0.1:9800
403 403 channelstream.secret = secret
404 404 channelstream.history.location = %(here)s/channelstream_history
405 405
406 406
407 407 ###################################
408 408 ## APPENLIGHT CONFIG ##
409 409 ###################################
410 410
411 411 ## Appenlight is tailored to work with RhodeCode, see
412 412 ## http://appenlight.com for details how to obtain an account
413 413
414 414 ## appenlight integration enabled
415 415 appenlight = false
416 416
417 417 appenlight.server_url = https://api.appenlight.com
418 418 appenlight.api_key = YOUR_API_KEY
419 419 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
420 420
421 421 # used for JS client
422 422 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
423 423
424 424 ## TWEAK AMOUNT OF INFO SENT HERE
425 425
426 426 ## enables 404 error logging (default False)
427 427 appenlight.report_404 = false
428 428
429 429 ## time in seconds after request is considered being slow (default 1)
430 430 appenlight.slow_request_time = 1
431 431
432 432 ## record slow requests in application
433 433 ## (needs to be enabled for slow datastore recording and time tracking)
434 434 appenlight.slow_requests = true
435 435
436 436 ## enable hooking to application loggers
437 437 appenlight.logging = true
438 438
439 439 ## minimum log level for log capture
440 440 appenlight.logging.level = WARNING
441 441
442 442 ## send logs only from erroneous/slow requests
443 443 ## (saves API quota for intensive logging)
444 444 appenlight.logging_on_error = false
445 445
446 446 ## list of additonal keywords that should be grabbed from environ object
447 447 ## can be string with comma separated list of words in lowercase
448 448 ## (by default client will always send following info:
449 449 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
450 450 ## start with HTTP* this list be extended with additional keywords here
451 451 appenlight.environ_keys_whitelist =
452 452
453 453 ## list of keywords that should be blanked from request object
454 454 ## can be string with comma separated list of words in lowercase
455 455 ## (by default client will always blank keys that contain following words
456 456 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
457 457 ## this list be extended with additional keywords set here
458 458 appenlight.request_keys_blacklist =
459 459
460 460 ## list of namespaces that should be ignores when gathering log entries
461 461 ## can be string with comma separated list of namespaces
462 462 ## (by default the client ignores own entries: appenlight_client.client)
463 463 appenlight.log_namespace_blacklist =
464 464
465 465
466 466 ################################################################################
467 467 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
468 468 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
469 469 ## execute malicious code after an exception is raised. ##
470 470 ################################################################################
471 471 #set debug = false
472 472
473 473
474 474 ##############
475 475 ## STYLING ##
476 476 ##############
477 477 debug_style = true
478 478
479 479 #########################################################
480 480 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
481 481 #########################################################
482 482 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
483 483 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
484 484 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
485 485
486 486 # see sqlalchemy docs for other advanced settings
487 487
488 488 ## print the sql statements to output
489 489 sqlalchemy.db1.echo = false
490 490 ## recycle the connections after this ammount of seconds
491 491 sqlalchemy.db1.pool_recycle = 3600
492 492 sqlalchemy.db1.convert_unicode = true
493 493
494 494 ## the number of connections to keep open inside the connection pool.
495 495 ## 0 indicates no limit
496 496 #sqlalchemy.db1.pool_size = 5
497 497
498 498 ## the number of connections to allow in connection pool "overflow", that is
499 499 ## connections that can be opened above and beyond the pool_size setting,
500 500 ## which defaults to five.
501 501 #sqlalchemy.db1.max_overflow = 10
502 502
503 503
504 504 ##################
505 505 ### VCS CONFIG ###
506 506 ##################
507 507 vcs.server.enable = true
508 508 vcs.server = localhost:9900
509 509
510 510 ## Web server connectivity protocol, responsible for web based VCS operatations
511 511 ## Available protocols are:
512 512 ## `pyro4` - using pyro4 server
513 513 ## `http` - using http-rpc backend
514 514 vcs.server.protocol = http
515 515
516 516 ## Push/Pull operations protocol, available options are:
517 517 ## `pyro4` - using pyro4 server
518 518 ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended
519 519 ## `vcsserver.scm_app` - internal app (EE only)
520 520 vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
521 521
522 522 ## Push/Pull operations hooks protocol, available options are:
523 523 ## `pyro4` - using pyro4 server
524 524 ## `http` - using http-rpc backend
525 525 vcs.hooks.protocol = http
526 526
527 527 vcs.server.log_level = debug
528 528 ## Start VCSServer with this instance as a subprocess, usefull for development
529 529 vcs.start_server = true
530 530
531 531 ## List of enabled VCS backends, available options are:
532 532 ## `hg` - mercurial
533 533 ## `git` - git
534 534 ## `svn` - subversion
535 535 vcs.backends = hg, git, svn
536 536
537 537 vcs.connection_timeout = 3600
538 538 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
539 539 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
540 540 #vcs.svn.compatible_version = pre-1.8-compatible
541 541
542 542
543 543 ##############################################
544 544 ### Subversion proxy support (mod_dav_svn) ###
545 545 ##############################################
546 546 ## Enable or disable the config file generation.
547 547 svn.proxy.generate_config = false
548 548 ## Generate config file with `SVNListParentPath` set to `On`.
549 549 svn.proxy.list_parent_path = true
550 550 ## Set location and file name of generated config file.
551 551 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
552 552 ## File system path to the directory containing the repositories served by
553 553 ## RhodeCode.
554 554 svn.proxy.parent_path_root = /path/to/repo_store
555 555 ## Used as a prefix to the <Location> block in the generated config file. In
556 556 ## most cases it should be set to `/`.
557 557 svn.proxy.location_root = /
558 558
559 559
560 560 ################################
561 561 ### LOGGING CONFIGURATION ####
562 562 ################################
563 563 [loggers]
564 564 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates
565 565
566 566 [handlers]
567 567 keys = console, console_sql
568 568
569 569 [formatters]
570 570 keys = generic, color_formatter, color_formatter_sql
571 571
572 572 #############
573 573 ## LOGGERS ##
574 574 #############
575 575 [logger_root]
576 576 level = NOTSET
577 577 handlers = console
578 578
579 579 [logger_routes]
580 580 level = DEBUG
581 581 handlers =
582 582 qualname = routes.middleware
583 583 ## "level = DEBUG" logs the route matched and routing variables.
584 584 propagate = 1
585 585
586 586 [logger_beaker]
587 587 level = DEBUG
588 588 handlers =
589 589 qualname = beaker.container
590 590 propagate = 1
591 591
592 592 [logger_pyro4]
593 593 level = DEBUG
594 594 handlers =
595 595 qualname = Pyro4
596 596 propagate = 1
597 597
598 598 [logger_templates]
599 599 level = INFO
600 600 handlers =
601 601 qualname = pylons.templating
602 602 propagate = 1
603 603
604 604 [logger_rhodecode]
605 605 level = DEBUG
606 606 handlers =
607 607 qualname = rhodecode
608 608 propagate = 1
609 609
610 610 [logger_sqlalchemy]
611 611 level = INFO
612 612 handlers = console_sql
613 613 qualname = sqlalchemy.engine
614 614 propagate = 0
615 615
616 616 ##############
617 617 ## HANDLERS ##
618 618 ##############
619 619
620 620 [handler_console]
621 621 class = StreamHandler
622 622 args = (sys.stderr,)
623 623 level = DEBUG
624 624 formatter = color_formatter
625 625
626 626 [handler_console_sql]
627 627 class = StreamHandler
628 628 args = (sys.stderr,)
629 629 level = DEBUG
630 630 formatter = color_formatter_sql
631 631
632 632 ################
633 633 ## FORMATTERS ##
634 634 ################
635 635
636 636 [formatter_generic]
637 637 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
638 638 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
639 639 datefmt = %Y-%m-%d %H:%M:%S
640 640
641 641 [formatter_color_formatter]
642 642 class = rhodecode.lib.logging_formatter.ColorFormatter
643 643 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
644 644 datefmt = %Y-%m-%d %H:%M:%S
645 645
646 646 [formatter_color_formatter_sql]
647 647 class = rhodecode.lib.logging_formatter.ColorFormatterSql
648 648 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
649 649 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,618 +1,618 b''
1 1 ################################################################################
2 2 ################################################################################
3 3 # RhodeCode Enterprise - configuration file #
4 4 # Built-in functions and variables #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 # #
7 7 ################################################################################
8 8
9 9 [DEFAULT]
10 10 debug = true
11 11 ################################################################################
12 12 ## Uncomment and replace with the email address which should receive ##
13 13 ## any error reports after an application crash ##
14 14 ## Additionally these settings will be used by the 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 ## COMMON ##
33 33 host = 127.0.0.1
34 34 port = 5000
35 35
36 36 ##################################
37 37 ## WAITRESS WSGI SERVER ##
38 38 ## Recommended for Development ##
39 39 ##################################
40 40 #use = egg:waitress#main
41 41 ## number of worker threads
42 42 #threads = 5
43 43 ## MAX BODY SIZE 100GB
44 44 #max_request_body_size = 107374182400
45 45 ## Use poll instead of select, fixes file descriptors limits problems.
46 46 ## May not work on old windows systems.
47 47 #asyncore_use_poll = true
48 48
49 49
50 50 ##########################
51 51 ## GUNICORN WSGI SERVER ##
52 52 ##########################
53 53 ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini>
54 54 use = egg:gunicorn#main
55 55 ## Sets the number of process workers. You must set `instance_id = *`
56 56 ## when this option is set to more than one worker, recommended
57 57 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
58 58 ## The `instance_id = *` must be set in the [app:main] section below
59 59 workers = 2
60 60 ## number of threads for each of the worker, must be set to 1 for gevent
61 61 ## generally recommened to be at 1
62 62 #threads = 1
63 63 ## process name
64 64 proc_name = rhodecode
65 65 ## type of worker class, one of sync, gevent
66 66 ## recommended for bigger setup is using of of other than sync one
67 67 worker_class = sync
68 68 ## The maximum number of simultaneous clients. Valid only for Gevent
69 69 #worker_connections = 10
70 70 ## max number of requests that worker will handle before being gracefully
71 71 ## restarted, could prevent memory leaks
72 72 max_requests = 1000
73 73 max_requests_jitter = 30
74 74 ## amount of time a worker can spend with handling a request before it
75 75 ## gets killed and restarted. Set to 6hrs
76 76 timeout = 21600
77 77
78 78
79 79 ## prefix middleware for RhodeCode, disables force_https flag.
80 80 ## allows to set RhodeCode under a prefix in server.
81 81 ## eg https://server.com/<prefix>. Enable `filter-with =` option below as well.
82 82 #[filter:proxy-prefix]
83 83 #use = egg:PasteDeploy#prefix
84 84 #prefix = /<your-prefix>
85 85
86 86 [app:main]
87 87 use = egg:rhodecode-enterprise-ce
88 88 ## enable proxy prefix middleware, defined below
89 89 #filter-with = proxy-prefix
90 90
91 91 ## encryption key used to encrypt social plugin tokens,
92 92 ## remote_urls with credentials etc, if not set it defaults to
93 93 ## `beaker.session.secret`
94 94 #rhodecode.encrypted_values.secret =
95 95
96 96 ## decryption strict mode (enabled by default). It controls if decryption raises
97 97 ## `SignatureVerificationError` in case of wrong key, or damaged encryption data.
98 98 #rhodecode.encrypted_values.strict = false
99 99
100 100 ## return gzipped responses from Rhodecode (static files/application)
101 gzip_responses = true
101 gzip_responses = false
102 102
103 103 ## autogenerate javascript routes file on startup
104 104 generate_js_files = false
105 105
106 106 ## Optional Languages
107 107 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
108 108 lang = en
109 109
110 110 ## perform a full repository scan on each server start, this should be
111 111 ## set to false after first startup, to allow faster server restarts.
112 112 startup.import_repos = false
113 113
114 114 ## Uncomment and set this path to use archive download cache.
115 115 ## Once enabled, generated archives will be cached at this location
116 116 ## and served from the cache during subsequent requests for the same archive of
117 117 ## the repository.
118 118 #archive_cache_dir = /tmp/tarballcache
119 119
120 120 ## change this to unique ID for security
121 121 app_instance_uuid = rc-production
122 122
123 123 ## cut off limit for large diffs (size in bytes)
124 124 cut_off_limit_diff = 1024000
125 125 cut_off_limit_file = 256000
126 126
127 127 ## use cache version of scm repo everywhere
128 128 vcs_full_cache = true
129 129
130 130 ## force https in RhodeCode, fixes https redirects, assumes it's always https
131 131 ## Normally this is controlled by proper http flags sent from http server
132 132 force_https = false
133 133
134 134 ## use Strict-Transport-Security headers
135 135 use_htsts = false
136 136
137 137 ## number of commits stats will parse on each iteration
138 138 commit_parse_limit = 25
139 139
140 140 ## git rev filter option, --all is the default filter, if you need to
141 141 ## hide all refs in changelog switch this to --branches --tags
142 142 git_rev_filter = --branches --tags
143 143
144 144 # Set to true if your repos are exposed using the dumb protocol
145 145 git_update_server_info = false
146 146
147 147 ## RSS/ATOM feed options
148 148 rss_cut_off_limit = 256000
149 149 rss_items_per_page = 10
150 150 rss_include_diff = false
151 151
152 152 ## gist URL alias, used to create nicer urls for gist. This should be an
153 153 ## url that does rewrites to _admin/gists/<gistid>.
154 154 ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
155 155 ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid>
156 156 gist_alias_url =
157 157
158 158 ## List of controllers (using glob pattern syntax) that AUTH TOKENS could be
159 159 ## used for access.
160 160 ## Adding ?auth_token = <token> to the url authenticates this request as if it
161 161 ## came from the the logged in user who own this authentication token.
162 162 ##
163 163 ## Syntax is <ControllerClass>:<function_pattern>.
164 164 ## To enable access to raw_files put `FilesController:raw`.
165 165 ## To enable access to patches add `ChangesetController:changeset_patch`.
166 166 ## The list should be "," separated and on a single line.
167 167 ##
168 168 ## Recommended controllers to enable:
169 169 # ChangesetController:changeset_patch,
170 170 # ChangesetController:changeset_raw,
171 171 # FilesController:raw,
172 172 # FilesController:archivefile,
173 173 # GistsController:*,
174 174 api_access_controllers_whitelist =
175 175
176 176 ## default encoding used to convert from and to unicode
177 177 ## can be also a comma separated list of encoding in case of mixed encodings
178 178 default_encoding = UTF-8
179 179
180 180 ## instance-id prefix
181 181 ## a prefix key for this instance used for cache invalidation when running
182 182 ## multiple instances of rhodecode, make sure it's globally unique for
183 183 ## all running rhodecode instances. Leave empty if you don't use it
184 184 instance_id =
185 185
186 186 ## Fallback authentication plugin. Set this to a plugin ID to force the usage
187 187 ## of an authentication plugin also if it is disabled by it's settings.
188 188 ## This could be useful if you are unable to log in to the system due to broken
189 189 ## authentication settings. Then you can enable e.g. the internal rhodecode auth
190 190 ## module to log in again and fix the settings.
191 191 ##
192 192 ## Available builtin plugin IDs (hash is part of the ID):
193 193 ## egg:rhodecode-enterprise-ce#rhodecode
194 194 ## egg:rhodecode-enterprise-ce#pam
195 195 ## egg:rhodecode-enterprise-ce#ldap
196 196 ## egg:rhodecode-enterprise-ce#jasig_cas
197 197 ## egg:rhodecode-enterprise-ce#headers
198 198 ## egg:rhodecode-enterprise-ce#crowd
199 199 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
200 200
201 201 ## alternative return HTTP header for failed authentication. Default HTTP
202 202 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
203 203 ## handling that causing a series of failed authentication calls.
204 204 ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code
205 205 ## This will be served instead of default 401 on bad authnetication
206 206 auth_ret_code =
207 207
208 208 ## use special detection method when serving auth_ret_code, instead of serving
209 209 ## ret_code directly, use 401 initially (Which triggers credentials prompt)
210 210 ## and then serve auth_ret_code to clients
211 211 auth_ret_code_detection = false
212 212
213 213 ## locking return code. When repository is locked return this HTTP code. 2XX
214 214 ## codes don't break the transactions while 4XX codes do
215 215 lock_ret_code = 423
216 216
217 217 ## allows to change the repository location in settings page
218 218 allow_repo_location_change = true
219 219
220 220 ## allows to setup custom hooks in settings page
221 221 allow_custom_hooks_settings = true
222 222
223 223 ## generated license token, goto license page in RhodeCode settings to obtain
224 224 ## new token
225 225 license_token =
226 226
227 227 ## supervisor connection uri, for managing supervisor and logs.
228 228 supervisor.uri =
229 229 ## supervisord group name/id we only want this RC instance to handle
230 230 supervisor.group_id = prod
231 231
232 232 ## Display extended labs settings
233 233 labs_settings_active = true
234 234
235 235 ####################################
236 236 ### CELERY CONFIG ####
237 237 ####################################
238 238 use_celery = false
239 239 broker.host = localhost
240 240 broker.vhost = rabbitmqhost
241 241 broker.port = 5672
242 242 broker.user = rabbitmq
243 243 broker.password = qweqwe
244 244
245 245 celery.imports = rhodecode.lib.celerylib.tasks
246 246
247 247 celery.result.backend = amqp
248 248 celery.result.dburi = amqp://
249 249 celery.result.serialier = json
250 250
251 251 #celery.send.task.error.emails = true
252 252 #celery.amqp.task.result.expires = 18000
253 253
254 254 celeryd.concurrency = 2
255 255 #celeryd.log.file = celeryd.log
256 256 celeryd.log.level = debug
257 257 celeryd.max.tasks.per.child = 1
258 258
259 259 ## tasks will never be sent to the queue, but executed locally instead.
260 260 celery.always.eager = false
261 261
262 262 ####################################
263 263 ### BEAKER CACHE ####
264 264 ####################################
265 265 # default cache dir for templates. Putting this into a ramdisk
266 266 ## can boost performance, eg. %(here)s/data_ramdisk
267 267 cache_dir = %(here)s/data
268 268
269 269 ## locking and default file storage for Beaker. Putting this into a ramdisk
270 270 ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data
271 271 beaker.cache.data_dir = %(here)s/data/cache/beaker_data
272 272 beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock
273 273
274 274 beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long
275 275
276 276 beaker.cache.super_short_term.type = memory
277 277 beaker.cache.super_short_term.expire = 10
278 278 beaker.cache.super_short_term.key_length = 256
279 279
280 280 beaker.cache.short_term.type = memory
281 281 beaker.cache.short_term.expire = 60
282 282 beaker.cache.short_term.key_length = 256
283 283
284 284 beaker.cache.long_term.type = memory
285 285 beaker.cache.long_term.expire = 36000
286 286 beaker.cache.long_term.key_length = 256
287 287
288 288 beaker.cache.sql_cache_short.type = memory
289 289 beaker.cache.sql_cache_short.expire = 10
290 290 beaker.cache.sql_cache_short.key_length = 256
291 291
292 292 ## default is memory cache, configure only if required
293 293 ## using multi-node or multi-worker setup
294 294 #beaker.cache.auth_plugins.type = ext:database
295 295 #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock
296 296 #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode
297 297 #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode
298 298 #beaker.cache.auth_plugins.sa.pool_recycle = 3600
299 299 #beaker.cache.auth_plugins.sa.pool_size = 10
300 300 #beaker.cache.auth_plugins.sa.max_overflow = 0
301 301
302 302 beaker.cache.repo_cache_long.type = memorylru_base
303 303 beaker.cache.repo_cache_long.max_items = 4096
304 304 beaker.cache.repo_cache_long.expire = 2592000
305 305
306 306 ## default is memorylru_base cache, configure only if required
307 307 ## using multi-node or multi-worker setup
308 308 #beaker.cache.repo_cache_long.type = ext:memcached
309 309 #beaker.cache.repo_cache_long.url = localhost:11211
310 310 #beaker.cache.repo_cache_long.expire = 1209600
311 311 #beaker.cache.repo_cache_long.key_length = 256
312 312
313 313 ####################################
314 314 ### BEAKER SESSION ####
315 315 ####################################
316 316
317 317 ## .session.type is type of storage options for the session, current allowed
318 318 ## types are file, ext:memcached, ext:database, and memory (default).
319 319 beaker.session.type = file
320 320 beaker.session.data_dir = %(here)s/data/sessions/data
321 321
322 322 ## db based session, fast, and allows easy management over logged in users ##
323 323 #beaker.session.type = ext:database
324 324 #beaker.session.table_name = db_session
325 325 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
326 326 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
327 327 #beaker.session.sa.pool_recycle = 3600
328 328 #beaker.session.sa.echo = false
329 329
330 330 beaker.session.key = rhodecode
331 331 beaker.session.secret = production-rc-uytcxaz
332 332 beaker.session.lock_dir = %(here)s/data/sessions/lock
333 333
334 334 ## Secure encrypted cookie. Requires AES and AES python libraries
335 335 ## you must disable beaker.session.secret to use this
336 336 #beaker.session.encrypt_key = <key_for_encryption>
337 337 #beaker.session.validate_key = <validation_key>
338 338
339 339 ## sets session as invalid(also logging out user) if it haven not been
340 340 ## accessed for given amount of time in seconds
341 341 beaker.session.timeout = 2592000
342 342 beaker.session.httponly = true
343 343 #beaker.session.cookie_path = /<your-prefix>
344 344
345 345 ## uncomment for https secure cookie
346 346 beaker.session.secure = false
347 347
348 348 ## auto save the session to not to use .save()
349 349 beaker.session.auto = false
350 350
351 351 ## default cookie expiration time in seconds, set to `true` to set expire
352 352 ## at browser close
353 353 #beaker.session.cookie_expires = 3600
354 354
355 355 ###################################
356 356 ## SEARCH INDEXING CONFIGURATION ##
357 357 ###################################
358 358 ## Full text search indexer is available in rhodecode-tools under
359 359 ## `rhodecode-tools index` command
360 360
361 361 # WHOOSH Backend, doesn't require additional services to run
362 362 # it works good with few dozen repos
363 363 search.module = rhodecode.lib.index.whoosh
364 364 search.location = %(here)s/data/index
365 365
366 366 ########################################
367 367 ### CHANNELSTREAM CONFIG ####
368 368 ########################################
369 369 ## channelstream enables persistent connections and live notification
370 370 ## in the system. It's also used by the chat system
371 371
372 372 channelstream.enabled = true
373 373 # location of channelstream server on the backend
374 374 channelstream.server = 127.0.0.1:9800
375 375 # location of the channelstream server from outside world
376 376 channelstream.ws_url = ws://127.0.0.1:9800
377 377 channelstream.secret = secret
378 378 channelstream.history.location = %(here)s/channelstream_history
379 379
380 380
381 381 ###################################
382 382 ## APPENLIGHT CONFIG ##
383 383 ###################################
384 384
385 385 ## Appenlight is tailored to work with RhodeCode, see
386 386 ## http://appenlight.com for details how to obtain an account
387 387
388 388 ## appenlight integration enabled
389 389 appenlight = false
390 390
391 391 appenlight.server_url = https://api.appenlight.com
392 392 appenlight.api_key = YOUR_API_KEY
393 393 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
394 394
395 395 # used for JS client
396 396 appenlight.api_public_key = YOUR_API_PUBLIC_KEY
397 397
398 398 ## TWEAK AMOUNT OF INFO SENT HERE
399 399
400 400 ## enables 404 error logging (default False)
401 401 appenlight.report_404 = false
402 402
403 403 ## time in seconds after request is considered being slow (default 1)
404 404 appenlight.slow_request_time = 1
405 405
406 406 ## record slow requests in application
407 407 ## (needs to be enabled for slow datastore recording and time tracking)
408 408 appenlight.slow_requests = true
409 409
410 410 ## enable hooking to application loggers
411 411 appenlight.logging = true
412 412
413 413 ## minimum log level for log capture
414 414 appenlight.logging.level = WARNING
415 415
416 416 ## send logs only from erroneous/slow requests
417 417 ## (saves API quota for intensive logging)
418 418 appenlight.logging_on_error = false
419 419
420 420 ## list of additonal keywords that should be grabbed from environ object
421 421 ## can be string with comma separated list of words in lowercase
422 422 ## (by default client will always send following info:
423 423 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
424 424 ## start with HTTP* this list be extended with additional keywords here
425 425 appenlight.environ_keys_whitelist =
426 426
427 427 ## list of keywords that should be blanked from request object
428 428 ## can be string with comma separated list of words in lowercase
429 429 ## (by default client will always blank keys that contain following words
430 430 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
431 431 ## this list be extended with additional keywords set here
432 432 appenlight.request_keys_blacklist =
433 433
434 434 ## list of namespaces that should be ignores when gathering log entries
435 435 ## can be string with comma separated list of namespaces
436 436 ## (by default the client ignores own entries: appenlight_client.client)
437 437 appenlight.log_namespace_blacklist =
438 438
439 439
440 440 ################################################################################
441 441 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
442 442 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
443 443 ## execute malicious code after an exception is raised. ##
444 444 ################################################################################
445 445 set debug = false
446 446
447 447
448 448 #########################################################
449 449 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
450 450 #########################################################
451 451 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
452 452 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
453 453 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
454 454
455 455 # see sqlalchemy docs for other advanced settings
456 456
457 457 ## print the sql statements to output
458 458 sqlalchemy.db1.echo = false
459 459 ## recycle the connections after this ammount of seconds
460 460 sqlalchemy.db1.pool_recycle = 3600
461 461 sqlalchemy.db1.convert_unicode = true
462 462
463 463 ## the number of connections to keep open inside the connection pool.
464 464 ## 0 indicates no limit
465 465 #sqlalchemy.db1.pool_size = 5
466 466
467 467 ## the number of connections to allow in connection pool "overflow", that is
468 468 ## connections that can be opened above and beyond the pool_size setting,
469 469 ## which defaults to five.
470 470 #sqlalchemy.db1.max_overflow = 10
471 471
472 472
473 473 ##################
474 474 ### VCS CONFIG ###
475 475 ##################
476 476 vcs.server.enable = true
477 477 vcs.server = localhost:9900
478 478
479 479 ## Web server connectivity protocol, responsible for web based VCS operatations
480 480 ## Available protocols are:
481 481 ## `pyro4` - using pyro4 server
482 482 ## `http` - using http-rpc backend
483 483 #vcs.server.protocol = http
484 484
485 485 ## Push/Pull operations protocol, available options are:
486 486 ## `pyro4` - using pyro4 server
487 487 ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended
488 488 ## `vcsserver.scm_app` - internal app (EE only)
489 489 #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http
490 490
491 491 ## Push/Pull operations hooks protocol, available options are:
492 492 ## `pyro4` - using pyro4 server
493 493 ## `http` - using http-rpc backend
494 494 #vcs.hooks.protocol = http
495 495
496 496 vcs.server.log_level = info
497 497 ## Start VCSServer with this instance as a subprocess, usefull for development
498 498 vcs.start_server = false
499 499
500 500 ## List of enabled VCS backends, available options are:
501 501 ## `hg` - mercurial
502 502 ## `git` - git
503 503 ## `svn` - subversion
504 504 vcs.backends = hg, git, svn
505 505
506 506 vcs.connection_timeout = 3600
507 507 ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
508 508 ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible
509 509 #vcs.svn.compatible_version = pre-1.8-compatible
510 510
511 511
512 512 ##############################################
513 513 ### Subversion proxy support (mod_dav_svn) ###
514 514 ##############################################
515 515 ## Enable or disable the config file generation.
516 516 svn.proxy.generate_config = false
517 517 ## Generate config file with `SVNListParentPath` set to `On`.
518 518 svn.proxy.list_parent_path = true
519 519 ## Set location and file name of generated config file.
520 520 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
521 521 ## File system path to the directory containing the repositories served by
522 522 ## RhodeCode.
523 523 svn.proxy.parent_path_root = /path/to/repo_store
524 524 ## Used as a prefix to the <Location> block in the generated config file. In
525 525 ## most cases it should be set to `/`.
526 526 svn.proxy.location_root = /
527 527
528 528
529 529 ################################
530 530 ### LOGGING CONFIGURATION ####
531 531 ################################
532 532 [loggers]
533 533 keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates
534 534
535 535 [handlers]
536 536 keys = console, console_sql
537 537
538 538 [formatters]
539 539 keys = generic, color_formatter, color_formatter_sql
540 540
541 541 #############
542 542 ## LOGGERS ##
543 543 #############
544 544 [logger_root]
545 545 level = NOTSET
546 546 handlers = console
547 547
548 548 [logger_routes]
549 549 level = DEBUG
550 550 handlers =
551 551 qualname = routes.middleware
552 552 ## "level = DEBUG" logs the route matched and routing variables.
553 553 propagate = 1
554 554
555 555 [logger_beaker]
556 556 level = DEBUG
557 557 handlers =
558 558 qualname = beaker.container
559 559 propagate = 1
560 560
561 561 [logger_pyro4]
562 562 level = DEBUG
563 563 handlers =
564 564 qualname = Pyro4
565 565 propagate = 1
566 566
567 567 [logger_templates]
568 568 level = INFO
569 569 handlers =
570 570 qualname = pylons.templating
571 571 propagate = 1
572 572
573 573 [logger_rhodecode]
574 574 level = DEBUG
575 575 handlers =
576 576 qualname = rhodecode
577 577 propagate = 1
578 578
579 579 [logger_sqlalchemy]
580 580 level = INFO
581 581 handlers = console_sql
582 582 qualname = sqlalchemy.engine
583 583 propagate = 0
584 584
585 585 ##############
586 586 ## HANDLERS ##
587 587 ##############
588 588
589 589 [handler_console]
590 590 class = StreamHandler
591 591 args = (sys.stderr,)
592 592 level = INFO
593 593 formatter = generic
594 594
595 595 [handler_console_sql]
596 596 class = StreamHandler
597 597 args = (sys.stderr,)
598 598 level = WARN
599 599 formatter = generic
600 600
601 601 ################
602 602 ## FORMATTERS ##
603 603 ################
604 604
605 605 [formatter_generic]
606 606 class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter
607 607 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
608 608 datefmt = %Y-%m-%d %H:%M:%S
609 609
610 610 [formatter_color_formatter]
611 611 class = rhodecode.lib.logging_formatter.ColorFormatter
612 612 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
613 613 datefmt = %Y-%m-%d %H:%M:%S
614 614
615 615 [formatter_color_formatter_sql]
616 616 class = rhodecode.lib.logging_formatter.ColorFormatterSql
617 617 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
618 618 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now