Skip to content

Commit

Permalink
Use keyfile and CAPath in Consul settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sedkis committed Nov 21, 2024
1 parent adb1f25 commit b1ba999
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions storage/kv/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ func newConsul(conf config.ConsulConfig) (Store, error) {
defaultCfg.TLSConfig.CertFile = conf.TLSConfig.CertFile
}

if conf.TLSConfig.KeyFile != "" {
defaultCfg.TLSConfig.KeyFile = conf.TLSConfig.KeyFile
}

if conf.TLSConfig.CAPath != "" {
defaultCfg.TLSConfig.CAPath = conf.TLSConfig.CAPath
}

if conf.TLSConfig.CAFile != "" {
defaultCfg.TLSConfig.CAFile = conf.TLSConfig.CAFile
}
Expand Down

0 comments on commit b1ba999

Please sign in to comment.