create a decentralized website with IPFS

create a decentralized website with IPFS

0 99
HashFlare

final result, my sample site:

ipfs.io/ipns/samsara.site

or

samsara.site

a little bit slow, please be patient

 

how to?

1. create simple site with hugo:

hugo new site samsara.site

git init

git submodule add <themes url>

hugo -s samsara.site\ -d \publish

2. publish to ipfs ipns peer

ipfs init

ipfs daemon

ipfs add -r \publish

ipfs name publish <hash>

 

3. port forwarding & reverse proxy

add port forwarding in route setting

dns record:

txt dlink=/ipns/<peer id>

start nginx

 

 

 

友荐云推荐