I have an external custom domain, mydomain.com, which points to my public IP address, which is dynamically updated from my server, which has my reverse proxy installed (Caddy) that tells the traffic where to go based on the subdomain.
Ports 80 and 443 are forwarded at the router to the server, and I have all the various CNAME records set up with the registrar for the various subdomains that correspond to my reverse proxy config (Caddyfile).
All of this works beautifully when I’m not on my LAN (or when I’m on my LAN using Tor or a VPN); for example, going to emby.mydomain.com brings up Emby, going to tv.mydomain.com brings up Sonarr, etc.
When I’m on my LAN, all those URLs redirect to my router login page. I cannot for the life of my figure out how to get this to work. I’m also using unbound, in addition to pihole and the Caddy reverse proxy.
I do not care about accessing it via my-server-name. I want to use the custom domain.
Any help is much appreciated.