mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix: replace \n with new line in redis cert
This commit is contained in:
parent
240a981d16
commit
628cfc64d1
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue