-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.module.ts
33 lines (32 loc) · 1.04 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import configuration from './config/configuration';
import { LoggerModuleConfig } from './config/logger.config';
import { OpenTelemetryModuleConfig } from './config/otel.config';
import { HealthModule } from './health/health.module';
import { MarkerModule } from './marker/marker.module';
import { LocationModule } from './location/location.module';
import { PersistenceModule } from './persistence/persistence.module';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
@Module({
imports: [
ConfigModule.forRoot({
envFilePath: join(__dirname, `../../../environments/.env.development`),
load: [configuration],
isGlobal: true,
}),
ServeStaticModule.forRoot({
rootPath: join(__dirname, 'static'),
}),
OpenTelemetryModuleConfig,
LoggerModuleConfig,
PersistenceModule,
HealthModule,
MarkerModule,
LocationModule,
],
controllers: [],
providers: [],
})
export class AppModule {}