How to setup basic auth globally?

I'm using traefik 2.1 and would like to setup basic auth for all containers, in 1.x it was easy to do:

    [entryPoints.http.auth.basic]
    usersFile = "/etc/traefik/.htpasswd"

But how to setup it in 2.x? I'd like to avoid inserting code in all my docker-compose.yml files - got a lot of them.

Hello,

currently it's not possible, you have to set the basic auth on all routers that you want to protect.