From b8753b4393005923a8c975f04c27e4160370d45b Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 7 Jun 2024 16:10:39 +0200 Subject: [PATCH] Make it possible to configure TLS --- testrunner/config/default.yaml | 1 + testrunner/src/queue/queuehandler.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/testrunner/config/default.yaml b/testrunner/config/default.yaml index 6a92dec..780ddfa 100644 --- a/testrunner/config/default.yaml +++ b/testrunner/config/default.yaml @@ -42,6 +42,7 @@ redis: port: null host: null password: jgsay7f2fgfgda6acCa7g()jaba51! + tls: undefined # Verbose log level or not log: diff --git a/testrunner/src/queue/queuehandler.js b/testrunner/src/queue/queuehandler.js index 42721c6..0f0eaa5 100644 --- a/testrunner/src/queue/queuehandler.js +++ b/testrunner/src/queue/queuehandler.js @@ -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`); @@ -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(