Merge fix/lab-agent-follow-redirects into main
This commit is contained in:
commit
1f25869c4f
1 file changed
+5
-1
@@ -449,7 +449,11 @@ CLUSTER_WIDE_SNAPSHOT="$("$KUBECTL_BIN" get pods -A -o custom-columns='NS:.metad
|
||||
|
||||
PUBLIC_CHECKS=""
|
||||
for d in $PUBLIC_DOMAINS; do
|
||||
code="$(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "https://${d}/" 2>/dev/null || echo "000")"
|
||||
# -L: sigue redirects (ej. commerce.cruzcloud.net/ -> /app vía Middleware
|
||||
# de Traefik) para reportar el estado final real, sin tener que
|
||||
# hardcodear una ruta distinta por dominio en este script — el routing
|
||||
# decide el path, no este check.
|
||||
code="$(curl -sL -o /dev/null -w '%{http_code}' --max-time 10 "https://${d}/" 2>/dev/null || echo "000")"
|
||||
PUBLIC_CHECKS="${PUBLIC_CHECKS}${d} -> HTTP ${code}\n"
|
||||
log "curl https://${d}/ -> HTTP ${code}"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user