mirror of
https://github.com/docmost/docmost.git
synced 2026-07-15 13:56:45 +10:00
918f4508d2
- switch to json logs in production - add option to support http logging
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { AppController } from '../../app.controller';
|
|
import { AppService } from '../../app.service';
|
|
import { EnvironmentModule } from '../../integrations/environment/environment.module';
|
|
import { CollaborationModule } from '../collaboration.module';
|
|
import { DatabaseModule } from '@docmost/db/database.module';
|
|
import { QueueModule } from '../../integrations/queue/queue.module';
|
|
import { EventEmitterModule } from '@nestjs/event-emitter';
|
|
import { HealthModule } from '../../integrations/health/health.module';
|
|
import { CollaborationController } from './collaboration.controller';
|
|
import { LoggerModule } from '../../common/logger/logger.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
LoggerModule,
|
|
DatabaseModule,
|
|
EnvironmentModule,
|
|
CollaborationModule,
|
|
QueueModule,
|
|
HealthModule,
|
|
EventEmitterModule.forRoot(),
|
|
],
|
|
controllers: [
|
|
AppController,
|
|
...(process.env.COLLAB_SHOW_STATS?.toLowerCase() === 'true'
|
|
? [CollaborationController]
|
|
: []),
|
|
],
|
|
providers: [AppService],
|
|
})
|
|
export class CollabAppModule {}
|