@@ -51,20 +51,20 @@ const CONFIG = {
5151 SOCKET : config . has ( 'redis.socket' ) ? config . get < string > ( 'redis.socket' ) : null ,
5252 AUTH : config . has ( 'redis.auth' ) ? config . get < string > ( 'redis.auth' ) : null ,
5353 DB : config . has ( 'redis.db' ) ? config . get < number > ( 'redis.db' ) : null ,
54- TLS : config . has ( 'redis.tls ' ) ? config . get < boolean > ( 'redis.tls ' ) : false ,
54+ TLS : config . has ( 'redis.enable_tls ' ) ? config . get < boolean > ( 'redis.enable_tls ' ) : false ,
5555 TLS_SETTINGS : {
5656 get REJECT_UNAUTHORIZED ( ) {
57- return config . has ( 'redis.tls_settings.reject_unauthorized' )
58- ? config . get < boolean > ( 'redis.tls_settings.reject_unauthorized' )
57+ return config . has ( 'redis.tls_settings.reject_unauthorized' )
58+ ? config . get < boolean > ( 'redis.tls_settings.reject_unauthorized' )
5959 : false
6060 } ,
61- get CA ( ) {
61+ get CA ( ) {
6262 return config . has ( 'redis.tls_settings.ca' ) ? config . get < string > ( 'redis.tls_settings.ca' ) : null
6363 } ,
64- get CERT ( ) {
64+ get CERT ( ) {
6565 return config . has ( 'redis.tls_settings.cert' ) ? config . get < string > ( 'redis.tls_settings.cert' ) : null
6666 } ,
67- get KEY ( ) {
67+ get KEY ( ) {
6868 return config . has ( 'redis.tls_settings.key' ) ? config . get < string > ( 'redis.tls_settings.key' ) : null
6969 }
7070 } ,
@@ -73,17 +73,17 @@ const CONFIG = {
7373 ENABLE_TLS : config . has ( 'redis.sentinel.enable_tls' ) ? config . get < boolean > ( 'redis.sentinel.enable_tls' ) : false ,
7474 TLS_SETTINGS : {
7575 get REJECT_UNAUTHORIZED ( ) {
76- return config . has ( 'redis.sentinel.tls_settings.reject_unauthorized' )
77- ? config . get < boolean > ( 'redis.sentinel.tls_settings.reject_unauthorized' )
76+ return config . has ( 'redis.sentinel.tls_settings.reject_unauthorized' )
77+ ? config . get < boolean > ( 'redis.sentinel.tls_settings.reject_unauthorized' )
7878 : false
7979 } ,
80- get CA ( ) {
80+ get CA ( ) {
8181 return config . has ( 'redis.sentinel.tls_settings.ca' ) ? config . get < string > ( 'redis.sentinel.tls_settings.ca' ) : null
8282 } ,
83- get CERT ( ) {
83+ get CERT ( ) {
8484 return config . has ( 'redis.sentinel.tls_settings.cert' ) ? config . get < string > ( 'redis.sentinel.tls_settings.cert' ) : null
8585 } ,
86- get KEY ( ) {
86+ get KEY ( ) {
8787 return config . has ( 'redis.sentinel.tls_settings.key' ) ? config . get < string > ( 'redis.sentinel.tls_settings.key' ) : null
8888 }
8989 } ,
0 commit comments