Skip to content

Commit c3cd6dd

Browse files
committed
fix(runtime): escape nginx variables in generated api-proxy.conf
1 parent 936b656 commit c3cd6dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

startup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ location /api/ {
8989
# Forward to the backend base url. Note: using a full URL here lets nginx
9090
# perform an external proxy pass to the backend host configured at runtime.
9191
proxy_pass ${VITE_BACKEND_BASE_URL}/api/;
92-
proxy_set_header Host $host;
93-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
94-
proxy_set_header X-Forwarded-Proto $scheme;
92+
proxy_set_header Host \$host;
93+
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
94+
proxy_set_header X-Forwarded-Proto \$scheme;
9595
proxy_http_version 1.1;
9696
proxy_set_header Connection '';
9797
proxy_buffering off; # important for SSE
9898
chunked_transfer_encoding off;
99-
proxy_cache_bypass $http_upgrade;
99+
proxy_cache_bypass \$http_upgrade;
100100
proxy_read_timeout 3600s;
101101
proxy_send_timeout 3600s;
102102
}

0 commit comments

Comments
 (0)