openvibers/openvibe.bot Commits
Keep /api/health and /api/ready off the public nginx vhost
Changes
@@@ -108,6 +108,12 @@ server {proxy_pass http://127.0.0.1:4630;}++ # ── Health and readiness: host-local probes only ────────++ # The app treats /api/health and /api/ready as loopback-only (README); keep them off the public++ # vhost so a probe uses port 4630 directly. Exact matches outrank the /api/ prefix below.++ location = /api/health { return 404; }++ location = /api/ready { return 404; }++# ── REST API ────────────────────────────────────────────location /api/ {limit_req zone=ovbot_api burst=20 nodelay;
@@ -108,6 +108,12 @@ server {
@@ -108,6 +108,12 @@ server {
proxy_pass http://127.0.0.1:4630;
proxy_pass http://127.0.0.1:4630;
}
}
+ # ── Health and readiness: host-local probes only ────────
+ # The app treats /api/health and /api/ready as loopback-only (README); keep them off the public
+ # vhost so a probe uses port 4630 directly. Exact matches outrank the /api/ prefix below.
+ location = /api/health { return 404; }
+ location = /api/ready { return 404; }
+
# ── REST API ────────────────────────────────────────────
# ── REST API ────────────────────────────────────────────
location /api/ {
location /api/ {
limit_req zone=ovbot_api burst=20 nodelay;
limit_req zone=ovbot_api burst=20 nodelay;