diff --git a/installer b/installer index c9cbcf9..d559819 100644 --- a/installer +++ b/installer @@ -152,7 +152,7 @@ class SystemInstaller: wsgiport = r["answer"] nginx_conf_str = """ # pyshelf_nginx.conf - upstream django {server localhost:%s;} + upstream django {server %s:%s;} server { listen %s; server_name %s; @@ -166,6 +166,7 @@ class SystemInstaller: location / {uwsgi_pass django; include %s/uwsgi_params;} } """ % ( + hostname, wsgiport, port, hostname,