Skip to content

Instantly share code, notes, and snippets.

@stupidbodo
Forked from jalaziz/graphite.nginx
Created August 16, 2013 15:58
Show Gist options
  • Save stupidbodo/6251128 to your computer and use it in GitHub Desktop.
Save stupidbodo/6251128 to your computer and use it in GitHub Desktop.
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