# HG changeset patch # User Mads Kiilerich # Date 2020-06-08 14:10:13 # Node ID 8cd0c12758e68d95755efdea7248465edb191cb8 # Parent f79dff927ab9556f0b8dc241ab153456c10f77c2 ini: tweak .ini web server templates to make it more clear that it is about which web server gearbox will use for serve diff --git a/development.ini b/development.ini --- a/development.ini +++ b/development.ini @@ -67,11 +67,11 @@ smtp_use_tls = false host = 0.0.0.0 port = 5000 -## WAITRESS ## +## Gearbox serve uses the Waitress web server ## use = egg:waitress#main -## number of worker threads +## avoid multi threading threads = 1 -## MAX BODY SIZE 100GB +## allow push of repos bigger than the default of 1 GB max_request_body_size = 107374182400 ## use poll instead of select, fixes fd limits, may not work on old ## windows systems. diff --git a/kallithea/lib/paster_commands/template.ini.mako b/kallithea/lib/paster_commands/template.ini.mako --- a/kallithea/lib/paster_commands/template.ini.mako +++ b/kallithea/lib/paster_commands/template.ini.mako @@ -69,7 +69,7 @@ host = ${host} port = ${port} %if http_server == 'gearbox': -<%text>## Gearbox default web server ## +<%text>## Gearbox serve uses the built-in development web server ## use = egg:gearbox#wsgiref <%text>## nr of worker threads to spawn threadpool_workers = 1 @@ -79,22 +79,22 @@ threadpool_max_requests = 100 use_threadpool = true %elif http_server == 'gevent': -<%text>## Gearbox gevent web server ## +<%text>## Gearbox serve uses the gevent web server ## use = egg:gearbox#gevent %elif http_server == 'waitress': -<%text>## WAITRESS ## +<%text>## Gearbox serve uses the Waitress web server ## use = egg:waitress#main -<%text>## number of worker threads +<%text>## avoid multi threading threads = 1 -<%text>## MAX BODY SIZE 100GB +<%text>## allow push of repos bigger than the default of 1 GB max_request_body_size = 107374182400 <%text>## use poll instead of select, fixes fd limits, may not work on old <%text>## windows systems. #asyncore_use_poll = True %elif http_server == 'gunicorn': -<%text>## GUNICORN ## +<%text>## Gearbox serve uses the Gunicorn web server ## use = egg:gunicorn#main <%text>## number of process workers. You must set `instance_id = *` when this option <%text>## is set to more than one worker