mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 17:26:42 +02:00
mana-media uses NestJS 11 while shared-nestjs-metrics targets NestJS 10, causing DynamicModule type incompatibility. Use prom-client directly with a simple MetricsController to expose /metrics endpoint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { BullModule } from '@nestjs/bullmq';
|
|
import { DatabaseModule } from './db/database.module';
|
|
import { UploadModule } from './modules/upload/upload.module';
|
|
import { StorageModule } from './modules/storage/storage.module';
|
|
import { ProcessModule } from './modules/process/process.module';
|
|
import { DeliveryModule } from './modules/delivery/delivery.module';
|
|
import { MatrixModule } from './modules/matrix/matrix.module';
|
|
import { HealthController } from './health.controller';
|
|
import { MetricsController } from './metrics.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
}),
|
|
BullModule.forRoot({
|
|
connection: {
|
|
host: process.env.REDIS_HOST || 'localhost',
|
|
port: parseInt(process.env.REDIS_PORT || '6379'),
|
|
password: process.env.REDIS_PASSWORD || undefined,
|
|
},
|
|
}),
|
|
DatabaseModule,
|
|
StorageModule,
|
|
UploadModule,
|
|
ProcessModule,
|
|
DeliveryModule,
|
|
MatrixModule,
|
|
],
|
|
controllers: [HealthController, MetricsController],
|
|
})
|
|
export class AppModule {}
|