un_ax
@un_ax@lemmy.today
This is a remote user, information on this page may be incomplete. View original ↗
- Comment on what's the simple way to map services to subdomains instead of specifying the port number? 1 day ago:
If they’re just internal the simplest way is to add another IP on the same interface to whatever is serving your service, then bind the service to that IP and add the entry in DNS.
If for some reason you want to keep everything hosted on one IP, for a reverse proxy, caddy is pretty simple. An example caddyfile would be:
http://service1.devicename.lan/ { reverse_proxy 1.2.3.4:9005 } http://service2.devicename.lan/ { reverse_proxy 127.0.0.1:1234 }
This would also allow you to set https in the future using ACME (dns method if internal only) or your own CA / custom cert.