关键 location 配置
关键 location 配置
location /v1/ {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 600s;
proxy_set_header Connection "";
}超时按生成时长设置:长输出场景读超时要大于最长生成时间,否则流中途被切断。