openvibers/openvibe.billing Commits
Billing: nginx refuses /internal/ and /metrics case-insensitively (#27)
Changes
@@@ -60,7 +60,7 @@ server {# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4600/metrics). Node also# answers 404 to any request a proxy relayed.-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# The service API: loopback only. Never proxied from the public host.location ^~ /api/v1 { deny all; }
@@ -60,7 +60,7 @@ server {
@@ -60,7 +60,7 @@ server {
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4600/metrics). Node also
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4600/metrics). Node also
# answers 404 to any request a proxy relayed.
# answers 404 to any request a proxy relayed.
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# The service API: loopback only. Never proxied from the public host.
# The service API: loopback only. Never proxied from the public host.
location ^~ /api/v1 { deny all; }
location ^~ /api/v1 { deny all; }