From aacedcc4b3d92601797296fa64036c21f40413af Mon Sep 17 00:00:00 2001 From: Advait Shinde Date: Mon, 15 Feb 2016 18:14:21 -0500 Subject: [PATCH] Implement `/traefik/alias` for KV stores. --- provider/kv.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/provider/kv.go b/provider/kv.go index c8c674721..898d6d240 100644 --- a/provider/kv.go +++ b/provider/kv.go @@ -70,7 +70,8 @@ func (provider *Kv) loadConfig() *types.Configuration { templateObjects := struct { Prefix string }{ - provider.Prefix, + // Allow `/traefik/alias` to superesede `provider.Prefix` + strings.TrimSuffix(provider.get(provider.Prefix, provider.Prefix+"/alias"), "/"), } var KvFuncMap = template.FuncMap{ "List": provider.list,