Last active
March 11, 2017 00:44
-
-
Save ma1onso/0fc9ff71c3ad25ac4cffcc44c2cb41a9 to your computer and use it in GitHub Desktop.
Clean and basic nginx site configuration - UWSGI and Django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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