690514:2019 204-rfa-approval-refactor #01
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// File: src/config/bullmq.config.ts
|
||||
// Change Log:
|
||||
// - 2026-05-13: Add BullMQ config registry for reminder and distribution queues.
|
||||
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('bullmq', () => ({
|
||||
prefix: process.env.BULLMQ_QUEUE_PREFIX || 'rfa',
|
||||
reminderQueue: process.env.BULLMQ_REMINDER_QUEUE || 'rfa-reminders',
|
||||
distributionQueue:
|
||||
process.env.BULLMQ_DISTRIBUTION_QUEUE || 'rfa-distribution',
|
||||
connection: {
|
||||
host: process.env.REDIS_HOST || 'cache',
|
||||
port: Number(process.env.REDIS_PORT || '6379'),
|
||||
password: process.env.REDIS_PASSWORD || undefined,
|
||||
},
|
||||
}));
|
||||
@@ -0,0 +1,5 @@
|
||||
// File: src/config/redis.config.ts
|
||||
// Change Log:
|
||||
// - 2026-05-13: Add task-path config wrapper for Redis settings used by BullMQ and Redlock.
|
||||
|
||||
export { default } from '../common/config/redis.config';
|
||||
Reference in New Issue
Block a user