openvibers/openvibe.mediahub Commits
MediaHub: nginx refuses /internal/ and /metrics case-insensitively (#7)
Changes
@@@ -140,8 +140,8 @@ server {}# ── Loopback only: OpenVibe.Events' deliveries (account export and deletion) and Prometheus ──-- location /internal/ { return 404; }-- location = /metrics { return 404; }++ location ~* ^/internal(/|$) { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# ── Pages, docs, robots.txt, sitemap, static assets ─────location / {
@@ -140,8 +140,8 @@ server {
@@ -140,8 +140,8 @@ server {
}
}
# ── Loopback only: OpenVibe.Events' deliveries (account export and deletion) and Prometheus ──
# ── Loopback only: OpenVibe.Events' deliveries (account export and deletion) and Prometheus ──
- location /internal/ { return 404; }
- location = /metrics { return 404; }
+ location ~* ^/internal(/|$) { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# ── Pages, docs, robots.txt, sitemap, static assets ─────
# ── Pages, docs, robots.txt, sitemap, static assets ─────
location / {
location / {