Published: 23 Dec 2019 › Updated: 23 Dec 2019
SteemJiang加入IPFS网络,并启用新域名!
要启用IPFS网络就要使用服务器,要启用https就要使用nginx,所以,干脆为SteemJiang来个新的域名吧!
和之前的DAPP-星空笔记 一样,上传图片都采用了IPFS网络,这种方法目前来看,还是有不少优势的,所以就用着呗!
IPFS要有https的效果(基本上所有的网站都会这么要求了)就必须使用nginx的反向代理,好吧,又撸一把nginx!之间碰到一个神坑:就是js-IPFS版本的就是不能使用https,错误如下:
Access to fetch at ... from origin 'https://steemjiang.com' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
If an opaque response serves your needs, set the request's
mode to 'no-cors' to fetch the resource with CORS disabled.
这明显是一个跨域的问题,可是设置了半天,资料查了一大堆,可就是没法解决!这样卡了好几天(否则新版的SteemJiang会早几天公布出来呢),实在没法可想,就试着用go版的(go-ipfs),结果一试,一切顺畅!什么问题也没有!IPFS团队有必要这么坑吗?!两个版本的东东做得竟然不一样!我了个去!
好在其它方面还算顺利,新域名也用上啦!
Leave SteemJiang加入IPFS网络,并启用新域名! to:
Read more #steemjiang posts
Best Posts From lemooljiang
We have not curated any of lemooljiang's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.