Hosting my blog from my apartment

zkanda1 pts0 comments

hosting my blog from my apartment

Sign in<br>Subscribe

I was wondering if I could host this blog from my apartment. The monthly hosting cost is basically nothing, but somehow it still annoyed me, and more importantly, I was curious whether I could just do it myself.<br>I recently bought an old Dell office computer to experiment with self hosting, so this seemed like a good excuse to try.<br>port forwarding: the classic way (I didn't want to)<br>The traditional approach is to forward a port from my router to the computer running the blog. I didn't really like this idea, it means exposing something inside my home network directly to the internet, and I also didn't feel like figuring out all the details around NAT, firewall rules, and securing it properly.<br>So I started looking for another option.<br>cloudflare tunnel: connect out instead of letting the world in<br>Cloudflare tunnel turned out to be a surprisingly elegant solution. Instead of opening a port and letting the internet connect directly to my computer, my computer makes an outgoing connection to Cloudflare. So the direction is basically:<br>my computer → Cloudflare → internet<br>rather than:<br>internet → my router → my computer<br>cloudflare then forwards requests for my domain through that tunnel to the web server running on my little Dell machine. No port forwarding required, and nothing on my network is exposed. That felt much nicer.<br>so now this blog is running in my apartment<br>The full setup looks like this:<br>internet<br>Cloudflare<br>Cloudflare Tunnel<br>old Dell computer in my apartment<br>this blog<br>There's something satisfying about knowing that when someone opens this page, the response is coming from a tiny computer sitting somewhere in my apartment.<br>would I recommend this?<br>For learning and experimenting: absolutely. For something important in production: probably not, at least not with my current setup. Right now I have:<br>no redundant disks<br>no automatic backups<br>no redundant internet connection<br>one old computer that could simply decide to stop working<br>For a blog, I'm fine with all of that. I occasionally export my posts to a JSON file, and if the server goes down for a while, nothing particularly bad happens.<br>That's actually one of the things I like about this experiment: it doesn't need to be production grade. It just needs to work well enough.<br>That's the setup for now. If my apartment loses power, so does this post :)

Read more

Linux <> PC

Finally got the time to install Linux on my new PC.

Well, actually there's not much to say, other than it works really well. I use an OS called CatchyOS with Gnome, and it just works out of the box with the Nvidia 5080.

A few notes on

Pills and Songs

A simple trip to the doctor led to an unexpected musical memory trip. How a Spanish pill organizer with days of the week labels triggered a childhood song that's been stuck in my head for decades. Discover how music connects us in the most surprising ways.

Bought a PC Desktop

After basically nomading for the last couple of years and living in Thailand for the past four years, I now find myself living in Barcelona—at least for the n`ext two years—and, for some reason, I wanted to have a desktop computer.

No, I didn’t build it

Take advantage of friction

Just read Arslan's friction blog post and realized I already knew this from Atomic Habits - but wasn't using it. So here's my experiment: reducing blog writing from 7 steps to 4. Less friction = more posts? Testing if I can hit 1 post every 2 weeks.

Powered by Ghost

computer blog from apartment cloudflare internet

Related Articles