Add libkv Username and Password
This commit is contained in:
parent
2f1a7cbf26
commit
de6d771bc2
3 changed files with 18 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue