giuto commited on
Commit
be5ad7c
·
1 Parent(s): 6f98a42

Add Nginx configuration for Grafana proxying

Browse files
Files changed (1) hide show
  1. 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/;