-
Notifications
You must be signed in to change notification settings - Fork 3
IPFS js
李小明 edited this page Oct 17, 2019
·
2 revisions
https://github.com/libp2p/js-libp2p-websocket-star-rendezvous
测试发现Docker镜像无法设置证书, 于是使用nginx代理配合三级域名可以暂时解决. 增加如下server段:
server
{
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ipfs.dev.lilu.red;
ssl_session_cache shared:SSL:15m;
ssl_session_timeout 15m;
ssl_certificate /tls/server.cer;
ssl_certificate_key /tls/server.key;
ssl_protocols TLSv1.2; # Android not support 1.3!
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://172.17.0.1:10000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
注意: 记得更新证书以支持多个域名.