DaCrow13 commited on
Commit
eaaa414
·
1 Parent(s): c9e8ec5

fix(nginx): add redirects for missing trailing slashes

Browse files
Files changed (1) hide show
  1. docker/nginx.conf +9 -0
docker/nginx.conf CHANGED
@@ -74,6 +74,10 @@ http {
74
  }
75
 
76
  # Grafana
 
 
 
 
77
  location /grafana/ {
78
  rewrite ^/grafana/(.*) /$1 break;
79
 
@@ -91,6 +95,11 @@ http {
91
  proxy_set_header Connection "upgrade";
92
  }
93
 
 
 
 
 
 
94
  # Prometheus UI
95
  location /prometheus/ {
96
  proxy_pass http://prometheus/prometheus/;
 
74
  }
75
 
76
  # Grafana
77
+ location = /grafana {
78
+ return 301 /grafana/;
79
+ }
80
+
81
  location /grafana/ {
82
  rewrite ^/grafana/(.*) /$1 break;
83
 
 
95
  proxy_set_header Connection "upgrade";
96
  }
97
 
98
+ # Prometheus UI
99
+ location = /prometheus {
100
+ return 301 /prometheus/;
101
+ }
102
+
103
  # Prometheus UI
104
  location /prometheus/ {
105
  proxy_pass http://prometheus/prometheus/;