smarteye nginx代理转发
现在同一个安全帽配置到了2个平台,其中一个平台无法播放。
配置的同样的代理: location /bghat/ { proxy_pass https://47.96.260.176:9781/; }
M平台 访问视频的时候,websocket能找到正确的ws地址:ws://47.96.260.176:9702/bvvtdu/bvvtdu4a8487759f16c4ee/ws-bvrtc
N平台就会报错: WebSocket connection to 'wss://hzscgf.lanchensl.cn/bvvtdu/bvvtdu4a8487759f16c4ee/ws-bvrtc' failed:
看上去是 /bvvtdu 没有转发成功,请问 /bvvtdu 也要进行nginx转发吗?
location /bghat/ {
proxy_pass http://47.96.260.176:9780/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
location /bvvtdu {
proxy_pass http://47.96.260.176:9780;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
