fix: nginx使用变量延迟解析upstream避免启动报错 [AC-AISVC-01]
This commit is contained in:
parent
a60a760951
commit
40ff48498f
|
|
@ -9,7 +9,8 @@ server {
|
|||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://ai-service:8080/;
|
||||
set $upstream http://ai-service:8080;
|
||||
proxy_pass $upstream/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
|
|
|||
Loading…
Reference in New Issue