mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Some redis setup
This commit is contained in:
parent
fc25d6d615
commit
d29c26d93b
1 changed files with 5 additions and 1 deletions
|
|
@ -8,10 +8,14 @@ const redisOptions = () => {
|
|||
return {
|
||||
tls: {
|
||||
cert: env.redis.cert?.replace(/\\n/g, '\n'),
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
maxRetriesPerRequest: null,
|
||||
}
|
||||
}
|
||||
return {}
|
||||
return {
|
||||
maxRetriesPerRequest: null,
|
||||
}
|
||||
}
|
||||
|
||||
const connection = new Redis(env.redis.url ?? '', redisOptions())
|
||||
|
|
|
|||
Loading…
Reference in a new issue