Initial commit
This project contains a set of scripts to easily create an IPFS public gateway that serves static content for a set of specified domain names.
A
record for the domains you want to serve content at your hostTXT
at the subdomain _dnslink.[domain]
pointed at the IPFS/IPNS
content you want to hostinit [domain]
init example.com example.net
init
is idempotent and is safe to be called multiple times with new
domains as neededcron
every 10 minutes:$ echo "*/10 * * * * root /path/to/repo/cron | sudo tee -a /etc/crontab > /dev/null
certbot renew
on some interval:$ echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null
systemctl restart nginx
if using systemd)