Created
April 25, 2014 09:30
-
-
Save dcarley/11283575 to your computer and use it in GitHub Desktop.
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 { | |
server_name grafana.*; | |
root /usr/share/grafana; | |
access_log /var/log/nginx/grafana-access.log timed_combined; | |
access_log /var/log/nginx/grafana-json.event.access.log json_event; | |
error_log /var/log/nginx/grafana-error.log; | |
location =/config.js { | |
alias /etc/grafana/config.js; | |
} | |
location /app/dashboards/ { | |
alias /etc/grafana/dashboards/; | |
} | |
# Clickable index of the dashboards available. | |
location /dashboards/ { | |
autoindex on; | |
alias /etc/grafana/dashboards/; | |
rewrite ^/dashboards/(.+) /#/dashboard/file/$1 redirect; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment