node.js - nodejs https socket.io 连接失败
迷茫
迷茫 2017-04-17 15:58:34
0
1
373
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
大家讲道理

Try it from here

location /socket.io/ {
        //此处改为 socket.io 后端的 ip 和端口即可
        proxy_pass http://127.0.0.1:3000;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
    }
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template