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:
parent
3d47030349
commit
f7ed4a5805
@ -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"}}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user