From cbc40e2f8268e3e31be23c597dbc0e9b18a84c6c Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Mon, 23 Dec 2019 17:22:24 -0500 Subject: [PATCH] Fixed BasicAuth on dashboard --- roles/traefik/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/traefik/tasks/main.yml b/roles/traefik/tasks/main.yml index bc785ee..8e6eedc 100644 --- a/roles/traefik/tasks/main.yml +++ b/roles/traefik/tasks/main.yml @@ -21,8 +21,9 @@ - name: "traefik-net" labels: traefik.http.routers.traefik.rule: "Host(`{{ traefik_domain }}`)" + traefik.http.middlewares.auth.basicauth.users: "{{ traefik_auth }}" + traefik.http.routers.traefik.middlewares: "auth@docker" traefik.http.routers.traefik.service: "api@internal" - traefik.http.middlewares.traefik.basicauth.users: "{{ traefik_auth }}" traefik.docker.network: "proxy_traefik-net" traefik.enable: "true" volumes: