Live data from Hacker News

Self hosting in 2023

grifel.dev

301–307 of 307 posts

Re: Self hosting in 2023

#301
100% agree that people should consider self-hosting. just be mindful of for what purposes. let me elaborate:

if all you want is a simple static blog, i find little to no reason behind going beyond github pages.

for self-hosting some cloud services, go for self-hosting BUT don't expose it to the internet willy-nilly. rather use tailscale or something and access it behind a vpn. if you really want to offer a public utility to others by running it in your household, it is often not worth the tradeoffs with making it secure enough.

Re: Self hosting in 2023

#302

Earlier quoted context omitted.

> Can't do http challenges because my ISP blocks port 80 inbound. My ISP also put me behind CGNAT, which effectively meant that all of the inbound traffic got dropped. I worked around that by getting the cheapest VPSes that I could find and then setting up WireGuard and simply forwarding the traffic to my homelab servers. So I got all of the compute that I have available locally, all of the RAM and all of the cheap H…

I don't need port 80 now that DNS challenges are easily automated. Port 443 is open, so that's fine. Also, if I have a VPS, why not just serve from the VPS?

[deleted]

Re: Self hosting in 2023

#303
post #77

Not sure why you'd self-host a public site from home when you can get a VM from https://www.hetzner.com/cloud for € 4.81 /mo (1vCPU / 2GB RAM / 20 TB bandwidth) with much better internet access. Residential internet connections are more unreliable, have poor upload speeds and requires running a server 24/7 with ongoing electricity running costs. Or if it's a static rendered website you can publish on GitHub Pages for…

> if it's a static rendered website you can publish on GitHub Pages for free

Reminder that if you are going to do this, then it has to lie within the subset of uses deemed acceptable by the GitHub terms, which forbids hosting on GitHub Pages for e.g. e-commerce or any other business reasons; GitHub Pages is not a 1-to-1 substitute for e.g. Cloudflare Pages or Netlify.

Re: Self hosting in 2023

#304
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…

I use DDNS with Cloudflare, which offers free DNS. I built an open source Windows client for this (could be cross-platform, just haven't bothered yet).

https://github.com/drittich/DnsTube

Re: Self hosting in 2023

#305

> a cheap UPS to keep it running in case of power outage (which happened once in the past year, so it might be a bit overkill). I don't think this is overkill, I think it's necessary. A UPS is pretty cheap compared to the completely-uncontrollable chance of losing power in the middle of working on something . Sure, there's autosave and most things are relatively recoverable, but this is just such a cheap investment (…

I used to use UPSes at home, which protected me from a handful of power outages.

However, those lead acid batteries don't last forever, and when they fail you're worse off than using a dumb regular surge protector. Now you have to replace and responsibly recycle the battery.

For me that e-waste became impossible to justify. A couple of power outages a year is completely acceptable for most home servers.

Re: Self hosting in 2023

#306
post #252

Earlier quoted context omitted.

> I also think it's perfectly fine if my site is down for a day or so because I'm away on travel and it's gone offline. 89.9999% has five nines as well. I think this is the key takeaway: host at home unless you want good uptime. I don't host from home when I want the page to be available even if: 1. There's a power outage at my home 2. I need to e.g. change a lightbulb, so I have to turn off the power (and therefore…

> host at home unless you want good uptime. It doesn't even really take much to get 99.999% uptime from a home server. I have my server, cable modem, router, and firewall plugged into a small UPS that can keep everything going for about 30 minutes if the power goes. I've never had downtime due to power interruptions. If I lived in an area where the power was less reliable, I'd use a bigger UPS. In order for someone t…

You realize that 99.999% uptime is 6 minutes of downtime a year? How is your internet even that stable? And do you never restart the machine?

Re: Self hosting in 2023

#307
> I’ve bought a domain (grifel.app) on Google Domains. I use it because they have all of the extensions like app and dev, don’t do much marketing BS

They will also flush everything connected to your Google account down the drain the moment their AI decides you violated some of their terms of service. With no possibilty to restore or recover.

Post reply on HN