114
submitted 2 years ago* (last edited 2 years ago) by lena@gregtech.eu to c/selfhosted@lemmy.world

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
[-] Hawk@lemmynsfw.com 4 points 2 years ago

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

[-] Semjaza@lemmynsfw.com 1 points 2 years ago

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?

[-] Hawk@lemmynsfw.com 3 points 2 years ago

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.

[-] Semjaza@lemmynsfw.com 1 points 2 years 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.

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

Selfhosted

63558 readers
1056 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS