1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-19 18:50:12 +03:00

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