配置websocket+ssl

location /wss {
        proxy_pass http://localhost:2346;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_connect_timeout 5s; #配置点1
        proxy_read_timeout 60000s; #配置点2,如果没效,可以考虑这个时间配置长一点
        proxy_send_timeout 60000s; #配置点3
    }

证书是https的证书,只需要往nginx下新增便可

💫 评论卡

备案号:粤ICP备18155514号-2