Add passHostHeader in frontend configuration, added traefik.frontend.passHostHeader label
This commit is contained in:
parent
aae7941689
commit
1e99ecf583
9 changed files with 28 additions and 3 deletions
|
@ -94,6 +94,12 @@ func (provider *MarathonProvider) loadMarathonConfig() *Configuration {
|
|||
}
|
||||
return "http"
|
||||
},
|
||||
"getPassHostHeader": func(application marathon.Application) string {
|
||||
if passHostHeader, err := provider.getLabel(application, "traefik.frontend.passHostHeader"); err == nil {
|
||||
return passHostHeader
|
||||
}
|
||||
return "false"
|
||||
},
|
||||
"getFrontendValue": provider.GetFrontendValue,
|
||||
"getFrontendRule": provider.GetFrontendRule,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue