For wildcard certificates you have to use:
- "traefik.http.routers.myrouter.tls.domains[0].main=*.foobar.com"