More comments

This commit is contained in:
Hongbo Wu 2022-09-22 11:25:13 +08:00
parent a7563a55e1
commit b9e2fc465c

View file

@ -6,7 +6,7 @@ export const createRedisClient = async (url?: string, cert?: string) => {
socket: {
tls: url?.startsWith('rediss://'), // rediss:// is the protocol for TLS
cert: cert?.replace(/\\n/g, '\n'), // replace \n with new line
rejectUnauthorized: false,
rejectUnauthorized: false, // for self-signed certs
},
})