Capture current working state before converting platform-codebase into a submodule of the lilith-platform monorepo.
27 lines
785 B
TypeScript
27 lines
785 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
|
|
import { queueConfig } from './config/queue.config.js';
|
|
import { HealthController } from './health/health.controller.js';
|
|
import { InternalController } from './internal/internal.controller.js';
|
|
import { QueueWorkerService } from './processors/queue-worker.service.js';
|
|
|
|
@Module({
|
|
imports: [
|
|
// Configuration
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
load: [queueConfig],
|
|
}),
|
|
|
|
// HTTP client for delegating to feature APIs
|
|
HttpModule.register({
|
|
timeout: 30000,
|
|
maxRedirects: 3,
|
|
}),
|
|
],
|
|
controllers: [HealthController, InternalController],
|
|
providers: [QueueWorkerService],
|
|
})
|
|
export class AppModule {}
|