Add Nginx configuration for Grafana proxying
Browse files- nginx.conf +9 -0
nginx.conf
CHANGED
|
@@ -73,6 +73,15 @@ http {
|
|
| 73 |
proxy_set_header Host $host;
|
| 74 |
}
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
# Prometheus UI
|
| 77 |
location /prometheus/ {
|
| 78 |
proxy_pass http://prometheus/prometheus/;
|
|
|
|
| 73 |
proxy_set_header Host $host;
|
| 74 |
}
|
| 75 |
|
| 76 |
+
# Grafana
|
| 77 |
+
location /grafana/ {
|
| 78 |
+
proxy_pass http://127.0.0.1:3000/;
|
| 79 |
+
proxy_set_header Host $host;
|
| 80 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 81 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 82 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
# Prometheus UI
|
| 86 |
location /prometheus/ {
|
| 87 |
proxy_pass http://prometheus/prometheus/;
|