Comment on what's the simple way to map services to subdomains instead of specifying the port number?

ikidd@lemmy.dbzer0.com ⁨2⁩ ⁨days⁩ ago

In OpenWRT, add an entry in DNSmasq under General - Addresses of /myfakecomain.com/<serverIPAddress This will make every variation of service.myfakedomain.com resolve to that address (assuming you have the hosts on your network obtaining DNS via the OpenWRT router).

Image

Then set up a reverse proxy on that server or whereever you’re directing that wildcard. If you have a lot of docker stacks on that machine, I’d suggest Traefik because you can just configure the compose files with the hostnames you want for that service, and it’ll update Traefik to redirect that hostname to that container. You can also add bespoke entries to Traefik for non-container services, or other services on your network to redirect towards.

original
Sort:hotnewtop