Skip to content

Commit

Permalink
🚑 Support for Redis SSL via env var REDIS_TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed Jun 4, 2024
1 parent 498efc4 commit 04ce302
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';
username: process.env.REDIS_USER || 'default',
db: Number(process.env.REDIS_DB) || 0,
enableReadyCheck: false,
maxRetriesPerRequest: null
maxRetriesPerRequest: null,
tls: process.env.REDIS_TLS ? { rejectUnauthorized: false } : undefined,
},
}),
],
Expand Down

0 comments on commit 04ce302

Please sign in to comment.