I've been using Traefik with TrueNAS Scale, and would like to add a rule expose multiple IOT devices I have on my home network that will register .example.com where is unique to each device. They also use mDNS and .local on my home network. I would like to make it so that Traefik will route request arrive with host .example.com to .local on my home network.
The IOT devices should be setting up their own certs with letsencrypt for .example.com so I don't think Traefik needs to provide certs.
Can someone point me to documentation on this or get me started in the right direction?
This is possible with a dynamic config file, using routers and services, loaded in static config with provider.file. The target service can then be defined with loadbalancer.servers.url.
Thanks for the reply @bluepuma77, I'll check that out. Also, sorry I didn't see the OP got messed up, it should have been more like this: I've been using Traefik with TrueNAS Scale, and would like to expose multiple IOT devices I have on my home network that will register <hostname>.example.com where <hostname> is unique to each device. They also use mDNS and <hostname>.local on my home network.
I would like to make it so that Traefik will route request arrive with <hostname>.example.com to <hostname>.local on my home network.
The IOT devices should be setting up their own certs with letsencrypt for <hostname>.example.com so I don't think Traefik needs to provide certs.