1
0
Fork 0

Add libkv Username and Password

This commit is contained in:
Tristan Colgate 2017-03-28 16:54:48 +01:00 committed by Fernandez Ludovic
parent 2f1a7cbf26
commit de6d771bc2
3 changed files with 18 additions and 1 deletions

View file

@ -24,6 +24,8 @@ type Provider struct {
Endpoint string `description:"Comma separated server endpoints"`
Prefix string `description:"Prefix used for KV store"`
TLS *provider.ClientTLS `description:"Enable TLS support"`
Username string `description:"KV Username"`
Password string `description:"KV Password"`
StoreType store.Backend
Kvclient store.Store
}
@ -33,6 +35,8 @@ func (p *Provider) CreateStore() (store.Store, error) {
storeConfig := &store.Config{
ConnectionTimeout: 30 * time.Second,
Bucket: "traefik",
Username: p.Username,
Password: p.Password,
}
if p.TLS != nil {