Tutorial:Blockchain: create website with IPFS

less than 1 minute read

final result, my sample site:

ipfs.io/ipns/samsara.site

or

samsara.site

it’s currently hosting on my pc, loading speed quite slow, please be patient

how to:

  1. create simple site with hugo:

hugo new site samsara.site

git init

git submodule add

hugo -s samsara.site\ -d \publish

  1. publish to ipfs ipns peer

ipfs init

ipfs daemon

ipfs add -r \publish

ipfs name publish

  1. port forwarding & reverse proxy

add port forwarding in route setting

dns record:

txt dlink=/ipns/

start nginx

Updated:

Comments