申请域名
申请一个wss的域名,wss.demo.com
申请SSL证书
下载nginx证书
配置wss
宝塔-网站-反向代理-添加反向代理-添加成功后-编辑配置文件
#PROXY-START/apilocation /api{proxy_pass http://localhost:9976/api;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}#PROXY-END/api
websocekt 在线测试
http://www.websocket-test.com/

