ipfs based web site

in ipfs •  7 years ago  (edited)

I finally managed to set up a (simple) web site on the ipfs test network. On the site I explained what I did to set it up. I'm still a bit fuzzy on the client and gateway interactions with DNS that are needed to resolve things, but at least I understand how the parts need to fit together.

Any constructive or instructive comments are welcome.

Load times are SLOW - this is an alpha ipfs test swarm after all.

http://ipfstest.looking4reality.net

Thanks!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

The source code in now available at github through utopian.io: https://github.com/xpucadad/ipfsplay

I'm getting 404 errors on this now. Not sure why. Maybe the ipfs network I'm using is not official and gets purged every so often. Kind of goes against the philosophy of never losing content. Oh well, things are in the early stage and thankfully this particular site is not critical.

I had to do an ipfs add and ipfs name publish again to get the website back to an accessible state. So I think I may have beeen correct that if a file is not used for a while on whatever P2P network is used by default, it will be removed or become inaccessible. I'd love to have someone explain what happened to my site if my assumption is incorrect. Thanks!

I've made some changes that should cause the demo website to be available without having to republish it every few days.

I set up one of my other computers to run the ipfs client 24/7. I then added and published the website on that computer. The add should have by default "pinned" the files so they don't get gc'd.

Apparently the persistence on remote nodes would be caused by pinning files on those nodes. This would likely be handled by code written to support a decentralized cloud using an ipfs api.

I guess this is starting to make a bit more sense to me. Of course, if the files disappear again I'll have to figure out what it is I'm not understanding.