Skip to content

Adding Support for Redis TLS connection#262

Open
sarve-shreyas wants to merge 3 commits intoejhayes:mainfrom
sarve-shreyas:bull-mq-tls-flag
Open

Adding Support for Redis TLS connection#262
sarve-shreyas wants to merge 3 commits intoejhayes:mainfrom
sarve-shreyas:bull-mq-tls-flag

Conversation

@sarve-shreyas
Copy link
Copy Markdown

  • Added one env flag REDIS_TLS which is bool if it is set to be true then we pass tls as empty object otherwise we set it as null

config.service.ts

 /**
     * Redis tls option
  */
 REDIS_TLS: bool({ default: false }),

bull.module.ts

return {
      name: client,
      host: configService.config.REDIS_HOST,
      ...
      enableReadyCheck: true,
      tls: configService.config.REDIS_TLS ? {} : null,
      reconnectOnError: () => true,
};
  • Added README changes to add REDIS_TLS flag in env params

- Added check for REDIS_TLS if true then passed empty object otherwise its set to be null
@m1abdullahh
Copy link
Copy Markdown

I really want this! @sarve-shreyas, do you happen to have this TLS-enabled version available on DockerHub? I’m hoping to avoid the hassle of building it myself and pushing it to DockerHub if it’s already available. Thanks in advance!

@sarve-shreyas
Copy link
Copy Markdown
Author

hey @m1abdullahh sorry I don't have this on DockerHub :(

@m1abdullahh
Copy link
Copy Markdown

@sarve-shreyas That's alright. Thanks anyways!

@ejhayes ejhayes mentioned this pull request Dec 18, 2025
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants