From 40b59da2249505898acdfb8fa7644caeb493c5c7 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 3 Jan 2018 16:32:11 +0100 Subject: [PATCH] feat(kv): add basicAuth configuration. --- templates/kv.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/kv.tmpl b/templates/kv.tmpl index 3d5e4398b..846db7567 100644 --- a/templates/kv.tmpl +++ b/templates/kv.tmpl @@ -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"}}"