1
0
Fork 0

Add lower-case passHostHeader key support.

This commit is contained in:
Ludovic Fernandez 2018-03-15 10:14:03 +01:00 committed by Traefiker Bot
parent f6c6d2bcd0
commit b1e3444798
3 changed files with 13 additions and 1 deletions

View file

@ -53,7 +53,13 @@
{{$entryPoints := GetList . "/entrypoints"}}
[frontends."{{$frontend}}"]
backend = "{{Get "" . "/backend"}}"
{{ $passHostHeader := Get "" . "/passhostheader"}}
{{if $passHostHeader}}
passHostHeader = {{ $passHostHeader }}
{{else}}
# keep for compatibility reason
passHostHeader = {{Get "true" . "/passHostHeader"}}
{{end}}
priority = {{Get "0" . "/priority"}}
entryPoints = [{{range $entryPoints}}
"{{.}}",