Skip to content

Commit

Permalink
Make it possible to configure TLS (#16)
Browse files Browse the repository at this point in the history
* Make it possible to configure TLS

* Add possible value
  • Loading branch information
soulgalore committed Jun 11, 2024
1 parent ea4ce69 commit d2d5425
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion testrunner/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ redis:
port: null
host: null
password: jgsay7f2fgfgda6acCa7g()jaba51!

tls: null

# Verbose log level or not
log:
verbose: false
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
3 changes: 2 additions & 1 deletion testrunner/src/validateconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2d5425

Please sign in to comment.