Live data from Hacker News

Self hosting in 2023

grifel.dev

61–70 of 307 posts

Re: Self hosting in 2023

#61

Does anybody know how you’d do this if your ISP uses carrier grade NAT? (Eg mobile dongle). My limited understanding is that with CGNAT there isn’t a unique public IP that points to you, (even if only temporarily). So presumably DDNS is out? I guess IPv6 could/would solve this one day?

I use a Cloudflare tunnel, and set up my DNS at Cloudflare to route incoming requests through the tunnel

Re: Self hosting in 2023

#62
post #5

If you don't need all that cloud operations/deployment infrastructure, self hosting a website from home in 2023 is as easy as it was in 2003. Get a DDNS, do the NAT port forwarding, run some apache/nginx/whatever and push your files with sftp or similar to the server. In contrast to 2003, upstreams got better -- even Germany has average upstream speeds of 20mbit/second nowadays [1]. With 20mbit/sec you can do quite s…

> self hosting a website from home in 2023 is as easy as it was in 2003. Get a DDNS, do the NAT port forwarding Did they have CGNAT in 2003? Because that breaks everything.

Even from the client side, CGNAT can break a lot of things. I'm very glad that my mobile provider gives me IPv6 as well - that allows me to get to my home systems without any NAT in the way. Even hotspot clients get an IPv6.

Of course, IPv6 is its own can of worms, but (cross my fingers) it's working for me.

Re: Self hosting in 2023

#63

> if you want to Dockerize it, then Docker related stuff is required i.e. Kubernetes Yeah... I'm not surprised the author gave up on it, but you absolutely do not need to use k8s if you're dockerizing something like a blog. I'm a little baffled at this sentiment.

Yeah. Maybe I phrased it badly but I meant like more complicated apps than a blog :D

Ah, gotcha! Even then, I've found i've gotten a pretty decent distance with docker-compose before k8s sounds like an attractive (or least bad) proposition

Re: Self hosting in 2023

#64
post #36

I'm still not convinced that self hosting is cheaper though. Where I live, both the electric grid and Fibre connections are unreliable, and the ISP charges about $3/month for a static IP. Assuming 2.5W for a RPi, it takes 1.8kWh a month, costing around $0.25 for electricity. This also has the downside of using residential IPs, having to deal with CGNAT/NAT if the ISP has no static IPs, exposing your home IP, slow dis…

Costs for hosting a static site or something with minimal computation is down to 0 at this point using any one of a dozen cloud/edge providers, so it's hard to compete with them on the basis of cost. The arguments for self hosting are really about having full control over your service stack.

Re: Self hosting in 2023

#65

Earlier quoted context omitted.

I have a 32 GB SD card it's running on it no problem. It currently takes like 4 GB (it can store previous docker images for speeding up builds and allowing auto rollback).

Thanks! That sounds much more reasonable. I wonder why they put 30 GB as the "Minimum required resources"...

Linux is really bloated these days. I am confident you could self host a decent website on OpenBSD with less than a GB of disk space and several GB of RAM. It is really incredible to me how in 2023 we are doing basically nothing that could not be done in 2013 but it takes an order of magnitude more computing power. Serving a medium size website is not really that complicated unless you are hosting a bunch of videos or whatever.

Stories like these just go to show me how much fat there is in Tech. The sector is in for a sharp reality check. You don't need 10s of gigs of RAM and 20 cores to host your blog or small business e-commerce site. But if you use the latest bullshit framework then maybe you do...

Re: Self hosting in 2023

#66

I'd never heard of Coolify, but it looks like what I've been searching for, i.e. an all-in-one solution for hosting stuff on a VPS (or Pi). But the docs [1] say it requires a minimum of 30 GB of disk space. Does anyone know if that is accurate? What could possibly be taking up that 30 GB if all I want to do is host a static site and maybe Deno or Node? I'm fairly certain I set something similar up in the past on a mu…

You can also check out CapRover, similar self-hosted PaaS like Coolify but simpler to set up and manage in my opinion: https://caprover.com/

Re: Self hosting in 2023

#67

Self hosting is really cool. However when it comes to static hosting, apart than keeping your data at home and having fun setting up servers, I don't really see the point when there's so many free good options. I use CloudFlare Pages for my blog, their integration with GitHub is flawless and you get to host your website at edge for free. When I need to host dynamic content, another good option is CloudFlare Tunnels (…

CloudFlare is a MITM against its clients, by design. Everyone is good when things are good, but when trouble comes ..

Re: Self hosting in 2023

#68
I'm all for self-hosting and run a few services on my LAN, but would never allow HTTP traffic from the internet to enter my network. If you've ever seen a public nginx log, you'll know it constantly gets hit by all kinds of bots and vulnerability scanners. No matter how secure and isolated I make the web server, I just don't want to see that traffic, nor expose my home IP to further scrutiny.

It's trivial to host a static site on someone else's infrastructure for very cheap or free, and you get to benefit from CDNs if you need it. I don't see what you would gain from doing this from your home network.

Re: Self hosting in 2023

#69
post #57

I'd never heard of Coolify, but it looks like what I've been searching for, i.e. an all-in-one solution for hosting stuff on a VPS (or Pi). But the docs [1] say it requires a minimum of 30 GB of disk space. Does anyone know if that is accurate? What could possibly be taking up that 30 GB if all I want to do is host a static site and maybe Deno or Node? I'm fairly certain I set something similar up in the past on a mu…

If you don't need/want a UI then Dokku is another option. It is more mature with things like built-in backups for the database. I've been a happy user for many years now. Coolify seems nice as well though. https://dokku.com/

Dokku was my Plan A :)

Re: Self hosting in 2023

#70
post #16

The blog that you are currently reading has a perfect PageSpeed score 100 / 100. Unfortunately, no it doesn't. The page that has this blog post scored 95 in performance for mobile in one run and 86 in the next. It scored 91 for desktop. They'd get a higher score by adding text compression and by serving static assets (all of them?) with an efficient cache policy.

Wait how do you add text compression?
Post reply on HN