1
0
Fork 0

Fix sticky sessions Docker/Marathon labels

This commit is contained in:
Emile Vauge 2016-09-28 13:28:20 +02:00
parent df225d9170
commit 291c3b6dbc
No known key found for this signature in database
GPG key ID: D808B4C167352E59
5 changed files with 64 additions and 72 deletions

View file

@ -15,7 +15,11 @@
amount = {{getMaxConnAmount . }}
extractorfunc = "{{getMaxConnExtractorFunc . }}"
{{end}}
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
url = "{{getProtocol .}}://{{getIPAddress .}}:{{getPort .}}"
weight = {{getWeight .}}
{{end}}
[frontends]{{range $frontend, $containers := .Frontends}}
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}