1
0
Fork 0

feat(constraints): Supports kv stores backends

This commit is contained in:
Samuel BERTHE 2016-06-21 01:00:52 +02:00 committed by Emile Vauge
parent 009057cb87
commit 013808956c
No known key found for this signature in database
GPG key ID: D808B4C167352E59
4 changed files with 146 additions and 4 deletions

View file

@ -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 .}}