Commit 3567e4d7 authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Adding config files examples for SystemD and nginx

parent f9e4c7a4
server {
listen 8080;
server_name server_domain_or_IP;
location / {
include proxy_params;
proxy_pass http://unix:/home/duque004/git/wsm.rest/wsm.rest.sock;
}
}
[Unit]
Description=Gunicorn instance to World Soil Museum ReST API
After=network.target
[Service]
User=duque004
Group=www-data
WorkingDirectory=/home/duque004/git/wsm.rest
Environment="PATH=/home/duque004/git/wsm.rest/wsm.rest.env/bin"
ExecStart=/home/duque004/git/wsm.rest/wsm.rest.env/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app
[Install]
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