Live data from Hacker News

Self hosting in 2023

grifel.dev

51–60 of 307 posts

Re: Self hosting in 2023

#51
post #24

I self host and use a RPi 3B+. Actually I have a total of 3B+ but only one is actually doing anything for the website. I have my database running on a RPi 4b with 4gb. I could easily consolidate to a single Pi but early on I had different plans for each one but just keep 'em running for no good reason. I'm fortunate in that I have a static IP. Initially I was using NOIP and it worked great but then noticed my IP addr…

how would noip work if it didn't expose your ip? This statement confuses me. It's funny how used laptops that are 10x faster than an rpi4 are about the same price. Obviously they use more power though :)

At the time I set it up I didnt know what I was doing or how it all worked, etc etc, so that is where the statement about it exposing my IP came from. It has been so long that when I first set it up I may have known it was exposed but didnt care. As time went on I just didnt like knowing it was exposed. Why? I just prefer it not be. Not that it couldnt be found I am sure

And you are absolutely right about the laptops and I have 2 right now that are just collecting dust. But currently I have no reason to change to a laptop. It is kind of like driving a nail in the wall with a sledge hammer, sad to say a laptop is more than I need in a server at this moment. The only benefit I get from a laptop for my current needs is a built in battery backup.

Re: Self hosting in 2023

#52
post #44

Earlier quoted context omitted.

I do similar with the VPS and reverse proxy, but use a wireguard tunnel from my home device to the VPS to allow nginx to hit my local device instead of forwarding a port. Avoids punching a hole in your local network, avoids issues when your home IP changes, and ensures nothing ends up going over the internet in the clear.

Ah very nice. I may do that instead. Thanks for the tip

I'm doing that as well. I'm using an IONOS VPS since they have a DC close to my ISP's upstream, so less added latency than most VPS's.

Re: Self hosting in 2023

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

Re: Self hosting in 2023

#54

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.

Indeed. My friend had a crypto miner put on his self-hosted server.

This was merely weeks after telling him to switch to Tailscale, but it was a great learning experience.

Re: Self hosting in 2023

#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/

Re: Self hosting in 2023

#58

> 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

Re: Self hosting in 2023

#59
post #21

Earlier quoted context omitted.

Having a server under your hand and deploying other things than webpages to automate your infra and life is a very underrated experience. I don't host my pages myself, but the server(s) I have power the invisible infrastructure which accelerates my life a lot.

Infra such as? Just interested out of curiosity. You can keep it vague if you prefer…

Well, nothing to keep hidden. DNSMasq, Syncthing, a tool which I developed that sends e-mails when things go wrong, etc.

The resulting infra is hidden, because it doesn't flow through any popular services or something. You can argue that Syncthing is using public discovery servers, but you can put it on a small VPS, and you'll have a complete off-the-grid installation of it, too.

I host it on an OrangePi zero, so it's unobtrusively small. It just vanishes somewhere at home.

Re: Self hosting in 2023

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

That is not "easy". If it was, no one would be using cloud hosted sites like carrrd or squarespace or wix or whatever
Post reply on HN