Skip to content

Commit 0c62ec3

Browse files
authored
Merge pull request #6 from MinerYang/fix_tls_config
fix redis enableTLS config yaml key name
2 parents ea065fe + 8f364e2 commit 0c62ec3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/registry/config-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ http:
2121
X-Content-Type-Options: [nosniff]
2222
redis:
2323
addr: localhost:6379
24-
enabletls: true
24+
enableTLS: true
2525
pool:
2626
maxidle: 16
2727
maxactive: 64

configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ type Configuration struct {
177177
// DB specifies the database to connect to on the redis instance.
178178
DB int `yaml:"db,omitempty"`
179179

180-
EnableTLS bool `yaml:"enabletls,omitempty"`
180+
EnableTLS bool `yaml:"enableTLS,omitempty"`
181181

182182
DialTimeout time.Duration `yaml:"dialtimeout,omitempty"` // timeout for connect
183183
ReadTimeout time.Duration `yaml:"readtimeout,omitempty"` // timeout for reads of data

0 commit comments

Comments
 (0)