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

Migrate command with target redis server using TLS #1874

Open
marioanloru opened this issue Apr 1, 2024 · 1 comment
Open

Migrate command with target redis server using TLS #1874

marioanloru opened this issue Apr 1, 2024 · 1 comment

Comments

@marioanloru
Copy link

Hi, I am migrating data from one redis serve to another one, both are configured to use TLS.
How do I execute MIGRATE command to work with TLS redis servers? The command only does accept a host, port and password as auth

@billnbell2
Copy link

What do you mean ? You just pass the items in the Redis connection.

  const config: RedisOptions = {
    port: Number(process.env.REDIS_PORT),
    host: process.env.REDIS_HOSTNAME,
    username: process.env.REDIS_USERNAME,
    keyPrefix: process.env.REDIS_KEY_PREFIX,
  };
  if (process.env.REDIS_TLS === 'true') {
    config.tls = {};
  }
  redis = new Redis(config);

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

No branches or pull requests

2 participants