openvibers/openvibe.bot Commits
Bot: nginx refuses /internal/ and /metrics case-insensitively (#55)
Changes
@@@ -163,7 +163,7 @@ server {}# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4630/metrics) ──-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# ── The front page and the shared browser assets: Bot's own (server/web/home.js) ──# /shared/ is openvibe-shared's serve handler in the app, the same files the Frame loads everywhere.@@@ -189,7 +189,7 @@ server {# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──# Events posts to http://127.0.0.1:4630/internal/events directly; never proxied from outside (ADR-033).-- location /internal/ { return 404; }++ location ~* ^/internal(/|$) { return 404; }# ── Everything else: the app. There is no static root here any more — the app serves the legal pages,# robots.txt, sitemap.xml, manifest.webmanifest and its own 404 page (server/app.js, server/web/routes.js). ──
@@ -163,7 +163,7 @@ server {
@@ -163,7 +163,7 @@ server {
}
}
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4630/metrics) ──
# ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:4630/metrics) ──
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# ── The front page and the shared browser assets: Bot's own (server/web/home.js) ──
# ── The front page and the shared browser assets: Bot's own (server/web/home.js) ──
# /shared/ is openvibe-shared's serve handler in the app, the same files the Frame loads everywhere.
# /shared/ is openvibe-shared's serve handler in the app, the same files the Frame loads everywhere.
@@ -189,7 +189,7 @@ server {
@@ -189,7 +189,7 @@ server {
# ── 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:4630/internal/events directly; never proxied from outside (ADR-033).
# Events posts to http://127.0.0.1:4630/internal/events directly; never proxied from outside (ADR-033).
- location /internal/ { return 404; }
+ location ~* ^/internal(/|$) { return 404; }
# ── Everything else: the app. There is no static root here any more — the app serves the legal pages,
# ── Everything else: the app. There is no static root here any more — the app serves the legal pages,
# robots.txt, sitemap.xml, manifest.webmanifest and its own 404 page (server/app.js, server/web/routes.js). ──
# robots.txt, sitemap.xml, manifest.webmanifest and its own 404 page (server/app.js, server/web/routes.js). ──