mirror of https://git.rancher.io/charts
(dev-v2.6-archive) Add rewrite rule to Prometheus and Grafana for /k8s/clusters
(partially cherry picked from commit b93fe34e57
)
pull/1680/head
parent
0300243b26
commit
1cace26711
|
@ -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