Serving a Website on a Raspberry Pi Zero Running in RAM
75 points by xngbuilds 2 hours ago | 26 comments

orliesaurus 33 seconds ago
So what benchmarks did you run or what's the advantage? Might as well just run the site on the VPS at this point since you're paying for it?
reply
c0nsumer 2 hours ago
This feels a little weird because while they are running the website itself (HTTP) off the Pi, they are handing off all TLS to a cloud provider.

So while the content is in RAM on the Pi, a lot of the heavier lifting (TLS termination) is done elsewhere, which saves a ton of CPU load on the Pi.

reply
spijdar 48 minutes ago
Yeah, I've seen this in more than a few places. There was a blog "running on a Wii" that, IIRC, was doing the same thing.

On the one hand I get it, TLS is pretty heavy, and it makes sense to take advantage of a VPS or Cloudflare or however you want to do it.

But once you are spinning up a VPS, the question is ... why the Pi? The VPS in the article has less RAM, but more storage. If you're already doing TLS termination on the VPS (the most RAM intensive part), you might as well just do the whole shebang there.

I know this is all for fun, I'm just wondering -- is the Pi Zero really too slow to handle TLS, especially with an optimized TLS library? In this setup, the Pi is already being directly exposed to the Internet anyway, there's no VPN being used. That ARM11 isn't "fast", but surely a 1 GHz ARM11 can handle an optimized TLS library serving some subset of TLS1.2.

reply
indigodaddy 3 minutes ago
The TLS termination isn't actually on the VPS. The article details that Tierhive has an haproxy edge service, that then has the vps as the backend, but that vps is just doing tcp proxying with socat to the ddns exposed home server fqdn. Feels like a lot of unnecessary loops. Kinda fun I guess but, just, why
reply
ironhaven 49 minutes ago
Sometimes these demos enable caching on the reverse proxy. So then for these tiny demo html pages you request, you may not even reach the fun tiny computer it is supposed to demonstrate.
reply
allthetime 15 minutes ago
I wouldn’t consider “the way most people do TLS in 2026” weird. That said this isn’t all that impressive or interesting, a computer… serving a website.
reply
Antirust3743 10 minutes ago
Is sending plaintext traffic over the open Internet "the way most people do TLS in 2026"? Am I missing something from the post?
reply
wang_li 48 minutes ago
It is more than a little weird. A pi zero is more than capable of handling HTTP/1.2 and TLS 1.3 for a handful of connections per second. This machine is 10x what we were running web servers on in the '90s.

Also, all web pages are served from RAM. It's automatic that modern OSes will cache this stuff on first access.

reply
joe_mamba 10 minutes ago
>This machine is 10x what we were running web servers on in the '90s.

Kind of irrelevant since operating systems and web pages in the 90's were significantly smaller in footprints, as the web was mostly plain text back then. Windows XP with its GUI would run Max Payne on 128MB of RAM. You could do a lot more back then that You can't do modern stuff like that today with 128MB of RAM.

reply
huijzer 4 minutes ago
You can host such sites perfectly well nowadays. I’ve often served hand-written HTML pages of only few lines
reply
MitPitt 2 hours ago
A raspberry zero is more powerful than an enterprise server from the 1990s. A minimalist static website is not impressive. You can fit way more in there.
reply
raddan 2 hours ago
I hosted my personal email domain on a Zero for almost 10 years. It had about the same capability as the very expensive (and large) Win NT4 machine we used for our 80-person organization when I started my career in tech. I eventually replaced the Zero with a Raspberry Pi 4, primarily because the Zero’s IO ports are annoying (eg, USB is not hot-pluggable!) An RPi 4 is extreme overkill for personal email but it still idles under 1W and when it fails I can replace the entire machine for next to nothing.

The point of failure for all of these machines has been the SD card. They seem to last 4 years almost to the day. I suppose if I set up a RAMdisk they might last longer, but honestly, for the price of an SD card it’s not really worth my time.

reply
alfanick 2 hours ago
Hey, it loads! Unlike ~10% of pages on first page of HN, hugged to death.
reply
raddan 2 hours ago
Also I love the dithered B&W images. The entire aesthetic of the site is great.
reply
vablings 2 hours ago
The website running on the vape was far more interesting than this. I do wonder if anyone has tried to use the microphone in these devices to listen to audio. Backdoored vape
reply
vednig 7 minutes ago
we're running a complete production grade cloud storage service with Raspberry Pi Zeros at https://getcloud.doshare.me that's how powerful Rpi hardware we've tested it for upto 10k concurrent requests with storage ofcourse, but still too far powerful
reply
seemaze 14 minutes ago
I've been using Raspberry Pi Zeros for cheap little linux appliances since they were released. Boot them up with the latest Alpine Linux and run the whole thing from ram. You can also remove a card from a running machine with no ill affect, and they easily survive power cuts. I've never had a card fail.
reply
jcalvinowens 52 minutes ago
I have a self hosting Pi Zero W running Gentoo. It started as a joke, but I kept it because it's actually occasionally useful for testing new kernel releases.

I found a fun bug with it a couple years ago: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

It is still able to build software faster than it is released. It takes roughly a month to recompile the entire system :D

reply
Venn1 26 minutes ago
They are powerful little devices. I used a Pi Zero 2 with an ethernet adapter to host an x86 TrackMania² server using BOX64 and it never had a problem. Only swapped it out recently because I needed the Zero 2 for another project.
reply
_stiofan 32 minutes ago
The pi zero's are great. I have a bunch of them. I used to use them as a tiny server for live webcams streaming to YouTube for customers, but YouTube now have a minimum sub count before you can go live, which sucks. These boards are pretty powerful.
reply
sphars 2 hours ago
The OP link is not to Pi zero website, here's the actual website that's being hosted on the Raspberry Pi:

https://zero.btxx.org/

reply
fdjafhdasfjhds 32 minutes ago
RAM? In this economy?!
reply
wolvoleo 14 minutes ago
Umm some people run a website on a conmodore 64. That's impressive.

A Raspberry Pi Zero can just run apache.

reply
jcgrillo 51 minutes ago
After seeing what new R-Pi stuff is selling for I went rummaging in the parts drawer and found the following:

- R-Pi Zero W

- Sixfab UPS hat

- Sixfab Cellular IoT App Shield

- R-Pi model 1B

With all this I should be able to make a multiply redundant always-on bastion host. It's awesome that alpine supports the armhf stuff, many OSes have dropped 32bit support entirely.

reply
giobox 31 minutes ago
In the good old days a decade or so ago where the full fat Pi board was always 35 dollars and the zero was just 5, they were so cheap as to be practically disposable. I have an insane number of Pi 3/4 and Zero/ZeroW boards in projects and drawers around the house, but this has massively tapered off as prices have gone up. At one point I had an 8 pi 3 cluster to learn kubernetes/container orchestration techniques on - completely unnecessary, but building the little rack was 85% of the fun. That cluster ran my home stack for years (DNS, home automation, network admin UI etc).

I've since got a lot more interested in the microcontroller community - so many Pi projects should really be microcontroller projects - the esp32 especially scratches the itch for cheap things to hack on, and you can get them for like 6-7 bucks each with wifi.

reply
jcgrillo 26 minutes ago
Yeah I've been using an ESP32-C6 for the latest wifi connected project I'm working on. The RP2040 and RP2350 look interesting too, I have a couple of them but haven't really done much with them.
reply