From 5f3f01eb592a13de7edd2bc89ead33b42b0e0928 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 4 Jan 2024 11:27:11 +0100 Subject: [PATCH] Set realm for basic auth --- templates/config/basicauth.yml.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/config/basicauth.yml.tpl b/templates/config/basicauth.yml.tpl index bb51b14..ebae303 100644 --- a/templates/config/basicauth.yml.tpl +++ b/templates/config/basicauth.yml.tpl @@ -6,6 +6,8 @@ http: {{- range secrets "[[ .vault.prefix ]]kv/service/traefik/basicauth/" }} basicauth-{{ . }}: basicAuth: + realm: {{ . }} + removeheader: true users: {{- with secret (printf "[[ .vault.prefix ]]kv/data/service/traefik/basicauth/%s" .) }} {{- range $k, $v := .Data.data }}