feat(kv): add basicAuth configuration.

This commit is contained in:
Fernandez Ludovic 2018-01-03 16:32:11 +01:00 committed by Traefiker
parent f7ed4a5805
commit 40b59da224

View file

@ -65,6 +65,11 @@
"{{.}}",
{{end}}]
{{$basicAuth := SplitGet $frontend "/basicauth"}}
basicAuth = [{{range $basicAuth}}
"{{.}}",
{{end}}]
{{range $route := List $frontend "/routes/"}}
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
rule = "{{Get "" $route "/rule"}}"