openvibers/openvibe.network Commits
Network: nginx refuses /internal/ and /metrics case-insensitively (#111)
Changes
@@@ -58,7 +58,7 @@ server {add_header Referrer-Policy strict-origin-when-cross-origin always;# Prometheus metrics are for loopback scrapers only (the app also 404s any proxied request).-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# ── Token endpoint (its own limit; 429 when exceeded, as the app answers) ──location = /oauth/token {
@@ -58,7 +58,7 @@ server {
@@ -58,7 +58,7 @@ server {
add_header Referrer-Policy strict-origin-when-cross-origin always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
# Prometheus metrics are for loopback scrapers only (the app also 404s any proxied request).
# Prometheus metrics are for loopback scrapers only (the app also 404s any proxied request).
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# ── Token endpoint (its own limit; 429 when exceeded, as the app answers) ──
# ── Token endpoint (its own limit; 429 when exceeded, as the app answers) ──
location = /oauth/token {
location = /oauth/token {