Hi.
We're using Consul Catalog for routing and Consul K/V for doing certs. Our tags in Catalog look like so:
tags = [
"mortar-static",
"traefik.enable=true",
"traefik.http.routers.mortar-static-http.rule=Host(`mortar-static.service.restoffqdn`)",
"traefik.http.routers.mortar-static-http.entrypoints=web",
"traefik.http.routers.mortar-static-http.middlewares=mortar-static-http-redirector",
"traefik.http.middlewares.mortar-static-http-redirector.redirectscheme.scheme=https",
"traefik.http.routers.mortar-static-https.rule=Host(`mortar-static.service.restoffqdn`)",
"traefik.http.routers.mortar-static-https.entrypoints=websecure",
"traefik.http.routers.mortar-static-https.tls=true",
]
And our certs are served via a wildcard signed by our internal CA by default from Consul KV:
kv/traefik/tls/certificates/0/certfile
kv/traefik/tls/certificates/0/keyfile
That all works by default. I am now trying to figure out how to get a second service using a different, external certificate.
I'm kind of lost going through the documentation how I would tell traefik to use a different cert in this case.