Deploy to staging #55

Merged
zelda merged 3 commits from main into staging 2025-05-22 14:11:07 +10:00
1 changed files with 10 additions and 6 deletions
Showing only changes of commit 43dcfc78bb - Show all commits

View File

@ -1,6 +1,6 @@
import { BullModule } from '@nestjs/bull';
import { Global, Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { ScheduleModule } from '@nestjs/schedule';
@ -14,11 +14,15 @@ import { ScheduleModule } from '@nestjs/schedule';
wildcard: true,
global: true,
}),
BullModule.forRoot({
redis: {
host: 'localhost',
port: 6379,
},
BullModule.forRootAsync({
imports: [ConfigModule],
useFactory: (configService: ConfigService) => ({
redis: {
host: configService.get<string>('REDIS_HOST'),
port: configService.get<number>('REDIS_PORT'),
},
}),
inject: [ConfigService],
}),
BullModule.registerQueue({
name: 'mail-queue',