2015-09-10 16:14:08 +02:00
|
|
|
{{$apps := .Applications}}
|
2015-09-09 22:39:08 +02:00
|
|
|
[backends]{{range .Tasks}}
|
2016-02-12 14:45:36 +01:00
|
|
|
[backends.backend{{getBackend . $apps}}.servers.server-{{.ID | replace "." "-"}}]
|
2015-12-05 10:59:01 -08:00
|
|
|
url = "{{getProtocol . $apps}}://{{.Host}}:{{getPort . $apps}}"
|
2015-10-23 09:49:19 +02:00
|
|
|
weight = {{getWeight . $apps}}
|
2015-09-09 22:39:08 +02:00
|
|
|
{{end}}
|
|
|
|
|
2015-09-15 16:09:21 +02:00
|
|
|
[frontends]{{range .Applications}}
|
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}]
|
2016-02-12 14:45:36 +01:00
|
|
|
backend = "backend{{getFrontendBackend .}}"
|
2015-10-30 11:33:41 +01:00
|
|
|
passHostHeader = {{getPassHostHeader .}}
|
2016-06-06 22:30:23 +02:00
|
|
|
priority = {{getPriority .}}
|
2016-02-01 16:08:58 +01:00
|
|
|
entryPoints = [{{range getEntryPoints .}}
|
|
|
|
"{{.}}",
|
|
|
|
{{end}}]
|
2015-12-05 10:02:39 -08:00
|
|
|
[frontends.frontend{{.ID | replace "/" "-"}}.routes.route-host{{.ID | replace "/" "-"}}]
|
2015-10-23 09:49:19 +02:00
|
|
|
rule = "{{getFrontendRule .}}"
|
2015-12-05 10:59:01 -08:00
|
|
|
{{end}}
|