mirror of
https://github.com/containous/traefik.git
synced 2024-12-23 17:34:13 +03:00
17 lines
633 B
Cheetah
17 lines
633 B
Cheetah
[backends]{{range .Containers}}
|
|
[backends.backend-{{.Config.Hostname}}]
|
|
[backends.backend-{{.Config.Hostname}}.servers.server-{{.Config.Hostname}}]
|
|
url = "http://{{.NetworkSettings.IPAddress}}:80"
|
|
{{end}}
|
|
|
|
[routes]{{range .Containers}}
|
|
[routes.route-{{.Config.Hostname}}]
|
|
backends = ["backend-{{.Config.Hostname}}"]
|
|
[routes.route-{{.Config.Hostname}}.rules.rule-{{.Config.Hostname}}-hostname]
|
|
category = "Host"
|
|
value = "{{.Config.Hostname}}.zenika.fr"
|
|
[routes.route-{{.Config.Hostname}}.rules.rule-{{.Config.Hostname}}-name]
|
|
category = "Host"
|
|
value = "{{.Name | replace "/"}}.zenika.fr"
|
|
{{end}}
|