Live data from Hacker News

Ask HN: How can a total beginner start with self-hosting?

news.ycombinator.com

191–194 of 194 posts

Re: Ask HN: How can a total beginner start with self-hosting?

#191
post #63

* Buy a domain as Domain * Buy a Asustor AS5304T as NAS * Setup CloudFlare on Domain * Setup services as docker containers on NAS * Setup CloudFlare tunnel into NAS docker services with auth in CloudFlare * Enjoy services. Note, if any of that sounds hard I must kindly point out that you're playing a risky game trying to do all this yourself securely and should evaluate whether it's easier to just pay a service for a…

Can you explain your second last star?

I plan to write a blog about this. But the gist is that CloudFlare lets you host a service locally which creates a port tunnel between a domain on their platform and your box. This handles a lot of things, such as 2-factor auth, floating-IPs and TLS. So you visit "home-git.example.com" and CloudFlares routes that to your homebox.

Re: Ask HN: How can a total beginner start with self-hosting?

#192

Earlier quoted context omitted.

> Put your other services behind that proxy, and have them listen on 127.0.0.1 and not 0.0.0.0 Apologies for this newb question, but if you will be adding a proxy, aren't you required to bind it to 0.0.0.0, since if you bind it to 127.0.0.1, only a request within the service's host will be able to receive a response? I'd like to know what I'm misunderstanding here.

They're saying bind the services to localhost so they're only accessible via the proxy. "Put your other services behind that proxy, and have [the services] listen on 127.0.0.1 and not 0.0.0.0"

Ah I see, I assumed it would be a multihost setup.

Re: Ask HN: How can a total beginner start with self-hosting?

#193

For photos, Synology has a “moments” app which you can download on your iPhone and will back up photos to your NAS. The only catch is that you have to manually open it to back up the photos, but I have found it to be the easiest way to get photos from my phone to the synology.

Hm. In my experience, the Synology apps (client and server both) are ghastly. And I'm snobby about non-free software. Better not to cut off my nose to spite my face, though, right? I suppose a non-Apple but closed/proprietary solution is a step in the right direction...?

I feel ya, it just worked well enough my use case of “back up phone photos directly to NAS” in a very frictionless way.

That is to say it’s not the best app, but it works enough for me.

Re: Ask HN: How can a total beginner start with self-hosting?

#194
post #55

I suggest installing Debian or Ubuntu on the NAS so that you will be familiar. Then install all the services on that NAS box. Next step is to learn iptables and make your own router. Could make the NAS into a router if it has two or more network ports. A router is just some iptables commands.

Of course, iptables is an older syntax, since replaced by nftables. Learning both isn't too hard. The easiest fw is the Uncomplicated Firewall (UFW) which is also probaby worth learning for completeness.
Post reply on HN