在 Vagrant 盒子中使用 IPFS

Using IPFS inside a Vagrant box

我正在尝试访问 IPFS webui(http://localhost:5001/webui) and the hashes of the the files added to IPFS via my local node (https://localhost:8080/ipfs/HASH_OF_MY_FILE) and seem to be failing. But with the URL https://gateway.ipfs.io/ipfs/HASH_OF_MY_FILE 它似乎在工作,尽管 webui 是为本地节点设计的,但似乎没有工作。我知道服务器 运行ning Vagrant 内部必须在 0.0.0.0 上 运行 才能在主机上访问,但我无法为 IPFS 弄清楚。

使用此命令配置 IPFS ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080

然后重新启动守护进程。 ipfs daemon