mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix cert import
This commit is contained in:
parent
181c0253cb
commit
bca68372c9
1 changed files with 3 additions and 3 deletions
|
|
@ -45,10 +45,10 @@ passport.deserializeUser((user, cb) => {
|
|||
const run = async () => {
|
||||
const secrets = await readYamlFile(process.env.SECRETS_FILE)
|
||||
const redisOptions = (secrets) => {
|
||||
if (secrets.REDIS_URL?.startsWith('rediss://') && secrets.REDIS_CERT) {
|
||||
if (secrets.REDIS_URL?.startsWith('rediss://') && process.env.REDIS_CERT) {
|
||||
return {
|
||||
tls: {
|
||||
cert: secrets.REDIS_CERT,
|
||||
cert: process.env.REDIS_CERT?.replace(/\\n/g, '\n'),
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
maxRetriesPerRequest: null,
|
||||
|
|
@ -63,7 +63,7 @@ const run = async () => {
|
|||
tls: {
|
||||
host: secrets.REDIS_HOST,
|
||||
port: secrets.REDIS_PORT,
|
||||
cert: secrets.REDIS_CERT,
|
||||
cert: process.env.REDIS_CERT?.replace(/\\n/g, '\n'),
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
maxRetriesPerRequest: null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue