mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Add REDIS_USE_TLS environment variable to configure TLS for Redis
This commit is contained in:
@@ -5,10 +5,11 @@ export default function createRedisClientForRepository() {
|
||||
const client = createClient({
|
||||
url: process.env.REDIS_URL,
|
||||
socket: {
|
||||
tls: process.env.NODE_ENV === 'production',
|
||||
tls: process.env.REDIS_USE_TLS === "1",
|
||||
rejectUnauthorized: false,
|
||||
reconnectStrategy: REDIS_RECONNECT_INTERVAL,
|
||||
},
|
||||
} as object,
|
||||
});
|
||||
return client as RedisClientType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user