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).
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.
lemmyvore@feddit.nl 1 day ago
Also, to create the reverse proxy, the most simple setup is to install Caddy and write something like this to its config file (
Caddyfile):