Introduction to IPFS: Run Nodes on Your Network, with HTTP Gateways

How to install IPFS nodes across your VPS network and configure your own Gateways

IPFS Gateways

Available Gateways


Installing IPFS

Option 1: Installing Manually

cd ~
tar xvfz go-ipfs_v0.4.18_linux-amd64.tar.gzcd go-ipfssudo ./install.shipfs help

Option 2: Install using ipfs-update

cd ~
tar xvfz ipfs-update_v1.5.2_linux-amd64.tar.gzcd ipfs-updatesudo ./install.shipfs-update versionsipfs-update install latest

Initialising IPFS

Mounting a Block Storage Volume

mkdir /mnt/<name_of_your_volume>/.ipfs
export IPFS_PATH=/mnt/<name_of_your_volume>/.ipfs
ipfs init --profile server
ipfs config showorless /mnt/<name_of_your_volume>/.ipfs/config

Opening required firewall ports

sudo firewall-cmd --zone=public --add-port=4001/tcp --permanent
sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo systemctl reload firewalldsudo firewall-cmd --zone=public --permanent --list-ports

Running IPFS in the Background

Setting up IPFS Daemon as Supervisord Process

easy_install supervisororpip install supervisor
sudo echo_supervisord_conf > /etc/supervisord.conf
sudo supervisord
sudo vi /etc/supervisord.conf[program:ipfs]
command=ipfs daemon
sudo supervisorctl reread && sudo supervisorctl update
sudo supervisorctl status
sudo supervisorctl stop ipfs

Configure Your IPFS HTTP Gateway

"Datastore": {
"StorageMax": "1GB"
#change this
"Gateway": "/ip4/"
#to this
"Gateway": "/ip4/"
"HTTPHeaders": {
"Access-Control-Allow-Headers": [
"Access-Control-Expose-Headers": [
"Access-Control-Allow-Methods": [
"Access-Control-Allow-Origin": [
"X-Special-Header": [
"Access-Control-Expose-Headers: Ipfs-Hash"

"RootRedirect": "",
"Writable": true,
"PathPrefixes": [],
"APICommands": []

Connecting your Nodes as Peers

ipfs swarm peers
ipfs swarm connect <address>
ipfs swarm disconnect <address>


Programmer and Author. Director @ Creator of for iOS.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store