-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: redis/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).
- Loading branch information
1 parent
316749b
commit af81095
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} | ||
})() |