IndieWeb magick with static sites and IPFS

I’ve been playing around with IPFS, Hugo, and IndieWeb to publish this site.

I’ve configured NGINX to serve my site from IPFS using the local daemon that gets installed on port 8080.

Here is my config

# /etc/nginx/nginx.conf

server {
    listen 80 default_server;
    location / {
        proxy_pass http://localhost:8080/ipns/Qmc9UjSn1TksQdMsDKrNgbwLhAtWZ1J9Cu4it4addUEpwC/;

Qmc9UjSn1TksQdMsDKrNgbwLhAtWZ1J9Cu4it4addUEpwC refers to my IPNS key which works kinda like DNS, in that, it is a static address that resolves to dynamic content.

I publish my static folder like ipfs add -r $PUBLIC_DIR and then ipfs name publish $GENERATED_HASH on the hash that gets generated from the add command. This publishes the generated hash to my static key.

You can visit this site on a different IPFS gateway by going to and appending the hash that appears at the bottom of this post to the url.