fix(deploy): preserve /api prefix in nginx proxy_pass

This commit is contained in:
2025-08-25 14:18:16 +08:00
parent d65e360299
commit 931eb1160c

View File

@@ -6,7 +6,8 @@ server {
index index.html; index index.html;
location /api/ { location /api/ {
proxy_pass http://backend:4000/; # preserve the original URI (/api/...) when proxying
proxy_pass http://backend:4000;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';