this post was submitted on 17 Feb 2025
113 points (97.5% liked)

Selfhosted

42687 readers
691 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have been self-hosting for a while now with Traefik. It works, but I'd like to give Nginx Proxy Manager a try, it seems easier to manage stuff not in docker.

Edit: btw I'm going to try this out on my RPI, not my hetzner vps, so no risk of breaking anything

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 days ago (1 children)

If you're just going to VPN in to your home network, I've found caddy to be the simplest.

[–] [email protected] 1 points 3 days ago (1 children)

I tried using PiVPN to route my phone's Internet access through my home network, but it kept breaking and I found I don't have a head for networks.

Would caddy be able to do that in an easier to maintain way?

[–] [email protected] 2 points 3 days ago (1 children)

Set up wireguard in a docker container and then forward the port to wireguard, the default container on docker hub is fairly straightforward and you can always ask me for help if you need :).

However, If you are using ipv4, you need to make sure that you're not behind a CG-NAT (If you think you might be, call your ISP and tell them you have security cameras that need to get out or something like that).

You could also try tailscale which is built using wireguard with nat-busting features and a bit easier to configure (I dont personally use it as wireguard is sufficient for me).

After that Caddy + DNSMasq will simply allow you to map different URLs to IP addresses

  • dnsmasq
    • will let you map, E.g. my_computer -> 192.168.1.64
  • Caddy (Or nginx, but caddy is simpler)
    • will let you map to ports so e.g.:
      • with DNS (DNSMasq as above)
        • http://dokuwiki.my_computer -> http://my_computer:8080
      • Without DNS
        • http://dokuwiki.192.168.1.64 -> http://192.168.1.64:8080

Caddy and DNSmasq are superfluous, if you've got a good memory or bookmarks, you don't really need them.

VPN back into home is a lot more important. You definitely do not want to be forwarding ports to services you are running, because if you don't know what you're doing this could pose a network security risk.

Use the VPN as the entry point, as it's secure. I also recommend running the VPN in a docker / podman container on an old laptop dedicated just to that, simply to keep it as isolated as you can.

Down the line you could also look into VLan If your router supports that.

I personally would not bother with SSL If you're just going to be providing access to trusted users who already have access to your home network.

If you are looking to host things, just pay for a digital droplet for $7 a month, It's much simpler, You still get to configure everything but you don't expose your network to a security risk.

[–] [email protected] 1 points 3 days ago

Thank you, that looks like a good set of hooks for me to get into at a weekend, child allowing.

I very much appreciate the guide. I'll let you know when I've had a fiddle.