mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 19:31:00 +08:00
updated API UWSGI install instructions and the default configs to have more descriptive replacement paths
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user