• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jbenet/http2ipfs-web

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

jbenet/http2ipfs-web

开源软件地址:

https://github.com/jbenet/http2ipfs-web

开源编程语言:

JavaScript 91.5%

开源软件介绍:

add2ipfs webapp

This is a simple webtool to add URLs to an IPFS node.

Latest Version:

(*) wont work directly out of https://ipfs.io until ipfs/infra#105 is fixed.

Preview

Troubleshooting

  • The page is not loading! What do I do? Try cloning this repository, run make build and use the hash you get there.

  • There is an error, nothing seems to happen. Check the browser console, there may be errors. It may be a config issue (writable or CORS).

  • Config issue? Writable? CORS? In order to write to ipfs, your daemon must allow the webpage to write through. It is recommended that you turn the ipfs gateway writable, and use the public gateway. If that fails, try enabling CORS for http://localhost:8080 or whatever port you're using. See ipfs daemon --help on how to set HTTP Headers for CORS.

Develop

Clone it, edit, and make:

> make build
cp -r lib build/.
cp index.html build/.
ipfs add -r build | tail -n1
added QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd build

> make publish
cp -r lib build/.
cp index.html build/.
ipfs add -r build | tail -n1
added QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd build
ipfs add -r -q build | tail -n1 >versions/current
cat versions/current >>versions/history
here are the links:
http://localhost:8080/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
http://gateway.ipfs.io/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd

now must:
- ipfs pin add /ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd
- add TXT to add2.ipfs.io: dnslink=/ipfs/QmZTEDF8yN3dMGcYqtyTzuR8PFsTqmLLBxsVZ4jzV2a1rd

About

  • Author: @jbenet
  • License: MIT



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ipfs-shipyard/ipfs-cohost: A CLI to co-host websites published to IPFS发布时间:2022-06-23
下一篇:
ipfs/go-ipfs-provider发布时间:2022-06-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap