Add an ECS provider
This commit is contained in:
parent
00de73bdfc
commit
8d3c77a0b9
10 changed files with 820 additions and 4 deletions
17
templates/ecs.tmpl
Normal file
17
templates/ecs.tmpl
Normal file
|
@ -0,0 +1,17 @@
|
|||
[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}}
|
Loading…
Add table
Add a link
Reference in a new issue