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