2016-02-02 17:03:40 +00:00
|
|
|
[backends]{{range .Nodes}}
|
2016-04-08 13:08:28 +00:00
|
|
|
[backends.backend-{{getBackend .}}.servers.{{.Service.Service | replace "." "-"}}--{{.Service.Address | replace "." "-"}}--{{.Service.Port}}]
|
|
|
|
url = "http://{{.Service.Address}}:{{.Service.Port}}"
|
2016-02-02 17:03:40 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
[frontends]{{range .Services}}
|
|
|
|
[frontends.frontend-{{.}}]
|
|
|
|
backend = "backend-{{.}}"
|
|
|
|
passHostHeader = false
|
|
|
|
[frontends.frontend-{{.}}.routes.route-host-{{.}}]
|
2016-03-27 00:05:17 +00:00
|
|
|
rule = "{{getFrontendValue .}}"
|
2016-02-02 17:03:40 +00:00
|
|
|
{{end}}
|