traefik/templates/ecs.tmpl

18 lines
559 B
Cheetah
Raw Normal View History

2017-01-05 14:24:17 +00:00
[backends]{{range .Instances}}
[backends.backend-{{ .Name }}.servers.server-{{ .Name }}{{ .ID }}]
url = "{{ .Protocol }}://{{ .Host }}:{{ .Port }}"
weight = {{ .Weight }}
{{end}}
[frontends]{{range filterFrontends .Instances}}
[frontends.frontend-{{ .Name }}]
backend = "backend-{{ .Name }}"
passHostHeader = {{ .PassHostHeader }}
priority = {{ .Priority }}
entryPoints = [{{range .EntryPoints }}
"{{.}}",
{{end}}]
[frontends.frontend-{{ .Name }}.routes.route-frontend-{{ .Name }}]
rule = "{{getFrontendRule .}}"
{{end}}