# HG changeset patch # User domruf # Date 1505854212 -7200 # Node ID 6a5fb5070765880f152042c3c1556b24f4769d82 # Parent 81eb8dbf0e7c3c7d5a2fc29f6fb0adadcd5049ac config: make the UWSGI host/port configurable with make-config parameters UWSGI doesn't use the same host/port settings as other servers do. diff -r 81eb8dbf0e7c -r 6a5fb5070765 kallithea/lib/paster_commands/template.ini.mako --- 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>## set as daemon and redirect all output to file #daemonize = ./uwsgi_kallithea.log <%text>## master process PID @@ -165,10 +165,11 @@ cheaper-step = 1 %endif -<%text>## COMMON ## +%if http_server != 'uwsgi': host = ${host} port = ${port} +%endif <%text>## middleware for hosting the WSGI application under a URL prefix #[filter:proxy-prefix] #use = egg:PasteDeploy#prefix