mirror of
https://github.com/docmost/docmost.git
synced 2026-06-10 10:13:01 +08:00
39 lines
1.3 KiB
TypeScript
39 lines
1.3 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';
|
|
import { RedisModule } from '@nestjs-labs/nestjs-ioredis';
|
|
import { RedisConfigService } from '../../integrations/redis/redis-config.service';
|
|
import { CaslModule } from '../../core/casl/casl.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
LoggerModule,
|
|
DatabaseModule,
|
|
EnvironmentModule,
|
|
CaslModule,
|
|
CollaborationModule,
|
|
QueueModule,
|
|
HealthModule,
|
|
EventEmitterModule.forRoot(),
|
|
RedisModule.forRootAsync({
|
|
useClass: RedisConfigService,
|
|
}),
|
|
],
|
|
controllers: [
|
|
AppController,
|
|
...(process.env.COLLAB_SHOW_STATS?.toLowerCase() === 'true'
|
|
? [CollaborationController]
|
|
: []),
|
|
],
|
|
providers: [AppService],
|
|
})
|
|
export class CollabAppModule {}
|