HeadlinesBriefing favicon HeadlinesBriefing.com

Running a Public Website From a Raspberry Pi Zero in RAM

Hacker News •
×

A developer is serving a public website from a Raspberry Pi Zero running entirely from memory. The site zero.btxx.org runs on a Raspberry Pi Zero v1.3 with just 512MB of RAM, running Alpine Linux in diskless mode. The Pi operates without a persistent filesystem, with Alpine's local backup utility (lbu) preserving only essential configurations to the microSD card.

For web serving, the developer chose darkhttpd—a minimal HTTP server ideal for resource-constrained environments—rather than heavier alternatives like nginx. TLS termination gets offloaded to an inexpensive VPS from TierHive, costing around $4/year with 128MB RAM and 1GB NVMe storage. This setup keeps the Pi Zero's workload extremely light since it only handles unencrypted HTTP traffic.

This diskless approach means the Pi runs silently and quickly from memory, with only configuration changes saved to the SD card. The entire system demonstrates what's possible with minimal hardware when you offload TLS to an external service and use appropriately-sized software.