updated API UWSGI install instructions and the default configs to have more descriptive replacement paths

This commit is contained in:
Aaron Blankstein
2017-04-11 11:26:01 -04:00
parent 286d54d651
commit 928bbe1bc6
5 changed files with 36 additions and 23 deletions

View File

@@ -1,14 +1,15 @@
[uwsgi]
module = wsgi
module = api.server:app
master = true
processes = 9
pcre-jit = true
manage-script-name = true
thunder-lock = on
enable-threads = true
listen = 128
socket = blockstack_api.sock
socket = /tmp/blockstack_api.sock
chmod-socket = 660
vacuum = true

View File

@@ -19,6 +19,6 @@ server {
location / {
include uwsgi_params;
uwsgi_pass unix:/path/to/nginx/blockstack_api.sock;
uwsgi_pass unix:/tmp/blockstack_api.sock;
}
}

View File

@@ -3,13 +3,11 @@ Description=uWSGI instance to serve Blockstack API
After=network.target
[Service]
User=muneeb
User=USER
Group=www-data
WorkingDirectory=/home/muneeb/blockstack-core/api/nginx
Environment="PATH=/home/muneeb/bin"
Environment="PYTHONPATH=/usr/local/python"
WorkingDirectory=/path/to/blockstack/
Environment="BLOCKSTACK_DEBUG=1"
ExecStart=/usr/local/bin/uwsgi --ini /home/muneeb/blockstack-core/api/nginx/blockstack_api.ini
ExecStart=/usr/local/bin/uwsgi --ini /path/to/blockstack/api/nginx/blockstack_api.ini
[Install]
WantedBy=multi-user.target