An open API service indexing awesome lists of open source software.

https://github.com/hautph/ipfs

ipfs setup
https://github.com/hautph/ipfs

ipfs ipfs-api ipfs-cluster ipfs-daemon ipfs-protocol ipfs-web ipfs-webui

Last synced: 2 months ago
JSON representation

ipfs setup

Awesome Lists containing this project

README

          

# ipfs setup

# 1. Install an nginx reverse proxy + cache for an ipfs-cluster peer gateway on Linux.

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs-cluster-nginx.sh

$ sh ipfs-cluster-nginx.sh

$ sudo systemctl status nginx

$ sudo tail -f /var/log/nginx/access.log

# 2. Install an ipfs-cluster peer on Linux.

First node (node_0) setup

$ export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n')

$ echo $CLUSTER_SECRET

<-- other nodes must also use this secret

Jump down to Run the installer.

Other nodes (node_n>0) setup

On node_0 after running the installer,

$ journalctl -u ipfs-cluster -n10

In the above log output, look under the line INFO cluster: IPFS Cluster v0.3.0 listening on: cluster.go:91 and make a note of the full non-loopback ip4 cluster multiaddress (cluster.listen_multiaddress). This will reference your instance's private IP address and will be used to bootstrap other nodes.

Back to other nodes (node_n>0),

$ export CLUSTER_SECRET=

$ export CLUSTER_BOOTSTRAP=

Run the installer

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs-cluster-linux.sh

$ sh ipfs-cluster-linux.sh

$ sudo systemctl status ipfs

$ sudo systemctl status ipfs-cluster

$ journalctl -u ipfs-cluster --follow

# 3. Install ipfs on Linux.

$ wget https://raw.githubusercontent.com/hautph/ipfs/master/ipfs.sh

$ sh ipfs.sh

$ sudo systemctl status ipfs

$ journalctl -u ipfs --follow