Skip to content

Instantly share code, notes, and snippets.

@ma1onso
Last active March 11, 2017 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ma1onso/0fc9ff71c3ad25ac4cffcc44c2cb41a9 to your computer and use it in GitHub Desktop.
Save ma1onso/0fc9ff71c3ad25ac4cffcc44c2cb41a9 to your computer and use it in GitHub Desktop.
Clean and basic nginx site configuration - UWSGI and Django
upstream project_app {
server unix:///home/USER/project.sock;
}
server {
server_name www.example.com;
charset utf-8;
root /home/USER/www/path/to/project;
access_log /home/USER/logs/nginx/access.log;
error_log /home/USER/logs/nginx/error.log;
uwsgi_read_timeout 120s;
location /static {
}
location /media {
}
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass project_app;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment