Created
March 31, 2022 03:11
-
-
Save tranphuoctien/b33b2cbb02b3b4a5bf123b006b7a4c23 to your computer and use it in GitHub Desktop.
Bull queue on nestjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BullModule.forRootAsync({ | |
inject: [ConfigService], | |
useFactory: async (configService: ConfigService) => ({ | |
prefix: configService.get('APP_ENV') || 'dev', | |
redis: { | |
role: 'master', | |
name: configService.get('REDIS_SENTINEL_NAME') || 'mymaster', | |
sentinels: [ | |
{ | |
host: configService.get('REDIS_HOST'), | |
port: configService.get('REDIS_PORT'), | |
}, | |
], | |
}, | |
}), | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/smrchy/rsmq?ref=hackernoon.com