Add live Prometheus telemetry endpoint
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = /api/status {
|
||||
proxy_pass http://status-api:8080/status;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_connect_timeout 2s;
|
||||
proxy_read_timeout 4s;
|
||||
add_header Cache-Control "no-store, max-age=0" always;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ /. {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ^~ /status-api/ {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location = /nginx.conf {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user