This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new b6fb20534 adjust nginx config for grafana location regex (#6496)
b6fb20534 is described below
commit b6fb2053464fa95d8a8ace1528af8567e7383c2c
Author: ZhangNing10 <[email protected]>
AuthorDate: Wed Nov 22 13:23:10 2023 +0800
adjust nginx config for grafana location regex (#6496)
---
config-ui/nginx.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config-ui/nginx.conf b/config-ui/nginx.conf
index c6e5e7b95..528766a2f 100644
--- a/config-ui/nginx.conf
+++ b/config-ui/nginx.conf
@@ -43,7 +43,7 @@ ${SERVER_CONF}
proxy_set_header "Connection" "";
}
- location /grafana/ {
+ location ~ ^/grafana(?:/|$) {
set $external "${USE_EXTERNAL_GRAFANA}";
if ($external = "true") {
return 302 "${GRAFANA_ENDPOINT}";