Follow

If I want to host a static website in a low-tech way and P2P, without any Javascript on the client-side, how could I do it?

Host a IPFS node and pin the website?

If websites are distributed through P2P, is it more economical/ecological/performant/reliable?

@KillianKemps yup ipfs can do this job.
Anyway I don't think it's ecological.

@AmarOk You think it is more ecological to have a VPS with Nginx serving a static website than a VPS with IPFS serving the website?
Or maybe is it the same on a ecological point of view, but the P2P version would allow having more traffic and thus avoid having a too big infrastructure?

@KillianKemps
#IPFS is perfect for what you want, simply add the website to ipfs and pin the hash on a machine that is always on (a raspberry pi works fine).

I'm not sure about economics/ecologics, but IPFS is definitely capable of being much more performant and reliable.
If one person in each continent pins your website, that means all their servers have to fail for the content to be inaccessible, and people on those continents can connect to those hosts directly instead of connecting to you.

@swedneck If I run an IPFS node on my personal computer and some friends too which have pinned my website, than the website would still be available even when I put my computer off?

Or maybe should I need to run a public IPFS gateway? That means I can't put it on a personal computer which its IP can change at any time.

I think, if we can host websites on personal computers that are online only for normal daily usage, then we can assume that the energy consumption is shared.

@KillianKemps
As long as at least one computer is online and hosting (pinning) the content, it will be available.

As for the gateway, you don't have to run one unless you want to, you can just use ipfs.io, siderus.io, cloudflare-ipfs.com, or any other public gateway.
There's a guide for hosting ipfs pages here: cloudflare.com/distributed-web

@KillianKemps With IPFS/ZeroNet/Freenet/etc, your website will be hosted multiple times, moreover P2P protocols are far more complex than HTTP 1 (even with TLS), so it is not really ecologically great, but it is probably a lot better than video or tons of JS. However P2P is more resilient, but for this printing is good too (for example through a book or a newspaper or an NGO through tracts/etc). Please think to text web browsers. You may be interested by ecoindex.fr/ (not free/libre)

Sign in to participate in the conversation
Qowala's Mastodon

Welcome to Qowala's Mastodon instance!
Here, we love open source and we study and work on social networks so naturally we also host a Mastodon instance.
Friendly people are welcome, but as this is a small server, there are limited available slots. So, choose wisely to join or not.