feat(kv): add whitelistSourceRange configuration.
This commit is contained in:
parent
3d47030349
commit
f7ed4a5805
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
|
||||||
|
{{$whitelistSourceRange := SplitGet $frontend "/whitelistsourcerange"}}
|
||||||
|
whitelistSourceRange = [{{range $whitelistSourceRange}}
|
||||||
|
"{{.}}",
|
||||||
|
{{end}}]
|
||||||
|
|
||||||
{{range $route := List $frontend "/routes/"}}
|
{{range $route := List $frontend "/routes/"}}
|
||||||
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
|
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
|
||||||
rule = "{{Get "" $route "/rule"}}"
|
rule = "{{Get "" $route "/rule"}}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue