Set realm for basic auth

This commit is contained in:
Daniel Berteaud 2024-01-04 11:27:11 +01:00
parent d24ddc605d
commit 5f3f01eb59
1 changed files with 2 additions and 0 deletions

View File

@ -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 }}