feat(kv): add whitelistSourceRange configuration.

This commit is contained in:
Fernandez Ludovic 2018-01-03 16:30:37 +01:00 committed by Traefiker
parent 3d47030349
commit f7ed4a5805

View file

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