##// END OF EJS Templates
added uwsgi config into mako ini template
marcink -
r4067:20c21b8f default
parent child Browse files
Show More
@@ -13,7 +13,7 b' debug = true'
13 pdebug = false
13 pdebug = false
14 <%text>
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 ## any error reports after application crash ##
17 ## any error reports after application crash ##
18 ## Additionally those settings will be used by RhodeCode mailing system ##
18 ## Additionally those settings will be used by RhodeCode mailing system ##
19 ################################################################################
19 ################################################################################
@@ -25,13 +25,13 b' pdebug = false'
25 #email_prefix = [RhodeCode]
25 #email_prefix = [RhodeCode]
26
26
27 #smtp_server = mail.server.com
27 #smtp_server = mail.server.com
28 #smtp_username =
28 #smtp_username =
29 #smtp_password =
29 #smtp_password =
30 #smtp_port =
30 #smtp_port =
31 #smtp_use_tls = false
31 #smtp_use_tls = false
32 #smtp_use_ssl = true
32 #smtp_use_ssl = true
33 <%text>## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)</%text>
33 <%text>## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)</%text>
34 #smtp_auth =
34 #smtp_auth =
35
35
36 [server:main]
36 [server:main]
37 %if http_server == 'paste':
37 %if http_server == 'paste':
@@ -71,6 +71,59 b' max_requests = 1000'
71 <%text>## restarted</%text>
71 <%text>## restarted</%text>
72 timeout = 3600
72 timeout = 3600
73 %endif
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 <%text>## COMMON ##</%text>
127 <%text>## COMMON ##</%text>
75 host = ${host}
128 host = ${host}
76 port = ${port}
129 port = ${port}
@@ -216,7 +269,7 b' issue_prefix = #'
216 <%text>## a prefix key for this instance used for cache invalidation when running</%text>
269 <%text>## a prefix key for this instance used for cache invalidation when running</%text>
217 <%text>## multiple instances of rhodecode, make sure it's globally unique for</%text>
270 <%text>## multiple instances of rhodecode, make sure it's globally unique for</%text>
218 <%text>## all running rhodecode instances. Leave empty if you don't use it</%text>
271 <%text>## all running rhodecode instances. Leave empty if you don't use it</%text>
219 instance_id =
272 instance_id =
220
273
221 <%text>## alternative return HTTP header for failed authentication. Default HTTP</%text>
274 <%text>## alternative return HTTP header for failed authentication. Default HTTP</%text>
222 <%text>## response is 401 HTTPUnauthorized. Currently HG clients have troubles with</%text>
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 ### BEAKER SESSION ####
352 ### BEAKER SESSION ####
300 ####################################
353 ####################################
301 ## Type of storage used for the session, current types are
354 ## Type of storage used for the session, current types are
302 ## dbm, file, memcached, database, and memory.
355 ## dbm, file, memcached, database, and memory.
303 ## The storage uses the Container API
356 ## The storage uses the Container API
304 ## that is also used by the cache system.
357 ## that is also used by the cache system.
305 </%text>
358 </%text>
306 <%text>## db session ##</%text>
359 <%text>## db session ##</%text>
307 #beaker.session.type = ext:database
360 #beaker.session.type = ext:database
308 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
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 <%text>## encrypted cookie client side session, good for many instances ##</%text>
364 <%text>## encrypted cookie client side session, good for many instances ##</%text>
312 #beaker.session.type = cookie
365 #beaker.session.type = cookie
@@ -346,7 +399,7 b' beaker.session.auto = False'
346 ### [errormator] ###
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 ## http://errormator.com for details how to obtain an account
403 ## http://errormator.com for details how to obtain an account
351 ## you must install python package `errormator_client` to make it work
404 ## you must install python package `errormator_client` to make it work
352 </%text>
405 </%text>
@@ -383,7 +436,7 b' errormator.logging_on_error = false'
383 <%text>## (by default client will always send following info:</%text>
436 <%text>## (by default client will always send following info:</%text>
384 <%text>## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that</%text>
437 <%text>## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that</%text>
385 <%text>## start with HTTP* this list be extended with additional keywords here</%text>
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 <%text>## list of keywords that should be blanked from request object</%text>
442 <%text>## list of keywords that should be blanked from request object</%text>
@@ -397,7 +450,7 b' errormator.request_keys_blacklist ='
397 <%text>## list of namespaces that should be ignores when gathering log entries</%text>
450 <%text>## list of namespaces that should be ignores when gathering log entries</%text>
398 <%text>## can be string with comma separated list of namespaces</%text>
451 <%text>## can be string with comma separated list of namespaces</%text>
399 <%text>## (by default the client ignores own entries: errormator_client.client)</%text>
452 <%text>## (by default the client ignores own entries: errormator_client.client)</%text>
400 errormator.log_namespace_blacklist =
453 errormator.log_namespace_blacklist =
401 %elif error_aggregation_service == 'sentry':
454 %elif error_aggregation_service == 'sentry':
402 <%text>
455 <%text>
403 ################
456 ################
@@ -405,7 +458,7 b' errormator.log_namespace_blacklist ='
405 ################
458 ################
406
459
407 ## sentry is a alternative open source error aggregator
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 </%text>
462 </%text>
410 sentry.dsn = YOUR_DNS
463 sentry.dsn = YOUR_DNS
411 sentry.servers =
464 sentry.servers =
@@ -478,26 +531,26 b' handlers = console'
478
531
479 [logger_routes]
532 [logger_routes]
480 level = DEBUG
533 level = DEBUG
481 handlers =
534 handlers =
482 qualname = routes.middleware
535 qualname = routes.middleware
483 <%text>## "level = DEBUG" logs the route matched and routing variables.</%text>
536 <%text>## "level = DEBUG" logs the route matched and routing variables.</%text>
484 propagate = 1
537 propagate = 1
485
538
486 [logger_beaker]
539 [logger_beaker]
487 level = DEBUG
540 level = DEBUG
488 handlers =
541 handlers =
489 qualname = beaker.container
542 qualname = beaker.container
490 propagate = 1
543 propagate = 1
491
544
492 [logger_templates]
545 [logger_templates]
493 level = INFO
546 level = INFO
494 handlers =
547 handlers =
495 qualname = pylons.templating
548 qualname = pylons.templating
496 propagate = 1
549 propagate = 1
497
550
498 [logger_rhodecode]
551 [logger_rhodecode]
499 level = DEBUG
552 level = DEBUG
500 handlers =
553 handlers =
501 qualname = rhodecode
554 qualname = rhodecode
502 propagate = 1
555 propagate = 1
503
556
@@ -509,7 +562,7 b' propagate = 0'
509
562
510 [logger_whoosh_indexer]
563 [logger_whoosh_indexer]
511 level = DEBUG
564 level = DEBUG
512 handlers =
565 handlers =
513 qualname = whoosh_indexer
566 qualname = whoosh_indexer
514 propagate = 1
567 propagate = 1
515 <%text>
568 <%text>
General Comments 0
You need to be logged in to leave comments. Login now