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}}]
|
||||
|
||||
{{$whitelistSourceRange := SplitGet $frontend "/whitelistsourcerange"}}
|
||||
whitelistSourceRange = [{{range $whitelistSourceRange}}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
|
||||
{{range $route := List $frontend "/routes/"}}
|
||||
[frontends."{{$frontendName}}".routes."{{Last $route}}"]
|
||||
rule = "{{Get "" $route "/rule"}}"
|
||||
|
|
Loading…
Add table
Reference in a new issue