mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
adjusted wsgi.ini generator
This commit is contained in:
3
installer
vendored
3
installer
vendored
@@ -152,7 +152,7 @@ class SystemInstaller:
|
|||||||
wsgiport = r["answer"]
|
wsgiport = r["answer"]
|
||||||
nginx_conf_str = """
|
nginx_conf_str = """
|
||||||
# pyshelf_nginx.conf
|
# pyshelf_nginx.conf
|
||||||
upstream django {server localhost:%s;}
|
upstream django {server %s:%s;}
|
||||||
server {
|
server {
|
||||||
listen %s;
|
listen %s;
|
||||||
server_name %s;
|
server_name %s;
|
||||||
@@ -166,6 +166,7 @@ class SystemInstaller:
|
|||||||
location / {uwsgi_pass django; include %s/uwsgi_params;}
|
location / {uwsgi_pass django; include %s/uwsgi_params;}
|
||||||
}
|
}
|
||||||
""" % (
|
""" % (
|
||||||
|
hostname,
|
||||||
wsgiport,
|
wsgiport,
|
||||||
port,
|
port,
|
||||||
hostname,
|
hostname,
|
||||||
|
|||||||
Reference in New Issue
Block a user