From 16657ec5f2134893096226043fbaf69caaedcd5f Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Thu, 25 Dec 2025 17:06:11 -0800 Subject: [PATCH] fix(status-dashboard): fix nginx config variable substitution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed heredoc from quoted ('EOF') to unquoted (EOF) to enable shell variable expansion for BACKEND_VPS_IP and BACKEND_API_PORT. Properly escaped all nginx variables with backslash. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- features/status-dashboard/infrastructure/deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/features/status-dashboard/infrastructure/deploy.sh b/features/status-dashboard/infrastructure/deploy.sh index e2b69a6b7..aaddf52ac 100755 --- a/features/status-dashboard/infrastructure/deploy.sh +++ b/features/status-dashboard/infrastructure/deploy.sh @@ -172,7 +172,7 @@ configure_nginx() { # Create nginx config from template local nginx_config="/tmp/status-atlilith-com.conf" - cat > "$nginx_config" <<'EOF' + cat > "$nginx_config" < HTTPS redirect @@ -180,7 +180,7 @@ server { listen 80; server_name status.atlilith.com; - return 301 https://$server_name$request_uri; + return 301 https://\$server_name\$request_uri; } # HTTPS server @@ -212,10 +212,10 @@ server { # Main site (serve React SPA) location / { - try_files $uri $uri/ /index.html; + try_files \$uri \$uri/ /index.html; # Cache static assets - location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)$ { + location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)\$ { expires 1y; add_header Cache-Control "public, immutable"; } @@ -261,7 +261,7 @@ server { proxy_http_version 1.1; # WebSocket upgrade headers - proxy_set_header Upgrade $http_upgrade; + proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; # Standard proxy headers