Serving a Website on a Raspberry Pi Zero Running in RAM
11 hours ago
- #Alpine Linux
- #Raspberry Pi
- #Self-Hosting
- A Raspberry Pi Zero v1.3 serves a website entirely from RAM, running Alpine Linux in diskless mode.
- The setup uses a microSD card only for booting and storing configurations via lbu (Alpine's persistent storage tool).
- Essential hardware includes a Raspberry Pi Zero, microSD card, optional Ethernet HAT, and temporary install accessories.
- External TLS termination is handled by a low-cost VPS (TierHive) with HAProxy to manage secure traffic.
- The web server options on the Pi are darkhttpd or nginx, optimized for minimal resource usage.
- Port forwarding on the local network and VPS configuration (using socat) directs traffic to the Pi.
- Backups are simple via SSH cloning of the microSD card image, ensuring easy recovery.
- The entire system emphasizes lightweight, self-hosted web serving with TLS handled externally.