So maybe I am missing something obvious, but here goes:

I’ve got a small server at home, and I have simply.com pointing various domains to it. Works fine, nginx routs the traffic where it needs to go.

But whenever I am at home and connected to wifi I have to use the internal address and port to reach my server, e.g. 192.168.0.192:8096 for my Jellyfin server. If I use the public URL at home, i hit the login page to my router.

This is annoying when I use apps, as I need to switch between the public URL and the internal address as I come and go from my home…

What are my options for doing something about this? I want to use the public URL at home too…

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    24
    ·
    5 months ago

    You may have to set up split zone DNS so names resolve to private IPs when at home but resolve to public addresses when not home.

      • azron@lemmy.ml
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        This is what I do as well. I use terraform/tofu and add two entries whenever I add a new domain, one for my external provider and one for my pihole pointing at my internal IP for my home network.