IOS的微信小程序没有问题,Android端的微信小程序报以下错误。


服务端环境是 穿透到本机:

win 

nginx (还有natapp的穿透,然后反向代理到go,证书在freessl.org生成)

go(github.com/gin-gonic/gin和github.com/gorilla/websocket)

 

nginx 的配置如下

ssl_certificate full_chain.pem;

ssl_certificate_key private.key;

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;

ssl_session_cache shared:SSL:1m;

ssl_session_timeout 5m;


ssl_ciphers HIGH:!aNULL:!MD5;

ssl_prefer_server_ciphers on;


access_log nul; #关闭访问日志


location /ws/ {

proxy_pass http://127.0.0.1:6868;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";

}



展开全部
收起
0回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部