Added traefik.domain label. Corrects https://github.com/EmileVauge/traefik/issues/50
This commit is contained in:
parent
9d168c4e15
commit
27eae04e87
5 changed files with 87 additions and 73 deletions
|
@ -10,5 +10,5 @@
|
|||
backend = "backend-{{getBackend $container}}"
|
||||
[frontends.frontend-{{$host}}.routes.route-host-{{$host}}]
|
||||
rule = "Host"
|
||||
value = "{{$host}}.{{$.Domain}}"
|
||||
value = "{{$host}}.{{getDomain $container}}"
|
||||
{{end}}
|
|
@ -22,6 +22,6 @@
|
|||
backend = "backend{{.ID | replace "/" "-"}}"
|
||||
[frontends.frontend-{{getHost $app | replace "/" "-"}}.routes.route-host-{{getHost $app | replace "/" "-"}}]
|
||||
rule = "Host"
|
||||
value = "{{getHost $app | replace "/" "-"}}.{{$.Domain}}"
|
||||
value = "{{getHost $app | replace "/" "-"}}.{{getDomain .}}"
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
|
@ -15,5 +15,5 @@
|
|||
backend = "backend{{.ID | replace "/" "-"}}"
|
||||
[frontends.frontend-{{getHost . | replace "/" "-"}}.routes.route-host-{{getHost . | replace "/" "-"}}]
|
||||
rule = "Host"
|
||||
value = "{{getHost . | replace "/" "-"}}.{{$.Domain}}"
|
||||
value = "{{getHost . | replace "/" "-"}}.{{getDomain .}}"
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue