File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ export const sequelize = new Sequelize(
1010 config . db ,
1111) ;
1212
13- const redisTlsUrl = config . redis . tlsUrl ; // REDIS_URL 환경변수 우선 사용 (TLS 포함)
14- const isTlsSupported = redisTlsUrl ? .startsWith ?. ( 'rediss://' ) ;
13+ const redisTlsUrl = config . redis . tlsUrl ; // REDIS_TLS_URL 또는 REDIS_URL
14+ const isTlsSupported = ! ! redisTlsUrl && redisTlsUrl . startsWith ( 'rediss://' ) ;
1515
1616export const redisClient = redisTlsUrl
1717 ? createClient ( {
1818 url : redisTlsUrl ,
1919 socket : {
2020 tls : isTlsSupported ,
21+ rejectUnauthorized : false , // `Redis Client Error: self-signed certificate in certificate chain` 오류 우회; 헤로쿠 공식문서도 이 옵션 사용으로 명시되어 있음
2122 reconnectStrategy : ( retries : number ) => {
2223 if ( retries > 10 ) {
2324 return new Error ( 'Retry count exhausted' ) ;
You can’t perform that action at this time.
0 commit comments