feat(constraints): Supports kv stores backends
This commit is contained in:
parent
009057cb87
commit
013808956c
4 changed files with 146 additions and 4 deletions
|
@ -28,11 +28,13 @@
|
|||
{{end}}
|
||||
|
||||
{{range $servers}}
|
||||
{{if ne (CheckConstraints "" . "/tags") "false"}}
|
||||
[backends."{{Last $backend}}".servers."{{Last .}}"]
|
||||
url = "{{Get "" . "/url"}}"
|
||||
weight = {{Get "" . "/weight"}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
[frontends]{{range $frontends}}
|
||||
{{$frontend := Last .}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue