mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Changed socket directory and permissions
This commit is contained in:
8
installer
vendored
8
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 unix:///tmp/pyshelf_wsgi.sock;}
|
upstream django {server unix://%s/pyshelf_wsgi.sock;}
|
||||||
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;}
|
||||||
}
|
}
|
||||||
""" % (
|
""" % (
|
||||||
|
root,
|
||||||
port,
|
port,
|
||||||
hostname,
|
hostname,
|
||||||
root,
|
root,
|
||||||
@@ -193,10 +194,11 @@ class SystemInstaller:
|
|||||||
master=True
|
master=True
|
||||||
pidfile=/tmp/pyShelf.pid
|
pidfile=/tmp/pyShelf.pid
|
||||||
vacuum=True
|
vacuum=True
|
||||||
socket=/tmp/pyshelf_wsgi.sock
|
socket=%s/pyshelf_wsgi.sock
|
||||||
chmod-socket=664
|
chmod-socket=666
|
||||||
""" % (
|
""" % (
|
||||||
root,
|
root,
|
||||||
|
root
|
||||||
)
|
)
|
||||||
with open(_fp, "w") as write_file:
|
with open(_fp, "w") as write_file:
|
||||||
write_file.write(wsgi_conf_str)
|
write_file.write(wsgi_conf_str)
|
||||||
|
|||||||
Reference in New Issue
Block a user