Created
October 12, 2012 03:24
uWSGI and nginx configuration for Graphite (assumes /opt/graphite/conf/graphite.wsgi.example has been renamed to /opt/graphite/conf/wsgi.py)
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 8080 default_server deferred; | |
charset utf-8; | |
access_log /var/log/nginx/graphite.access.log; | |
error_log /var/log/nginx/graphite.error.log; | |
root /opt/graphite/webapp; | |
location /static/admin/ { | |
alias /usr/local/lib/python2.7/site-packages/django/contrib/static/media/; | |
} | |
location /content { | |
} | |
location / { | |
include uwsgi_params; | |
uwsgi_pass unix:/var/run/uwsgi/app/graphite/socket; | |
} | |
} |
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
[uwsgi] | |
plugins = python | |
chdir = /opt/graphite/conf | |
module = wsgi:application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment