Fix TLS errors preventing Redis connections in production (#3899)

ioredis 4.14.0 introduced an issue where custom TLS options are no longer honored. I reported it here: luin/ioredis#947

This has been preventing the server from using GitHub tokens, however I'm not sure whether or not this has been causing noticeable issues.

For now let's downgrade to the latest working version, which I've confirmed working via the script (checked in).
This commit is contained in:
Paul Melnikow
2019-08-20 19:03:51 +01:00
committed by GitHub
parent 316749bd69
commit af81095794
3 changed files with 30 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
'use strict'
const config = require('config').util.toObject()
console.log(config)
const GithubConstellation = require('../services/github/github-constellation')
const { persistence } = new GithubConstellation({
persistence: config.public.persistence,
service: config.public.services.github,
private: config.private,
})
async function main() {
const tokens = await persistence.initialize()
console.log(`${tokens.length} tokens loaded`)
await persistence.stop()
}
;(async () => {
try {
await main()
} catch (e) {
console.error(e)
process.exit(1)
}
})()