diff --git a/apps/webapp/app/redis.server.ts b/apps/webapp/app/redis.server.ts index 0cf6e00bd3..0a826f0c3a 100644 --- a/apps/webapp/app/redis.server.ts +++ b/apps/webapp/app/redis.server.ts @@ -40,8 +40,17 @@ export function createRedisClient( username: options.username, password: options.password, enableAutoPipelining: true, - ...(options.tlsDisabled ? {} : { tls: {} }), + ...(options.tlsDisabled + ? { + checkServerIdentity: () => { + // disable TLS verification + return undefined; + }, + } + : { tls: {} }), }, + dnsLookup: (address, callback) => callback(null, address), + slotsRefreshTimeout: 10000, }); } else { logger.debug("Creating a redis client", {