Skip to main content

IPFS

Set up

Install IPFS

systemd unit file

[Unit]
Description=IPFS daemon

[Service]
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure

[Install]
WantedBy=default.target

nginx config

server {
server_name <your domain>;
client_max_body_size 100M;

location /ipfs {
proxy_pass http://127.0.0.1:8080;
client_max_body_size 100M;
}

location / {
proxy_pass http://127.0.0.1:5001;
client_max_body_size 100M;
}
}

certbot can then be used to set up SSL/TLS for HTTPS.