mirror of
https://github.com/traefik/traefik.git
synced 2025-09-28 09:11:24 +02:00
feat(kv): add basicAuth configuration.
This commit is contained in:
parent
f7ed4a5805
commit
40b59da224
@ -65,6 +65,11 @@
|
|||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
|
||||||
|
{{$basicAuth := SplitGet $frontend "/basicauth"}}
|
||||||
|
basicAuth = [{{range $basicAuth}}
|
||||||
|
"{{.}}",
|
||||||
|
{{end}}]
|
||||||
|
|
||||||
{{range $route := List $frontend "/routes/"}}
|
{{range $route := List $frontend "/routes/"}}
|
||||||
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
|
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
|
||||||
rule = "{{Get "" $route "/rule"}}"
|
rule = "{{Get "" $route "/rule"}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user