Created
November 2, 2012 21:07
-
-
Save eduardodeoh/4004313 to your computer and use it in GitHub Desktop.
Graphite configuration for Nginx + Gunicorn
This file contains 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 80; | |
server_name graphite.eduardodeoh.com.br; | |
## path for static files | |
root /opt/graphite/webapp/content; | |
location /media/ { | |
# this changes depending on your python version | |
root /usr/local/lib/python2.7/dist-packages/django/contrib/admin; | |
} | |
location / { | |
proxy_pass_header Server; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Scheme $scheme; | |
proxy_connect_timeout 10; | |
proxy_read_timeout 10; | |
proxy_pass http://graphite_app; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment