Skip to content

Commit

Permalink
Make it possible to configure TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jun 7, 2024
1 parent ea4ce69 commit b8753b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions testrunner/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ redis:
port: null
host: null
password: jgsay7f2fgfgda6acCa7g()jaba51!
tls: undefined

# Verbose log level or not
log:
Expand Down
2 changes: 2 additions & 0 deletions testrunner/src/queue/queuehandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class QueueHandler {
port,
host,
password,
tls: nconf.get('redis:tls') ? { servername: host } : undefined,
retryStrategy: times => {
const delay = Math.min(times * 500, 3000);
logger.info(`Retry MAIN attempt ${times}: Retrying in ${delay} ms`);
Expand Down Expand Up @@ -87,6 +88,7 @@ class QueueHandler {
port,
host,
password,
tls: nconf.get('redis:tls') ? { servername: host } : undefined,
retryStrategy: times => {
const delay = Math.min(times * 200, 3000);
logger.info(
Expand Down

0 comments on commit b8753b4

Please sign in to comment.