Mercurial > kallithea
diff development.ini @ 6933:2c0e7e1d2584
config: tweak template http_server conditionals - don't leave an empty section when using UWSGI
The web servers run by 'gearbox serve' share the same basic configuration:
[server:main]
host = ...
port = ...
use = egg:...
...
UWSGI doesn't use gearbox and doesn't use a [server:main] section but will read
it's own section:
[uwsgi]
http = ...:...
...
Before, 'make-config my.ini http_server=uwsgi' would create an empty
[server:main] section, and only after 6a5fb5070765 it stopped putting unused
host/port information there.
Now, let everything but UWSGI share the [server:main] template section and put
host/port first. Everything UWSGI is handled in its own conditional template
section.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 11 Oct 2017 02:41:07 +0200 |
parents | d06039dc4ca2 |
children | e12c4a3ce996 |
line wrap: on
line diff
--- a/development.ini Tue Aug 22 21:10:14 2017 +0200 +++ b/development.ini Wed Oct 11 02:41:07 2017 +0200 @@ -60,7 +60,12 @@ #smtp_use_ssl = false #smtp_use_tls = false +## Entry point for 'gearbox serve' [server:main] +#host = 127.0.0.1 +host = 0.0.0.0 +port = 5000 + ## WAITRESS ## use = egg:waitress#main ## number of worker threads @@ -71,11 +76,6 @@ ## windows systems. #asyncore_use_poll = True -## COMMON ## -#host = 127.0.0.1 -host = 0.0.0.0 -port = 5000 - ## middleware for hosting the WSGI application under a URL prefix #[filter:proxy-prefix] #use = egg:PasteDeploy#prefix