Live data from Hacker News

Self hosting in 2023

grifel.dev

171–180 of 307 posts

Re: Self hosting in 2023

#171
He did mention dynamic DNS, but that’s really only ok (in the US at least) if you’re willing to to be down did a few minutes every day, and as long as you get hardly any traffic. Even with your 300 (100)mbps fiber connection, you’ll only get 5-10mbps upload, and only if you have virtually no incoming traffic. It’s (barely) ok for zoom or counterstrike, but you’ll be blocked for hosting a web server. The days of being able to self host are long gone.

Re: Self hosting in 2023

#172

Self hosting is appealing but I’m worried about exposing my home IP to the world. Is this something to be worried about

Open only the minimum ports that you need (eg. only 80 & 443 for a web server). Run simple software (eg. nginx) and keep it up to date. Minimise the impact of searching bots (eg. fail2ban). Avoid running scripts (eg. take care with php). And your server will be more secure than your modem (touch wood)!

Re: Self hosting in 2023

#173

Self hosting is appealing but I’m worried about exposing my home IP to the world. Is this something to be worried about

Host your DNS on 3rd party provider like Cloudflare and proxy all http requests. I've got traffic from all foreign countries turned off from them since I'm not an international business. I imagine you can probably configure your server to only accept connections from cloudflare if you're ultra paranoid.

Can you "proxy proxy?"

My setup has nginx config files for each of the subdomains, each of which does a proxy_pass to some port for whatever the service is. Then my server box hosts like 20 different services, all of which right now I just point to from google domains using dynamic dns.

So instead I would have requests go to... what, an nginx I host on cloudflare?

Re: Self hosting in 2023

#174

I see a baby flying out of the bathtub here. You can still use NextJS - just get it to prerender the entire site statically. Then you get the plus sides of using NextJS, but can take your static ZIP file of files to any host you like, or self host. You then get, for example, an HTML file, with all the elements ready on page load, which can be 'rehydrated' when React kicks in for deep functionality and interactivity.

Can you explain this please ?

I have a netxjs based discussion forum in development. Is it as straightforward as issuing a command to pre-render and then the site re-hydrates via Apollo on it's own ?

Re: Self hosting in 2023

#175
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?

Re: Self hosting in 2023

#176
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?

At least in France, it's very common. I'd say symmetric is the exception.

Re: Self hosting in 2023

#177

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

Once you get into dozens of pods with multiple services with complex configuration, need to reliably orchestrate the order in which those services come up and need to use shared nothing secrets, Kubernetes starts to pay off these days, thanks to the number of handy recipes and playbooks available after searching through all the spam and marketing fluff.

Re: Self hosting in 2023

#178

Earlier quoted context omitted.

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

I wish I could get both. Alas, I’m not behind a CGNAT and getting IPv6 would require giving that up :/

Re: Self hosting in 2023

#179
post #45

I really wish someone could convince me self hosting is worth it but more often than not it just seems like busywork. Do you really need to self host your static website? There is no real privacy gained and probably some security lost. Then you get into hosting more complicated apps, email, etc, and making sure you can access them from anywhere at any time and it just doesn't seem worth it to me.

If you live in a country like the United States with strong legal protections then they cannot make you unlock your devices to gain incriminating evidence as it's a fifth amendment violation. Depends on the jurisdiction. As long as you don't do any biometric Id and limit it to passwords they cannot make you verbalize or write down the password to unlock the device.

Moreover, no one can seize or examine your data without being a criminal. On the other hand, Google et al do this every day.

You may not care but these are real privacy gains

Re: Self hosting in 2023

#180

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.

You don’t get perma-banned from your ISP for getting malware. That’s pure FUD. Far more people (at least 2 orders of magnitude) end up infected with malware and become members of botnets from just clicking dumb shit. They don’t get banned from the ISP either.

But you will get banned from your isp if they find out you are self-hosting a blog and photo album shared with family and friends.
Post reply on HN