Is there any way to protect a specific path like "/administrator" with an additional basic auth?
I have tried the following, but I can still access the /administrator path without a basic auth prompt.
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminauth.rule=(Host(`example.com`) && PathPrefix(`/administrator`))"
- "traefik.http.routers.adminauth.middlewares=basic-auth"
- "traefik.http.middlewares.basic-auth.basicauth.users=`test:$HMBon$.ql2SNMLwGOA8UBGl3gPd1`"
- "traefik.http.routers.site-ssl.entrypoints=https"
- "traefik.http.routers.site-ssl.rule=Host(`example.com`)"
- "traefik.http.routers.site-ssl.tls=true"
- "traefik.http.routers.site-ssl.tls.certresolver=http"
- "traefik.http.routers.site-ssl.middlewares=default@file"
- "traefik.http.routers.site-ssl.service=site-ssl"
- "traefik.http.services.site-ssl.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"