mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix pem format
This commit is contained in:
parent
2e8f173879
commit
7c25a628d9
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import { Redis } from 'ioredis'
|
||||
|
||||
const url = process.env.REDIS_URL
|
||||
const cert = process.env.REDIS_CERT
|
||||
const cert = process.env.REDIS_CERT?.replace(/\\n/g, '\n') // replace \n with new line
|
||||
|
||||
export const redis = new Redis(url || 'redis://localhost:6379', {
|
||||
connectTimeout: 10000, // 10 seconds
|
||||
|
|
|
|||
Loading…
Reference in a new issue