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