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
- Host: GitHub
- URL: https://github.com/hautph/ipfs
- Owner: hautph
- License: gpl-3.0
- Created: 2018-06-25T09:39:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T10:27:17.000Z (over 7 years ago)
- Last Synced: 2025-09-09T12:57:28.924Z (5 months ago)
- Topics: ipfs, ipfs-api, ipfs-cluster, ipfs-daemon, ipfs-protocol, ipfs-web, ipfs-webui
- Language: Shell
- Homepage: https://www.gocit.vn
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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