- Backend NestJS con módulos de autenticación, inventario, créditos - Frontend React con dashboard y componentes UI - Base de datos PostgreSQL con migraciones - Tests E2E configurados - Configuración de Docker y deployment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
525 B
TypeScript
22 lines
525 B
TypeScript
import { ConfigService } from '@nestjs/config';
|
|
import { BullModuleOptions } from '@nestjs/bull';
|
|
|
|
export const redisConfig = (
|
|
configService: ConfigService,
|
|
): BullModuleOptions => ({
|
|
redis: {
|
|
host: configService.get('REDIS_HOST', 'localhost'),
|
|
port: configService.get('REDIS_PORT', 6380),
|
|
password: configService.get('REDIS_PASSWORD'),
|
|
},
|
|
defaultJobOptions: {
|
|
attempts: 3,
|
|
backoff: {
|
|
type: 'exponential',
|
|
delay: 5000,
|
|
},
|
|
removeOnComplete: 100,
|
|
removeOnFail: 50,
|
|
},
|
|
});
|