Last active
December 18, 2015 00:49
-
-
Save ranman/5699180 to your computer and use it in GitHub Desktop.
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
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
server_names_hash_bucket_size 64; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
error_log /var/log/nginx/error.log error; | |
sendfile on; | |
tcp_nopush on; | |
keepalive_timeout 65; | |
gzip on; | |
# server { | |
# listen 80; | |
# server_name www.abe.is *.abe.is; | |
# rewrite ^ http://abe.is/a/blogger permanent; | |
# } | |
# server { | |
# listen 80; | |
# server_name abe.is; | |
# location / { | |
# rewrite ^ http://abe.is/a/blogger permanent; | |
# } | |
# | |
# location /a/blogger { | |
# alias /var/www/abe.is/_site; | |
# } | |
# } | |
# | |
server { | |
listen 80; | |
server_name www.citibik.es *.citibik.es; | |
rewrite ^ http://data.citibik.es permanent; | |
client_max_body_size 4M; | |
server_name data.citibik.es; | |
access_log /var/log/nginx/stats.access.log; | |
error_log /var/log/nginx/stats.error.log; | |
root /opt/graphite/webapp; | |
location / { | |
alias /opt/graphite/webapp/graphite; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /content { | |
alias /opt/graphite/webapp/graphite/content; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /metrics { | |
alias /opt/graphite/webapp/graphite/metrics; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /dashboard { | |
alias /opt/graphite/webapp/graphite/dashboard; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /render { | |
alias /opt/graphite/webapp/graphite/render; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /browser { | |
alias /opt/graphite/webapp/graphite/browser; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /composer { | |
alias /opt/graphite/webapp/graphite/composer; | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location /admin { | |
gzip off; | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
location ~ ^/media/ { | |
root /usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/; | |
gzip_static on; # to serve pre-gzipped version | |
expires max; | |
add_header Cache-Control public; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment