fix: nginx使用变量延迟解析upstream避免启动报错 [AC-AISVC-01]

This commit is contained in:
MerCry 2026-02-26 02:28:44 +08:00
parent a60a760951
commit 40ff48498f
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ server {
} }
location /api/ { location /api/ {
proxy_pass http://ai-service:8080/; set $upstream http://ai-service:8080;
proxy_pass $upstream/;
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';