I am running Traefik 2.6.1, serving many services from docker containers.
Majority is configured as follow:
docker1:
- "traefik.http.routers.${TAG}.rule=Host(`www.mydomain.com`) && PathPrefix(`/path1`)"
docker2:
- "traefik.http.routers.${TAG}.rule=Host(`www.mydomain.com`) && PathPrefix(`/path2`)"
- "traefik.http.routers.${TAG}.tls.options=noclientauth@file"
etc etc
Some of the services require a client certificate and others don't need a client certificate to get https access. I have a tls options defined as follow (removed some stuff not relevant for this topic):
tls:
options:
default:
clientAuth:
caFiles:
- /etc/traefik/certificates/ca.crt
clientAuthType: RequireAndVerifyClientCert
noclientauth:
clientAuth:
clientAuthType: NoClientCert
All works fine, except the noclientauth@file.
I get the following error in for some of the routers:
found different TLS options for routers on the same host www.mydomain.com, so using the default TLS options instead
It is pretty random for which router I get this error. When I stop one of the "offeding" docker container, the error appears for another router...
AFAIK, I don't have any overlapping routers.
Clueless..........