openvibers/openvibe.inventory Commits
Inventory: nginx refuses /internal/ and /metrics case-insensitively (#14)
Changes
@@@ -87,11 +87,11 @@ server {}# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:5030/metrics) ──-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──# Events posts to http://127.0.0.1:5030/internal/events directly; never proxied from outside (ADR-033).-- location /internal/ { return 404; }++ location ~* ^/internal(/|$) { return 404; }# ── Pages, docs, robots.txt, sitemap, static assets ─────location / {
@@ -87,11 +87,11 @@ server {
@@ -87,11 +87,11 @@ server {
}
}
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:5030/metrics) ──
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:5030/metrics) ──
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──
# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──
# Events posts to http://127.0.0.1:5030/internal/events directly; never proxied from outside (ADR-033).
# Events posts to http://127.0.0.1:5030/internal/events directly; never proxied from outside (ADR-033).
- location /internal/ { return 404; }
+ location ~* ^/internal(/|$) { return 404; }
# ── Pages, docs, robots.txt, sitemap, static assets ─────
# ── Pages, docs, robots.txt, sitemap, static assets ─────
location / {
location / {