Show More
@@ -13,7 +13,7 b' debug = true' | |||
|
13 | 13 | pdebug = false |
|
14 | 14 | <%text> |
|
15 | 15 | ################################################################################ |
|
16 |
## Uncomment and replace with the address which should receive ## |
|
|
16 | ## Uncomment and replace with the address which should receive ## | |
|
17 | 17 | ## any error reports after application crash ## |
|
18 | 18 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
19 | 19 | ################################################################################ |
@@ -25,13 +25,13 b' pdebug = false' | |||
|
25 | 25 | #email_prefix = [RhodeCode] |
|
26 | 26 | |
|
27 | 27 | #smtp_server = mail.server.com |
|
28 |
#smtp_username = |
|
|
29 |
#smtp_password = |
|
|
30 |
#smtp_port = |
|
|
28 | #smtp_username = | |
|
29 | #smtp_password = | |
|
30 | #smtp_port = | |
|
31 | 31 | #smtp_use_tls = false |
|
32 | 32 | #smtp_use_ssl = true |
|
33 | 33 | <%text>## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)</%text> |
|
34 |
#smtp_auth = |
|
|
34 | #smtp_auth = | |
|
35 | 35 | |
|
36 | 36 | [server:main] |
|
37 | 37 | %if http_server == 'paste': |
@@ -71,6 +71,59 b' max_requests = 1000' | |||
|
71 | 71 | <%text>## restarted</%text> |
|
72 | 72 | timeout = 3600 |
|
73 | 73 | %endif |
|
74 | %if http_server == 'uwsgi': | |
|
75 | <%text>## UWSGI ##</%text> | |
|
76 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> | |
|
77 | [uwsgi] | |
|
78 | socket = /tmp/uwsgi.sock | |
|
79 | master = true | |
|
80 | http = 0.0.0.0:5000 | |
|
81 | ||
|
82 | <%text>## set as deamon and redirect all output to file</%text> | |
|
83 | #daemonize = ./uwsgi_rhodecode.log | |
|
84 | ||
|
85 | <%text>## master process PID</%text> | |
|
86 | pidfile = ./uwsgi_rhodecode.pid | |
|
87 | ||
|
88 | <%text>## stats server with workers statistics, use uwsgitop</%text> | |
|
89 | <%text>## for monitoring</%text> | |
|
90 | stats = 127.0.0.1:1717 | |
|
91 | ||
|
92 | <%text>## log 5XX errors</%text> | |
|
93 | log-5xx = true | |
|
94 | ||
|
95 | <%text>## Set the socket listen queue size.</%text> | |
|
96 | listen = 256 | |
|
97 | ||
|
98 | <%text>## Gracefully Reload workers after the specified amount of managed requests</%text> | |
|
99 | <%text>## (avoid memory leaks).</%text> | |
|
100 | max-requests = 1000 | |
|
101 | ||
|
102 | <%text>## Log requests slower than the specified number of milliseconds.</%text> | |
|
103 | log-slow = 10 | |
|
104 | ||
|
105 | <%text>## Exit if no app can be loaded.</%text> | |
|
106 | need-app = true | |
|
107 | ||
|
108 | <%text>## Set lazy mode (load apps in workers instead of master).</%text> | |
|
109 | lazy = true | |
|
110 | ||
|
111 | <%text>## scaling ##</%text> | |
|
112 | <%text>## set cheaper algorithm to use, if not set default will be used</%text> | |
|
113 | cheaper-algo = spare | |
|
114 | ||
|
115 | <%text>## minimum number of workers to keep at all times</%text> | |
|
116 | cheaper = 1 | |
|
117 | ||
|
118 | <%text>## number of workers to spawn at startup</%text> | |
|
119 | cheaper-initial = 1 | |
|
120 | ||
|
121 | <%text>## maximum number of workers that can be spawned</%text> | |
|
122 | workers = 4 | |
|
123 | ||
|
124 | <%text>## how many workers should be spawned at a time</%text> | |
|
125 | cheaper-step = 1 | |
|
126 | %endif | |
|
74 | 127 | <%text>## COMMON ##</%text> |
|
75 | 128 | host = ${host} |
|
76 | 129 | port = ${port} |
@@ -216,7 +269,7 b' issue_prefix = #' | |||
|
216 | 269 | <%text>## a prefix key for this instance used for cache invalidation when running</%text> |
|
217 | 270 | <%text>## multiple instances of rhodecode, make sure it's globally unique for</%text> |
|
218 | 271 | <%text>## all running rhodecode instances. Leave empty if you don't use it</%text> |
|
219 |
instance_id = |
|
|
272 | instance_id = | |
|
220 | 273 | |
|
221 | 274 | <%text>## alternative return HTTP header for failed authentication. Default HTTP</%text> |
|
222 | 275 | <%text>## response is 401 HTTPUnauthorized. Currently HG clients have troubles with</%text> |
@@ -298,15 +351,15 b' beaker.cache.sql_cache_long.key_length =' | |||
|
298 | 351 | #################################### |
|
299 | 352 | ### BEAKER SESSION #### |
|
300 | 353 | #################################### |
|
301 |
## Type of storage used for the session, current types are |
|
|
302 |
## dbm, file, memcached, database, and memory. |
|
|
303 |
## The storage uses the Container API |
|
|
354 | ## Type of storage used for the session, current types are | |
|
355 | ## dbm, file, memcached, database, and memory. | |
|
356 | ## The storage uses the Container API | |
|
304 | 357 | ## that is also used by the cache system. |
|
305 | 358 | </%text> |
|
306 | 359 | <%text>## db session ##</%text> |
|
307 | 360 | #beaker.session.type = ext:database |
|
308 | 361 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
309 |
#beaker.session.table_name = db_session |
|
|
362 | #beaker.session.table_name = db_session | |
|
310 | 363 | |
|
311 | 364 | <%text>## encrypted cookie client side session, good for many instances ##</%text> |
|
312 | 365 | #beaker.session.type = cookie |
@@ -346,7 +399,7 b' beaker.session.auto = False' | |||
|
346 | 399 | ### [errormator] ### |
|
347 | 400 | #################### |
|
348 | 401 | |
|
349 |
## Errormator is tailored to work with RhodeCode, see |
|
|
402 | ## Errormator is tailored to work with RhodeCode, see | |
|
350 | 403 | ## http://errormator.com for details how to obtain an account |
|
351 | 404 | ## you must install python package `errormator_client` to make it work |
|
352 | 405 | </%text> |
@@ -383,7 +436,7 b' errormator.logging_on_error = false' | |||
|
383 | 436 | <%text>## (by default client will always send following info:</%text> |
|
384 | 437 | <%text>## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that</%text> |
|
385 | 438 | <%text>## start with HTTP* this list be extended with additional keywords here</%text> |
|
386 |
errormator.environ_keys_whitelist = |
|
|
439 | errormator.environ_keys_whitelist = | |
|
387 | 440 | |
|
388 | 441 | |
|
389 | 442 | <%text>## list of keywords that should be blanked from request object</%text> |
@@ -397,7 +450,7 b' errormator.request_keys_blacklist =' | |||
|
397 | 450 | <%text>## list of namespaces that should be ignores when gathering log entries</%text> |
|
398 | 451 | <%text>## can be string with comma separated list of namespaces</%text> |
|
399 | 452 | <%text>## (by default the client ignores own entries: errormator_client.client)</%text> |
|
400 |
errormator.log_namespace_blacklist = |
|
|
453 | errormator.log_namespace_blacklist = | |
|
401 | 454 | %elif error_aggregation_service == 'sentry': |
|
402 | 455 | <%text> |
|
403 | 456 | ################ |
@@ -405,7 +458,7 b' errormator.log_namespace_blacklist =' | |||
|
405 | 458 | ################ |
|
406 | 459 | |
|
407 | 460 | ## sentry is a alternative open source error aggregator |
|
408 |
## you must install python packages `sentry` and `raven` to enable |
|
|
461 | ## you must install python packages `sentry` and `raven` to enable | |
|
409 | 462 | </%text> |
|
410 | 463 | sentry.dsn = YOUR_DNS |
|
411 | 464 | sentry.servers = |
@@ -478,26 +531,26 b' handlers = console' | |||
|
478 | 531 | |
|
479 | 532 | [logger_routes] |
|
480 | 533 | level = DEBUG |
|
481 |
handlers = |
|
|
534 | handlers = | |
|
482 | 535 | qualname = routes.middleware |
|
483 | 536 | <%text>## "level = DEBUG" logs the route matched and routing variables.</%text> |
|
484 | 537 | propagate = 1 |
|
485 | 538 | |
|
486 | 539 | [logger_beaker] |
|
487 | 540 | level = DEBUG |
|
488 |
handlers = |
|
|
541 | handlers = | |
|
489 | 542 | qualname = beaker.container |
|
490 | 543 | propagate = 1 |
|
491 | 544 | |
|
492 | 545 | [logger_templates] |
|
493 | 546 | level = INFO |
|
494 |
handlers = |
|
|
547 | handlers = | |
|
495 | 548 | qualname = pylons.templating |
|
496 | 549 | propagate = 1 |
|
497 | 550 | |
|
498 | 551 | [logger_rhodecode] |
|
499 | 552 | level = DEBUG |
|
500 |
handlers = |
|
|
553 | handlers = | |
|
501 | 554 | qualname = rhodecode |
|
502 | 555 | propagate = 1 |
|
503 | 556 | |
@@ -509,7 +562,7 b' propagate = 0' | |||
|
509 | 562 | |
|
510 | 563 | [logger_whoosh_indexer] |
|
511 | 564 | level = DEBUG |
|
512 |
handlers = |
|
|
565 | handlers = | |
|
513 | 566 | qualname = whoosh_indexer |
|
514 | 567 | propagate = 1 |
|
515 | 568 | <%text> |
General Comments 0
You need to be logged in to leave comments.
Login now