Custom URL/Reverse Proxy w/ Local Access?

So I have my plex server sitting behind my OpnSense Firewall w/ HAProxy setup. Currently I am forwarding port 32400 through directly, but I would ideally like to stop doing that and reverse-proxy it. I, however, want to still use a direct connection when possible (e.g. on LAN, or via VPN, etc).

I know that I could setup a custom URL like plex.mydomain.com and use HAProxy to proxy that do the plex server, but my question is what happens from within the LAN? Does it still try to use that domain? Is there a good way to split it so that on LAN goes direct and outside goes through the HAProxy?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.