http {
 
    upstream websocket {
        server 192.168.1.1:8010;
    }
    server {
        listen 8020;
        location / {
			proxy_pass http://websocket;
			proxy_http_version 1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection "upgrade";

        }
    }
}
  

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-09-08
  • 2021-06-28
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-11-22
  • 2022-02-02
相关资源
相似解决方案