From 9c4aee8c86e4a5dfaa905a3434884fedad3b293e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Toledo?= Date: Tue, 27 Jan 2026 09:07:52 -0300 Subject: [PATCH] fix(script): improve regex to avoid matching proxy_ssl_server_name --- scripts/pre-flight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-flight.sh b/scripts/pre-flight.sh index 4643f17..002fcd8 100644 --- a/scripts/pre-flight.sh +++ b/scripts/pre-flight.sh @@ -14,7 +14,7 @@ for conf in /etc/nginx/conf.d/*.conf; do echo "[Pre-Flight] Checking config: $conf" # Simple extraction of server_name (naive, but works for standard configs) - DOMAINS=$(grep -E "\s*server_name\s+" "$conf" | sed -r 's/.*server_name\s+(.*);/\1/') + DOMAINS=$(grep -E "^\s*server_name\s+" "$conf" | sed -r 's/.*server_name\s+(.*);/\1/') for domain in $DOMAINS; do if [ "$domain" = "_" ] || [ "$domain" = "localhost" ]; then continue; fi