Merge pull request #3403 from omnivore-app/fix/redis-cert

fix: replace \n with new line in redis cert
This commit is contained in:
Hongbo Wu
2024-01-22 11:20:10 +08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ export const createRedisClient = (url?: string, cert?: string) => {
connectTimeout: 10000, // 10 seconds
tls: cert
? {
cert,
cert: cert.replace(/\\n/g, '\n'), // replace \n with new line
rejectUnauthorized: false, // for self-signed certs
}
: undefined,

View File

@ -5,7 +5,7 @@ export const createRedisClient = (url?: string, cert?: string) => {
connectTimeout: 10000, // 10 seconds
tls: cert
? {
cert,
cert: cert.replace(/\\n/g, '\n'), // replace \n with new line
rejectUnauthorized: false, // for self-signed certs
}
: undefined,

View File

@ -5,7 +5,7 @@ export const createRedisClient = (url?: string, cert?: string) => {
connectTimeout: 10000, // 10 seconds
tls: cert
? {
cert,
cert: cert.replace(/\\n/g, '\n'), // replace \n with new line
rejectUnauthorized: false, // for self-signed certs
}
: undefined,