diff --git a/testrunner/config/default.yaml b/testrunner/config/default.yaml index 6a92dec..46e8450 100644 --- a/testrunner/config/default.yaml +++ b/testrunner/config/default.yaml @@ -42,7 +42,8 @@ redis: port: null host: null password: jgsay7f2fgfgda6acCa7g()jaba51! - + tls: null + # Verbose log level or not log: verbose: false 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( diff --git a/testrunner/src/validateconfig.js b/testrunner/src/validateconfig.js index 63da047..2b97646 100644 --- a/testrunner/src/validateconfig.js +++ b/testrunner/src/validateconfig.js @@ -37,7 +37,8 @@ const locationSchema = Joi.object({ const redisSchema = Joi.object({ port: Joi.number().allow(null), host: Joi.string().allow(null), - password: Joi.string().allow(null) + password: Joi.string().allow(null), + tls: Joi.boolean().allow(null).optional() }); // Logging schema