Live data from Hacker News

Self hosting in 2023

grifel.dev

121–130 of 307 posts

Re: Self hosting in 2023

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

Honestly a basic VPS is a lot easier to me than running a physical home server. Dirt cheap, never have to worry about power failures, dust, heat, home ISP being shitty, etc.

Re: Self hosting in 2023

#124
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 would argue it is much easier now. There are a ton of distributions who are catering for this use case, yunohost is probably the most well known one, but there are a lot more if you look on the awesome selfhosted list. I would also say that if you only want a static site the OPs setup is almost overkill. Just install caddy and a dyndns service. Takes care of the certificate for you and is super simple to setup.

FYI, Caddy has a DDNS plugin https://github.com/mholt/caddy-dynamicdns. Works with any DNS provider that has a Caddy DNS plugin which you'd typically use to solve ACME challenges, but instead it will set A/AAAA records.

Re: Self hosting in 2023

#125
post #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 s…

Put it behind cloudflare if you’re worried about it. It’s free and increases performance.

Re: Self hosting in 2023

#126
post #84

One thing to be mindful of is security. The last you want is for your setup to be compromised, be used to send spam/botnets and then getting perma-banned from your ISP. I would argue it's a lot less risky just to put your static site on S3/Github etc.

I was running a couple million page views/mo on a cluster of raspberry pis in my parents home a few years back. After some disruptions on my family's network I decided to setup a Wireguard VPN with Docker Swarm and a GCP instance to essentially route from GCP IP address -> Raspberry pi cluster such that my IP wouldn't get leaked and didn't have to worry about dynamic IP addresses Very hard to do and finicky to setup…

Why not sure cloudflare?

Re: Self hosting in 2023

#127
I’ve been using NextJS for a while and hosting the apps built with it on AWS with custom express servers. One day I’ve noticed that my servers are getting red-hot while doing almost nothing, and response times got huge. Long story short the library introduced a huge performance downgrade that was not caught by existing tests. Why so? Because benchmarks were using only Vercel’s (creators of NextJS) “Edge” infrastructure.

Impossible! I'm reliably informed that frameworks are "battle-tested" and I'm being cavalier by doing something simpler that's sufficient for my use case.

Re: Self hosting in 2023

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

> even Germany has average upstream speeds of 20mbit/second nowadays [1]

Is it common for EU countries to not have symmetric gigabit fiber?

Re: Self hosting in 2023

#129
post #119

One thing to be mindful of is security. The last you want is for your setup to be compromised, be used to send spam/botnets and then getting perma-banned from your ISP. I would argue it's a lot less risky just to put your static site on S3/Github etc.

If you're using a modern web server like nginx, then you have to really do something wrong to get hacked serving static files.

That's not really fair, zero days will always exist.

Re: Self hosting in 2023

#130

> 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 think a UPS a good idea for Raspberry Pis. They are rather sensitive to power transients, and anything that causes a crash and leaves the SD in a not-happy state means it won't boot! (A known issue with the Pi.)

I use a UPS and log2ram (which moves the most active directories to a RAM-disk) and have found the Pis to be perfectly fine home servers:)

Post reply on HN