fix(status-dashboard): fix nginx config variable substitution
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 <noreply@anthropic.com>
This commit is contained in:
parent
b572f2062e
commit
16657ec5f2
1 changed files with 5 additions and 5 deletions
|
|
@ -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" <<EOF
|
||||
# status.atlilith.com - Status Page Application
|
||||
|
||||
# HTTP -> 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue