微信小游戏websocket支持https/wss

公司新项目需要支持wss,解决方法如下:

https://blog.csdn.net/peter_teng/article/details/82866613

 

proxy_pass http://websocket;

 

的地方改成:

微信小游戏websocket支持https/wss
proxy_pass http://localhost:12001;

 

  即可