Easy way to enable HTTPS for all routers?

Is there an easy way to enable HTTPS for all routers?
I'm using Traefik v2 from the command line, using a file configuration provider. We have a bunch of routers defined, and want an easy way to enable and disable HTTPS for all of them. So far, from what I can see, I would have to add an empty "tls:" section to each router.

What I'd really like is to be able to turn TLS on for all routers in one place. So either something in the static configuration, or one file I can create in the dynamic configuration directory that will enable TLS for all routers.

Any pointers?
Thanks.

Hi @tomqwpl,

Maybe that you can set --entrypoints.websecure.http.tls.certResolver=leresolver. Setting a certificate resolver on the entrypoint itself can help your case.

Besides, if you want to try a working configuration with docker-compose, take a look at my repository where i got all services to be routed both on 80 and 443 with TLS termination on 443.