Wildcard CNAME pointing to your reverse proxy who then figures out where to route the request to? That’s what I’ve been doing - this way there’s no need to ever update DNS at all :)
I find the path a bit clunky because the apps themselves will oftentimes get confused (especially front-ends). So keeping everything “bare” wrt path, and just on “separate” subdomains is usually my preferred approach.
suicidaleggroll@lemmy.world 3 weeks ago
Why are you having to update your DNS records when you add a new service? Just set up a wildcard A record to send *.myserver.com to the reverse proxy and you never have to touch it again.
Scrath@lemmy.dbzer0.com 3 weeks ago
Not OP but a lot of people probably use pi-hole which doesn’t support wildcards for some inane reason
Croquette@sh.itjust.works 3 weeks ago
That’s my case. I send every new subdomain to my nginx IP on pi-hole and then use nginx as a reverse proxy
Scrath@lemmy.dbzer0.com 3 weeks ago
That wasy exact setup as well until I switched to a different router which supported both custom DNS entries and blocklists, thereby making the pi-hole redundant
Klajan@lemmy.zip 2 weeks ago
It does support it, you just have to add it to dnsmasq. I have it Setup under
misc.dnsmasq_lineslike so:Then I have my proxied service reachable under
service.proxy.example.compaequ2@lemmy.today 1 week ago
Because I’m an idiot. 🤦 Thanks!