commit 468cdf5c74b8df80fe6cc093feda84d124d47460 Author: Erin Dachtler <download333@gmail.com> Date: Mon May 30 17:21:50 2016 -0700 Documentation update commit bcbe622141fc333579177e056b49d418997c511d Author: Erin Dachtler <download333@gmail.com> Date: Sat May 28 15:32:34 2016 -0700 Whoops, forgot to fmt commit 1ad5f1052541372722adc372069da094b422c793 Author: Erin Dachtler <download333@gmail.com> Date: Sat May 28 14:56:04 2016 -0700 Added getIPAddress helper for docker template, and tests
16 lines
677 B
Cheetah
16 lines
677 B
Cheetah
[backends]{{range .Containers}}
|
|
[backends.backend-{{getBackend .}}.servers.server-{{.Name | replace "/" "" | replace "." "-"}}]
|
|
url = "{{getProtocol .}}://{{getIPAddress .}}:{{getPort .}}"
|
|
weight = {{getWeight .}}
|
|
{{end}}
|
|
|
|
[frontends]{{range $frontend, $containers := .Frontends}}
|
|
[frontends."frontend-{{$frontend}}"]{{$container := index $containers 0}}
|
|
backend = "backend-{{getBackend $container}}"
|
|
passHostHeader = {{getPassHostHeader $container}}
|
|
entryPoints = [{{range getEntryPoints $container}}
|
|
"{{.}}",
|
|
{{end}}]
|
|
[frontends."frontend-{{$frontend}}".routes."route-frontend-{{$frontend}}"]
|
|
rule = "{{getFrontendRule $container}}"
|
|
{{end}}
|