Skip to content

Commit

Permalink
🐛 Redis connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed Jun 1, 2024
1 parent 0f87492 commit 2e3cff0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
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_DB: ${REDIS_DB}
ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY}
HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID}
HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET}
Expand Down
1 change: 1 addition & 0 deletions docker-compose.source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ services:
REDIS_USER: ${REDIS_USER}
REDIS_PASS: ${REDIS_PASS}
BACKEND_PORT: ${BACKEND_PORT}
REDIS_DB: ${REDIS_DB}
ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY}
HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID}
HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET}
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
REDIS_USER: ${REDIS_USER}
REDIS_PASS: ${REDIS_PASS}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
ENCRYPT_CRYPTO_SECRET_KEY: ${ENCRYPT_CRYPTO_SECRET_KEY}
HUBSPOT_CRM_CLOUD_CLIENT_ID: ${HUBSPOT_CRM_CLOUD_CLIENT_ID}
HUBSPOT_CRM_CLOUD_CLIENT_SECRET: ${HUBSPOT_CRM_CLOUD_CLIENT_SECRET}
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';
host: process.env.REDIS_HOST || 'redis',
port: Number(process.env.REDIS_PORT) || 6379,
password: process.env.REDIS_PASS,
username: process.env.REDIS_USER || 'default'
username: process.env.REDIS_USER || 'default',
db: Number(process.env.REDIS_DB) || 0
},
}),
],
Expand Down

0 comments on commit 2e3cff0

Please sign in to comment.