Create default.conf
Browse files- default.conf +19 -0
default.conf
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 80;
|
| 3 |
+
|
| 4 |
+
location /prometheus/ {
|
| 5 |
+
proxy_pass http://localhost:9090/;
|
| 6 |
+
proxy_set_header Host $host;
|
| 7 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 8 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 9 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
location /pushgateway/ {
|
| 13 |
+
proxy_pass http://localhost:9091/;
|
| 14 |
+
proxy_set_header Host $host;
|
| 15 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 16 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 17 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 18 |
+
}
|
| 19 |
+
}
|