Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ISRIC
wsm.rest
Commits
17045e42
Commit
17045e42
authored
Dec 04, 2017
by
Luís de Sousa
Browse files
Adapted config files to production environment
parent
3567e4d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
configs/wsm.rest.nginx
View file @
17045e42
server {
listen
80
80;
listen 80;
server_name server_domain_or_IP;
location / {
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;
}
}
configs/wsm.rest.service
View file @
17045e42
...
...
@@ -3,11 +3,11 @@ Description=Gunicorn instance to World Soil Museum ReST API
After
=
network.target
[Service]
User
=
duque004
User
=
root
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
WorkingDirectory
=
/
var/www
/wsm.rest
Environment
=
"PATH=/
usr/local
/bin"
ExecStart
=
/
usr/local
/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app
[Install]
WantedBy
=
multi-user.target
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment