Skip to content

Commit

Permalink
Merge pull request #483 from panoratech/remove-redis-ssl-docker
Browse files Browse the repository at this point in the history
⚰️ Removed unused environement variable
  • Loading branch information
rflihxyz authored Jun 5, 2024
2 parents 04ce302 + 847b3be commit 2f6db83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
REDIS_PASS: ${REDIS_PASS}
REDIS_USER: ${REDIS_USER}
REDIS_PORT: ${REDIS_PORT}
#REDIS_TLS: 1 // set this variable to 1 when Redis is AWS hosted
REDIS_DB: ${REDIS_DB}
ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY}
HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID}
Expand Down
7 changes: 4 additions & 3 deletions packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { BullModule } from '@nestjs/bull';
import { TicketingModule } from '@ticketing/ticketing.module';
import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';


@Module({
imports: [
CoreModule,
Expand Down Expand Up @@ -68,9 +69,9 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';
password: process.env.REDIS_PASS,
username: process.env.REDIS_USER || 'default',
db: Number(process.env.REDIS_DB) || 0,
enableReadyCheck: false,
maxRetriesPerRequest: null,
tls: process.env.REDIS_TLS ? { rejectUnauthorized: false } : undefined,
//enableReadyCheck: false,
//maxRetriesPerRequest: null,
tls: process.env.REDIS_TLS ? { rejectUnauthorized: false } : undefined
},
}),
],
Expand Down

0 comments on commit 2f6db83

Please sign in to comment.