2015-09-10 14:14:08 +00:00
|
|
|
{{$apps := .Applications}}
|
2015-09-09 20:39:08 +00:00
|
|
|
[backends]{{range .Tasks}}
|
2016-01-20 18:55:10 +00:00
|
|
|
[backends.backend{{with index $apps 0 }}{{getBackend .}}{{end}}.servers.server-{{.ID | replace "." "-"}}]
|
2015-12-05 18:59:01 +00:00
|
|
|
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort . $apps}}"
|
2015-10-23 07:49:19 +00:00
|
|
|
weight = {{getWeight . $apps}}
|
2015-09-09 20:39:08 +00:00
|
|
|
{{end}}
|
|
|
|
|
2015-09-15 14:09:21 +00:00
|
|
|
[frontends]{{range .Applications}}
|
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
2016-01-20 18:55:10 +00:00
|
|
|
backend = "backend{{getBackend .}}"
|
2015-10-30 10:33:41 +00:00
|
|
|
passHostHeader = {{getPassHostHeader .}}
|
2015-12-05 18:02:39 +00:00
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}.routes.route-host{{.ID | replace "/" "-"}}]
|
2015-10-23 07:49:19 +00:00
|
|
|
rule = "{{getFrontendRule .}}"
|
|
|
|
value = "{{getFrontendValue .}}"
|
2015-12-05 18:59:01 +00:00
|
|
|
{{end}}
|