Changed socket directory and permissions

This commit is contained in:
Mike Young
2020-01-01 00:50:40 -05:00
parent 2231d1f4b2
commit 16aab465b7

8
installer vendored
View File

@@ -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)