fix(deploy): bypass proxy in health checks

Loopback health checks inherited http_proxy from /etc/environment and
were routed through v2rayA, failing spuriously (2026-08-28 incident).
This commit is contained in:
nanobot
2026-09-03 09:30:02 +08:00
parent 4176122d26
commit c0938249c6
+1 -1
View File
@@ -58,7 +58,7 @@ health_check() {
# Returns 0 if healthy, 1 if not
local deadline=$((SECONDS + HEALTH_TIMEOUT_SEC))
while (( SECONDS < deadline )); do
if curl -sf --max-time 3 "$HEALTH_URL" >/dev/null 2>&1; then
if curl -sf --noproxy '*' --max-time 3 "$HEALTH_URL" >/dev/null 2>&1; then
return 0
fi
sleep 1