Hosting a site with IPFS

2016-06-08 22:14:00 +0000, 2 years and 4 months ago

Firstly, install the IPFS daemon with:

blah blah

Have your folder laid out in the traditional manner, with index.html in the root of the folder. Now to add it to IPFS;

cd ~/your/site/directory/
ipfs add -r add mysite/
=> added ##key
##key = last line of root of site
        e.g<your ##hash here>

publish to IPNS when updating site via ftp, ##hash will change, this requires a way to always share the latest hash key, this is what IPNS is for. it allows you to store a reference to the IPFS ##has under the namespace of your peerID (hash of IPFS)

ipfs name publish <your site ##hash>
        => peerID ipfs name resolve <peerId>

peerID can also be confirmed by going to ```



there's some rate-limiting going on with my comment provider atm, so i'd reccommend copying your message incase it gets blocked and retrying