Skip to content
Snippets Groups Projects
Commit 6a79f381 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updates nginx.conf - chronograf API is now available at /chronograf/v1

parent 4469a51c
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,15 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /chronograf/v1 {
rewrite /(.*) /chronograf/$1 break; # since basepath is set to /chronograf, the API is actually using /chronograf/chronograf/v1
proxy_pass http://127.0.0.1:8888;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /chronograf {
proxy_pass http://127.0.0.1:8888; # No trailing slash - chronograf is configured to include '/chronograf' prefix in its routes
proxy_redirect off;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment