1
0
Fork 0

Support traefik.backend for ECS

This commit is contained in:
hwhelan-CB 2018-07-04 08:22:03 -04:00 committed by Traefiker Bot
parent 04d8b5d483
commit 12c713b187
6 changed files with 491 additions and 19 deletions

View file

@ -762,7 +762,7 @@ var _templatesEcsV1Tmpl = []byte(`[backends]
{{end}}
{{range $index, $i := $instances }}
[backends."backend-{{ $i.Name }}".servers."server-{{ $i.Name }}{{ $i.ID }}"]
[backends."backend-{{ $serviceName }}".servers."server-{{ $i.Name }}{{ $i.ID }}"]
url = "{{ getProtocol $i }}://{{ getHost $i }}:{{ getPort $i }}"
weight = {{ getWeight $i }}
{{end}}