I have a gl-inet router on which I have an nginx config to send traffic to Nginx Proxy Manager and DDNS with cloudflare.
I’m trying to get some kind of local dns set up so that if I’m on the local network, traffic stays within the network. The problem that I’m running in to is SSL certificates. NPM is handling those and I thought that what I could do is go into the AdGuard Home config and add a dns rewrite to point to the router and traffic would flow as it normally does.
This DOES work, technically. traceroute shows only one hop for any of my subdomains, ie files.mydomain.com.
But I cannot actually get access in a browser because the ssl certificates are not set up.
It seems like options are: manually copy certificates from the server to the router (not ideal), or don’t do it at all. I notice that if I go to the service by ip address, it’ll change the address to the domain name. Eg going to 192.168.8.111:30027 -> files.mydomain.com.
This isn’t a HUGE deal, but it’s not preferable. How have you all solved this?
Asparagus0098@sh.itjust.works 1 year ago
You don’t need 2 reverse proxies as others have said. What I did is just add a DNS rewrite entry on my adguardhome instance to point my domain.tld to the LAN IP of my reverse proxy.
RagingHungryPanda@lemm.ee 1 year ago
Hmm, i may have to get my admin ui’s off of ports 80/443 and port forward with NPM on those ports instead. The reason I was using nginx on the router was so the server could keep the UI on the normal ports and Nginx elsewhere.
I think then I could remove the router Nginx entries and add the DNS rewrite
Asparagus0098@sh.itjust.works 1 year ago
Do you actually need to move the admin ui off of port 80/443 if you are just forwarding ports? I don’t know too much about port forwarding since I use Tailscale because of CGNAT.