1.站点伪静态加wss配置
location /wss {
proxy_pass http://127.0.0.1:20014;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
2.在宝塔中给知识付费站点配置证书,知识付费后台基础配置下的网站网站链接改成https;并且网站所有访问链接均改成https,包括微信公众号菜单等
3.使用命令php think workerman status检查workerman是否开启中,若是开启需要使用命令php think workerman stop 关闭然后开启workerman;如果关闭直接开启workerman。
这样直播使用https就可以实现了