fix: 简化Nginx代理配置,移除upstream变量 [AC-AISVC-50]
This commit is contained in:
parent
97e7fd0992
commit
72700038c6
|
|
@ -9,8 +9,7 @@ server {
|
|||
}
|
||||
|
||||
location /api/ {
|
||||
set $upstream http://ai-service:8080;
|
||||
proxy_pass $upstream/;
|
||||
proxy_pass http://ai-service:8080/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
|
|
@ -21,6 +20,7 @@ server {
|
|||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_connect_timeout 75s;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
|
|
|
|||
Loading…
Reference in New Issue