Hacker News new | past | comments | ask | show | jobs | submit login

Pi 5 + Cloudflare



I run a homelab that isn't too far from this, but I wouldn't recommend it without a few caveats/warnings:

- Don't host anything media-heavy (e.g. video streaming)

- Make sure you have reasonable upload speeds (probably 10+ Mbps min)

- Even behind Cloudflare, make sure you're comfortable with the security profile of what you're putting on the public internet

The min upload speed is mostly about making sure random internet users (or bots) don't saturate your home internet link.


Oh yeah definitely don't try this unless you have fiber and your ISP isn't too twitchy.

My suggestion is mainly for static site hosting since the Pi only needs to update the cloudflare cache when you make changes, and it should be able to handle a small db and few background services if you need them.


Any guides or blogs on how to do that?


Loads, but it'll depend on what you want to do exactly. I think this should be the approximate list of things:

- domain at Cloudflare set up to cache requests (this will take the brunt of the site traffic)

- static IP at home (call your ISP)

- port forwarding on your router to the Pi for 80 and any other ports you need, maybe a vlan if you're feeling like isolating it

- a note on the Pi that says "don't unplug, critical infra"

- the same setup on the Pi as you'd do on a cloud server, ssh with key pairs, fail2ban, etc.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: