Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Support for Redis TLS connection #262

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sarve-shreyas
Copy link

  • 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

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!

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