Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Errors using TLS on Redis #32

Open
lucassarcanjo opened this issue Mar 14, 2022 · 0 comments
Open

Errors using TLS on Redis #32

lucassarcanjo opened this issue Mar 14, 2022 · 0 comments

Comments

@lucassarcanjo
Copy link

During the setting up, I can't define tls=true to work with my database. TLS appears as an object property but does not have any example about its use.

  const session = new RedisSession({
    store: {
      host: process.env.REDIS_HOST,
      port: process.env.REDIS_PORT,
      password: process.env.REDIS_PASSWORD,
    },
  });

On Redis documentation, the suggestion is to work with a socket object, that does not exist inside store.

Original call to redis library:

createClient({
  socket: {
    tls: true,
    ca: '...',
    cert: '...'
  }
});

Thanks in advance for all the Telegraf ecosystem, if there is a way to contribute, I'm open to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant