Implement /traefik/alias
for KV stores.
This commit is contained in:
parent
786acc961a
commit
aacedcc4b3
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ func (provider *Kv) loadConfig() *types.Configuration {
|
||||||
templateObjects := struct {
|
templateObjects := struct {
|
||||||
Prefix string
|
Prefix string
|
||||||
}{
|
}{
|
||||||
provider.Prefix,
|
// Allow `/traefik/alias` to superesede `provider.Prefix`
|
||||||
|
strings.TrimSuffix(provider.get(provider.Prefix, provider.Prefix+"/alias"), "/"),
|
||||||
}
|
}
|
||||||
var KvFuncMap = template.FuncMap{
|
var KvFuncMap = template.FuncMap{
|
||||||
"List": provider.list,
|
"List": provider.list,
|
||||||
|
|
Loading…
Reference in a new issue