fix(nginx): remove api prefix

This commit is contained in:
chenos 2024-04-19 12:26:18 +08:00
parent 252bb14ae4
commit 3025c254e6

View File

@ -45,7 +45,7 @@ server {
} }
location ^~ {{publicPath}}api/ { location ^~ {{publicPath}}api/ {
proxy_pass http://127.0.0.1:{{apiPort}}{{publicPath}}api/; proxy_pass http://127.0.0.1:{{apiPort}};
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';