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

tmea-tlip/private-ipfs: A collections of scripts to launch a Private IPFS Networ ...

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

开源软件名称:

tmea-tlip/private-ipfs

开源软件地址:

https://github.com/tmea-tlip/private-ipfs

开源编程语言:

Shell 89.7%

开源软件介绍:

docker-ipfs

This is a collection of files and configuration for setting up a private IPFS network.

Private network setup

The following are steps for setting up a Private IPFS Network

Run the bootstrap

To run the bootstrap, simply make the private-ipfs.sh file executable by running

chmod +x private-ipfs.sh

Once that is done, you can now run the bootstrap by running

./private-ipfs.sh start-bootstrap

Add a node to the private IPFS Network

To run the ipfs node, ensure the private-ipfs.sh file is executable.

Copy over the swarm key generated from the bootstrap node in the directory /private-network/.ipfs/ to the same directory of your new node.

You can then run an ipfs node by running.

./private-ipfs.sh start-ipfs

To add an additional node to the bootstrap node, run the following commmand. Ensure you replace the:

  • IP Address with the IP Address of the bootstrap node
  • IP Address Peer with the IP Address of the peer that you want to join the private ipfs network
  • The peerId with the peerId of the node you want to add. It should be the same as the value in the peer-id-ipfs-node located in the docker-ipfs/ folder
curl -X POST "http://(IP Address):5001/api/v0/bootstrap/add?arg=/ip4/(IP Address Peer)/tcp/4001/p2p/(peerId)"

To add the bootstrap node to the current node you are currently running, run the following command. Ensure you replace the:

  • IP Address with the IP Address of the current IPFS node you are running
  • IP Address Peer with the IP Address of the bootstrap node
  • The peerId with the peerId of the bootstrap node you want to add. It should be the same as the value in the peer-id-bootstrap-node located in the docker-ipfs/ folder
curl -X POST "http://(IP Address of your ipfs node ):5001/api/v0/bootstrap/add?arg=/ip4/(IP Address of the bootstrap node)/tcp/4001/p2p/(peerId of the bootstrap node)"

References

Good explanation for the role of private networks. With private networks each node specifies which other nodes it will connect to. Nodes in that network don't respond to communications from nodes outside that network.

flyingzumwalt https://discuss.ipfs.io/t/how-to-create-a-private-network-of-ipfs/339/7

Private networks https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#private-networks

IPFS HTTP API https://docs.ipfs.io/reference/http/api/




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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