Created
January 26, 2017 18:48
-
-
Save macndesign/0896fdae3b3e7fe1c57aad79e5d9f27e to your computer and use it in GitHub Desktop.
configuração mínima do nginx para um projeto django com gunicorn
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
server { | |
listen 8003; | |
server_name ip_do_servidor; | |
location = /favicon.ico { | |
access_log off; log_not_found off; | |
} | |
location /static/ { | |
root /home/revista_virtual/revista_virtual; | |
} | |
location /media/ { | |
root /home/revista_virtual/revista_virtual; | |
} | |
location / { | |
include proxy_params; | |
proxy_pass http://unix:/home/revista_virtual/revista_virtual/revista_virtual.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment