Commit 17045e42 authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Adapted config files to production environment

parent 3567e4d7
server { server {
listen 8080; listen 80;
server_name server_domain_or_IP; server_name server_domain_or_IP;
location / { location / {
include proxy_params; include proxy_params;
proxy_pass http://unix:/home/duque004/git/wsm.rest/wsm.rest.sock; proxy_pass http://unix:/var/www/wsm.rest/wsm.rest.sock;
} }
} }
...@@ -3,11 +3,11 @@ Description=Gunicorn instance to World Soil Museum ReST API ...@@ -3,11 +3,11 @@ Description=Gunicorn instance to World Soil Museum ReST API
After=network.target After=network.target
[Service] [Service]
User=duque004 User=root
Group=www-data Group=www-data
WorkingDirectory=/home/duque004/git/wsm.rest WorkingDirectory=/var/www/wsm.rest
Environment="PATH=/home/duque004/git/wsm.rest/wsm.rest.env/bin" Environment="PATH=/usr/local/bin"
ExecStart=/home/duque004/git/wsm.rest/wsm.rest.env/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app ExecStart=/usr/local/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment