1.首先使用一键脚本安装飞机,选WS+TLS协议
2.查看飞机的config.json文件
3.在宝塔添加站点并修改默认配置
#在配置文件最后添加
location /SoftDown { //路径要和飞机配置一致
proxy_redirect off;
proxy_pass http://127.0.0.1:65432; //端口要和飞机配置一致
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}