mirror of https://git.rancher.io/charts
Add rewrite rule to Prometheus and Grafana for /k8s/clusters
parent
40cc26ecc0
commit
b93fe34e57
|
@ -70,6 +70,9 @@ data:
|
||||||
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
|
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
|
||||||
expires 90d;
|
expires 90d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rewrite ^/k8s/clusters/.*/proxy(.*) /$1 break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,9 @@ data:
|
||||||
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
|
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
|
||||||
expires 90d;
|
expires 90d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rewrite ^/k8s/clusters/.*/proxy(.*) /$1 break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue