I created a short tutorial on using sub domains to access services hosted within my home network, thought I would share it here in case anyone finds it useful

This is the first time I've made a technical tutorial so apologise if there are mistakes/its confusing, feedback will be appreciated

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 10 months ago (2 children)

@JackDavies nice, thanks for sharing. This looks a lot like the setup I used to have until I decided I was not comfortable (nor experienced enough) having my Pi (and my whole network) exposed to the internet.A few tips/recommendations I can share from my experience:Namecheap includes free dynamic DNS hosting with all their domains, which means you can have your own domain and this reduces the chances of your sites being blocked due to others abusing free dynamic DNS services. You can get a cheap $2/year domain instead.For an even smoother TLS certificate experience, you can use Caddy, which is as easy to configure and run as Nginx, with the added benefit of automatic TLS certificate management.I know many people are not happy with Cloudflare, but their Zero Trust tunnel service is amazingly easy to use and covers 99% of use cases (I made up that number). Instead of exposing your entire network, you just make an outbound connection by running the cloudflared daemon inside your network and then create the subdomains by creating “apps.” No port exposing or routing.As for the post itself, I would only recommend replacing your mydomain.com examples with one of the official domains used for technical documentation: example.com, example.org, or example.net. These cannot be registered by anyone, which means you are not creating links to potentially dangerous sites.Good luck with your #selfhosting adventures!

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 10 months ago

    Thanks for the tips, I'll have a look at namecheap, I had the domain I've used rattling around for a while and wanted to do something with it

    I'll probably do something similar to that setup in the future, this was a quick fix

    I have updated the post to use example.com

  • source
  • parent
  • [–] 2 points 10 months ago

    I know many people are not happy with Cloudflare, but their Zero Trust tunnel service is amazingly easy to use and covers 99% of use cases (I made up that number)

    +1 for the evil Cloudflare Tunnels/Zero Trust. I don't go in blindly tho. Good points have been made on both sides of the conversation. Their free tier is very generous and I didn't need everything it offered, but it's there should the need arise.

    Namecheap.......You can get a cheap $2/year domain instead.

    That's what I did. It was less than $5 USD

  • source
  • parent