Live data from Hacker News

Serving a website on a Raspberry Pi Zero running in RAM

btxx.org

81–90 of 107 posts

Re: Serving a website on a Raspberry Pi Zero running in RAM

#81

Earlier quoted context omitted.

The TLS termination isn't actually on the VPS. The article details that Tierhive has an haproxy edge service (handling the TLS), 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

Not disagreeing with you, but that makes it even worse.

Agreed

Re: Serving a website on a Raspberry Pi Zero running in RAM

#84

Earlier quoted context omitted.

It's vastly different to do TLS termination within your own network and to do it on a rando VPS and then send normal TCP over the internet. It's not an argument of it being on the same server.

The VPS is your security in this case. It's not sending plaintext over the internet, is it? Edit: No, the article mentions listening on port 80 at home. I thought they'd be SSH tunneling or something. That is unusual, but I guess for a static website it doesn't really matter.

> That is unusual, but I guess for a static website it doesn't really matter.

It sorta does matter. Either the actual raspi does nothing of value or the traffic has value that should be protected.

Sure, I heard the argument that public HTTP traffic does not need encryption but if it is of any value then both parties have a interest in it unmanipulated, uncenscored, validated or all of the before. Even if it is just preventing the ISP injecting dumb ads.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#85
post #5

Earlier quoted context omitted.

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 i…

Interesting, what tools did you use for email hosting? I’m scared of self hosting a mailbox.

I just use Postfix. I originally ran on NetBSD. I have an alternative approach for spam, so I have no anti-spam tools.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#86
maybe i'm being stupid, but what's the complexity behind this? why is this exciting? is it because it's running on memory or because it's running on the pi? i find this trivial unless you're a new engineer.

for the ones that say that the pi can't handle tls that's just stupid. that's trivial as well.

for the ones saying that you need a vps how cloud native are you people? you can just expose a port on your router (if you're brave enough) and have any dynamic dns service point to the correct ip address.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#87
post #13

Earlier quoted context omitted.

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.

Anyone remember 32 bit/33 MHz PCI slot SSL accelerator cards? As I recall openbsd had kernel driver support for several

Yes. I still have one. I used it in a Soekris 486-class machine running OpenBSD for many, many years. I stopped using the Soekris when they dropped driver support for the accelerator. I think i386 support might be gone now too. Cool little card; I think I might still have it in a drawer somewhere.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#88

Earlier quoted context omitted.

The VPS is your security in this case. It's not sending plaintext over the internet, is it? Edit: No, the article mentions listening on port 80 at home. I thought they'd be SSH tunneling or something. That is unusual, but I guess for a static website it doesn't really matter.

> That is unusual, but I guess for a static website it doesn't really matter. It sorta does matter. Either the actual raspi does nothing of value or the traffic has value that should be protected. Sure, I heard the argument that public HTTP traffic does not need encryption but if it is of any value then both parties have a interest in it unmanipulated, uncenscored, validated or all of the before. Even if it is just p…

Yeah that's a valid concern. Idk, nothing about this setup makes sense.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#90

PiZero is a pretty solid machine. I run my micro-homelab on a Pi Zero from 2018. It’s behind Cloudflare tunnels. It runs the apps i need on a DietPi OS within 180MB and it’s uptime is ~8 months.

First time I hear about DietPi OS, does it offer a headless distro?

Yes, you can setup the entire OS through dietpi terminal utilities over ssh.
Post reply on HN