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