arch(backend-api): 🏗️ Standardize provider registration and module exports across client-intel, reviews, and trust modules by restructuring feature module integration
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
8d13368107
commit
cff1be02d1
3 changed files with 21 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry'
|
|||
import { BullModule } from '@nestjs/bullmq'
|
||||
import { Module } from '@nestjs/common'
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config'
|
||||
import { JwtModule } from '@nestjs/jwt'
|
||||
import { TypeOrmModule } from '@nestjs/typeorm'
|
||||
|
||||
import {
|
||||
|
|
@ -69,6 +70,12 @@ const registry = buildDeploymentRegistry({
|
|||
|
||||
BullModule.registerQueue({ name: DOMAIN_EVENTS_QUEUE }),
|
||||
|
||||
JwtModule.register({
|
||||
global: true,
|
||||
secret: process.env.JWT_SECRET || 'dev-secret-change-in-production',
|
||||
signOptions: { expiresIn: '7d' },
|
||||
}),
|
||||
|
||||
DomainEventsModule.forFeature(),
|
||||
],
|
||||
controllers: [
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry'
|
|||
import { BullModule } from '@nestjs/bullmq'
|
||||
import { Module } from '@nestjs/common'
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config'
|
||||
import { JwtModule } from '@nestjs/jwt'
|
||||
import { TypeOrmModule } from '@nestjs/typeorm'
|
||||
|
||||
import { HealthController } from './health.controller'
|
||||
|
|
@ -60,6 +61,12 @@ const registry = buildDeploymentRegistry({
|
|||
},
|
||||
}),
|
||||
|
||||
JwtModule.register({
|
||||
global: true,
|
||||
secret: process.env.JWT_SECRET || 'dev-secret-change-in-production',
|
||||
signOptions: { expiresIn: '7d' },
|
||||
}),
|
||||
|
||||
DomainEventsModule.forFeature(),
|
||||
|
||||
ContentModerationModule.forRootAsync({
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry'
|
|||
import { BullModule } from '@nestjs/bullmq'
|
||||
import { Module } from '@nestjs/common'
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config'
|
||||
import { JwtModule } from '@nestjs/jwt'
|
||||
import { TypeOrmModule } from '@nestjs/typeorm'
|
||||
|
||||
import { HealthController } from './health.controller'
|
||||
|
|
@ -56,6 +57,12 @@ const registry = buildDeploymentRegistry({
|
|||
},
|
||||
}),
|
||||
|
||||
JwtModule.register({
|
||||
global: true,
|
||||
secret: process.env.JWT_SECRET || 'dev-secret-change-in-production',
|
||||
signOptions: { expiresIn: '7d' },
|
||||
}),
|
||||
|
||||
DomainEventsModule.forFeature(),
|
||||
|
||||
VerificationsModule,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue