Mercurial > kallithea
changeset 6929:6a5fb5070765
config: make the UWSGI host/port configurable with make-config parameters
UWSGI doesn't use the same host/port settings as other servers do.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Tue, 19 Sep 2017 22:50:12 +0200 |
parents | 81eb8dbf0e7c |
children | 862e55888ff8 |
files | kallithea/lib/paster_commands/template.ini.mako |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/template.ini.mako Tue Sep 19 22:44:41 2017 +0200 +++ b/kallithea/lib/paster_commands/template.ini.mako Tue Sep 19 22:50:12 2017 +0200 @@ -109,9 +109,9 @@ [uwsgi] socket = /tmp/uwsgi.sock master = true -http = 127.0.0.1:5000 +http = ${host}:${port} -<%text>## set as deamon and redirect all output to file</%text> +<%text>## set as daemon and redirect all output to file</%text> #daemonize = ./uwsgi_kallithea.log <%text>## master process PID</%text> @@ -165,10 +165,11 @@ cheaper-step = 1 %endif -<%text>## COMMON ##</%text> +%if http_server != 'uwsgi': host = ${host} port = ${port} +%endif <%text>## middleware for hosting the WSGI application under a URL prefix</%text> #[filter:proxy-prefix] #use = egg:PasteDeploy#prefix