1.站點(diǎn)偽靜態(tài)加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.在寶塔中給知識(shí)付費(fèi)站點(diǎn)配置證書,知識(shí)付費(fèi)后臺(tái)基礎(chǔ)配置下的網(wǎng)站網(wǎng)站鏈接改成https;并且網(wǎng)站所有訪問鏈接均改成https,包括微信公眾號(hào)菜單等
3.使用命令php think workerman status檢查workerman是否開啟中,若是開啟需要使用命令php think workerman stop 關(guān)閉然后開啟workerman;如果關(guān)閉直接開啟workerman。
這樣直播使用https就可以實(shí)現(xiàn)了