Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Last active June 29, 2019 22:25
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 mitchtabian/950860b552ae67771fca078db4921965 to your computer and use it in GitHub Desktop.
Save mitchtabian/950860b552ae67771fca078db4921965 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name <ip>;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/mitch/djangoprojectdir;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment