Skip to content

Instantly share code, notes, and snippets.

@jalaziz
Created October 12, 2012 03:24
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jalaziz/3877123 to your computer and use it in GitHub Desktop.
Save jalaziz/3877123 to your computer and use it in GitHub Desktop.
uWSGI and nginx configuration for Graphite (assumes /opt/graphite/conf/graphite.wsgi.example has been renamed to /opt/graphite/conf/wsgi.py)
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;
}
}
[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