111

# 模型服务ws代理
server {
        listen       7502;
        server_name  localhost;
        

        location ~ ^/b(\d*)m(\d*)e([\w]*) {
                #proxy_pass http://10.0.125.70:$1$2;
                proxy_pass http://10.0.125.70:$1$2/$3;

                #配置Nginx支持webSocket开始
                proxy_set_header Host $http_host;

                proxy_http_version 1.1;
                proxy_connect_timeout 120s;               
                proxy_read_timeout 3600s;                  
                proxy_send_timeout 3600s;                  
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
        }
        
 
}
posted @ 2023-07-12 12:00  等一念  阅读(69)  评论(0编辑  收藏  举报