Changing BullModule to require redis host and port env vars
This commit is contained in:
parent
4710b1026f
commit
714f74cf63
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ import { LoggerModule } from './logger/module'
|
|||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
redis: {
|
||||
host: configService.get<string>('REDIS_HOST', 'localhost'),
|
||||
port: configService.get<number>('REDIS_PORT', 6379),
|
||||
host: configService.getOrThrow<string>('REDIS_HOST'),
|
||||
port: configService.getOrThrow<number>('REDIS_PORT'),
|
||||
},
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue