From 1c5bf6a52b9cc1abf41128ea513fcef125fc4245 Mon Sep 17 00:00:00 2001 From: James Muscat Date: Wed, 21 Dec 2022 22:36:14 +0000 Subject: [PATCH] Correctly include `auth` middleware on `api` router. Resolves #5536. --- plugins/traefik-vhosts/templates/compose.yml.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/traefik-vhosts/templates/compose.yml.sigil b/plugins/traefik-vhosts/templates/compose.yml.sigil index 8398a9114..65f88dc43 100644 --- a/plugins/traefik-vhosts/templates/compose.yml.sigil +++ b/plugins/traefik-vhosts/templates/compose.yml.sigil @@ -31,7 +31,7 @@ services: - "traefik.http.routers.api.entrypoints={{ if $.TRAEFIK_LETSENCRYPT_EMAIL }}https{{ else }}http{{ end }}" {{ end }} - - "traefik.http.routers.middlewares=auth" + - "traefik.http.routers.api.middlewares=auth" {{ if $.TRAEFIK_BASIC_AUTH }} - "traefik.http.middlewares.auth.basicauth.users={{ $.TRAEFIK_BASIC_AUTH }}" {{ end }}