Live data from Hacker News

Self hosting in 2023

grifel.dev

261–270 of 307 posts

Re: Self hosting in 2023

#261

I pay a data center a hundred or so dollars a month and put a server running nginx and my nixos mailserver. No downtime. Power is guaranteed with an sla and it's faster than anything. Why bother self hosting at home when you can just do it for real by paying the same price as an internet connection?

Because I will be paying for an internet connection regardless and my Pi hasn't had any downtime for the last two years, and its 8 years since I last had a power cut.

Re: Self hosting in 2023

#262

Man, I feel like sometimes people forget the 1990s. I was there, running an Apache service and whatnot. It sucked. Cost a lot of time, and really, fiddling with firewalls and Apache configuration didn't teach me much. All hail PaaS and the like. I'm not looking back.

I find it easier with Nginx. Certainly feels easier than I remember back around 1999 with Apache. Also there's way more information out there on how to configue and set up than there was twenty years ago.

Re: Self hosting in 2023

#264
post #100

Earlier quoted context omitted.

I mean is scp any more difficult?

Or git push if you are using GitHub pages?

It’s strange to compare self hosting and GitHub pages.

In most case the main factors to choose self hosting are independence, fun and learning by tinkering. That’s three items that GitHub Pages doesn’t provide.

Re: Self hosting in 2023

#265

Self-hosting is weird. I hear a lot of people say it's so much work, but I put like an hour a month into my server at most. I think it's mostly fine from an administrative standpoint, as mentioned elsewhere, not much has actually changed from 2003. You definitely don't need kubernetes. If anything, I think most of what's changed since then is that there's been a flood of bad sysadmin advice making people believe they…

It's a broad church I think, it depends on what you're self-hosting and why. Email is more work than Nextcloud, and an hour or two of maintenance work feels different when it's a hobby you're doing on a quiet weekend than when you're busy with life and some essential service has gone down unexpectedly. Security, as well, is a very deep rabbit hole that can be hard to really get your head around unless you have specif…

> What do you mean not having to worry about bills? Presumably flooring your CPU for 200 hours would generate a hefty enough electricity bill or am I misunderstanding?

Not as much as you'd think. Looking at my power bills, the difference between a month with a relatively idle server, and a month with a very busy server somewhere around 30 KWh. As a year average, the server has added about 60 KWh to my consumption.

Re: Self hosting in 2023

#266
post #252

Earlier quoted context omitted.

This is sort of true of owning a car or a home or basically anything. Of those things, my server requires by far the least amount of maintenance (even considering needing to take a day to do something more invasive maintenance once two years or so). 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 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…

A UPS solves a lot of these problems. You may lose availability during a power outage, but you don't lose uptimes, and those hard shut-offs are nasty for harddrive longevity.

Re: Self hosting in 2023

#267
post #78

Earlier quoted context omitted.

You can move ssh to a different port.

Anyone who thinks they need to move ssh to a different port likely doesn’t have their ssh security configuration setup optimally.

There's other reasons to use a different port. I move it to cut down on the failed login attempts (yes they'll never succeed given I only allow keys) but they clutter the log so I can't tell if I'm actually being targeted or not. On an obscure port if I do see attempts I know something serious is going on.

Re: Self hosting in 2023

#268

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?

You are correct that a CGNAT doesn't give you a unique IP address, and you have no control over port forwarding. My ISP put me behind a CGNAT right while I was working on adding letsencrypt support to ZitaFTP Server (which requires the server to be internet accessible). They would have given me a static IP address if I paid them a lot more...

The solution is a tunnel between your machine and an external server with a static IP address. The external server will forward requests to your machine.

Cloudflare tunnel is an option (thanks watchdogtimer), and there's also a service called Ngrok. I took the most complicated option: setting up a reverse ssh tunnel to a VPN that I already had.

Re: Self hosting in 2023

#269

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 ..

True. Is there a Content Delivery Network (CDN) that isn't a MITM, though? Sitting between the client and server is how they work...

Re: Self hosting in 2023

#270
> a perfect PageSpeed score 100 / 100

Just used 10mins of my lunch break to go from 9x to 100 myself. Thanks for the reminder ;)

Post reply on HN