[object Object]

← back to Pastdoor Nginx Watch

Add curl --max-time so a hung probe cannot stall the weekly check

17d2c48abb6f56401b58c4034200b599cc869279 · 2026-05-18 20:21:59 -0700 · Steve Abrams

Files touched

Diff

commit 17d2c48abb6f56401b58c4034200b599cc869279
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 18 20:21:59 2026 -0700

    Add curl --max-time so a hung probe cannot stall the weekly check
---
 check-nginx-cotenant.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check-nginx-cotenant.sh b/check-nginx-cotenant.sh
index b394511..a0bc992 100755
--- a/check-nginx-cotenant.sh
+++ b/check-nginx-cotenant.sh
@@ -41,8 +41,8 @@ for D in wholivedthere.com bubbesblock.com claimmyaddress.com; do
   grep -q "proxy_pass http://127.0.0.1:9821;" <<<"$CONF" || failures+=("$D: missing pastdoor proxy_pass :9821")
   grep -q "location ~ ^/api/(" <<<"$CONF"          || failures+=("$D: missing path-route location regex")
 
-  PD=$(curl -s -o /dev/null -w '%{http_code}' "https://$D/restaurants" || echo "ERR")
-  SFCODE=$(curl -s -o /dev/null -w '%{http_code}' "https://$D/api/health" || echo "ERR")
+  PD=$(curl -s --max-time 15 -o /dev/null -w '%{http_code}' "https://$D/restaurants" || echo "ERR")
+  SFCODE=$(curl -s --max-time 15 -o /dev/null -w '%{http_code}' "https://$D/api/health" || echo "ERR")
   [[ "$PD" == "200" ]] || failures+=("$D: pastdoor /restaurants returned $PD (expected 200)")
   [[ "$SFCODE" == "200" ]] || failures+=("$D: SF /api/health returned $SFCODE (expected 200)")
 done

← 0f5647e initial scaffold (gitify-all 2026-05-06)  ·  back to Pastdoor Nginx Watch  ·  gitignore: add missing backup/scratch file patterns (*.bak-* b7b1b2c →