openvibers/openvibe.wiki Commits
Wiki: nginx refuses /internal/ and /metrics case-insensitively (#24)
Changes
@@@ -83,7 +83,7 @@ server {proxy_cache_bypass 1;# Prometheus metrics are for the host only (the app also refuses non-loopback callers).-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; }# The session probe: the shared navbar asks it on every page view, so it cannot share the sign-in# budget below (10 a minute): a visitor reading quickly was answered 503 and looked signed out@@@ -121,7 +121,7 @@ server {# ── OpenVibe.Events' delivery route: loopback only (POST /internal/events) ──# Events posts to http://127.0.0.1:4800/internal/events directly; never proxied from outside (ADR-033).-- location /internal/ { return 404; }++ location ~* ^/internal(/|$) { return 404; }location / {limit_req zone=ovwiki_write burst=20 nodelay;
@@ -83,7 +83,7 @@ server {
@@ -83,7 +83,7 @@ server {
proxy_cache_bypass 1;
proxy_cache_bypass 1;
# Prometheus metrics are for the host only (the app also refuses non-loopback callers).
# Prometheus metrics are for the host only (the app also refuses non-loopback callers).
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
# The session probe: the shared navbar asks it on every page view, so it cannot share the sign-in
# The session probe: the shared navbar asks it on every page view, so it cannot share the sign-in
# budget below (10 a minute): a visitor reading quickly was answered 503 and looked signed out
# budget below (10 a minute): a visitor reading quickly was answered 503 and looked signed out
@@ -121,7 +121,7 @@ server {
@@ -121,7 +121,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:4800/internal/events directly; never proxied from outside (ADR-033).
# Events posts to http://127.0.0.1:4800/internal/events directly; never proxied from outside (ADR-033).
- location /internal/ { return 404; }
+ location ~* ^/internal(/|$) { return 404; }
location / {
location / {
limit_req zone=ovwiki_write burst=20 nodelay;
limit_req zone=ovwiki_write burst=20 nodelay;