Skip to content

Instantly share code, notes, and snippets.

@sumitsk20
Created August 26, 2018 02:20
Show Gist options
  • Save sumitsk20/f01a2d66c27033bfb600f1cbe207e835 to your computer and use it in GitHub Desktop.
Save sumitsk20/f01a2d66c27033bfb600f1cbe207e835 to your computer and use it in GitHub Desktop.
nginx config file for uwsgi
upstream updateMe_dev {
server unix:/webapps/updateMe/run/uwsgi.sock;
}
server {
listen 80;
server_name your-IP-or-address-here;
charset utf-8;
client_max_body_size 128M;
location /static {
# exact path to where your static files are located on server
# [mostly you won't need this, as you will be using some storage service for same]
alias /webapps/updateMe/static_local;
}
location /media {
# exact path to where your media files are located on server
# [mostly you won't need this, as you will be using some storage service for same]
alias /webapps/updateMe/media_local;
}
location / {
include uwsgi_params;
uwsgi_pass updateMe_dev;
uwsgi_read_timeout 300s;
uwsgi_send_timeout 300s;
}
access_log /webapps/updateMe/log/dev-nginx-access.log;
error_log /webapps/updateMe/log/dev-nginx-error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment