-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.module.ts
35 lines (34 loc) · 1.06 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
34
35
import { LoggerModule } from '@finastra/nestjs-logger';
import { ProxyModule } from '@finastra/nestjs-proxy';
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ServeStaticModule } from '@nestjs/serve-static';
import { ProxyConfigService } from '../configs/proxy-config.service';
import { appFolder, ServeStaticConfigService } from '../configs/serve-static-config.service';
import { HealthModule } from './health/health.module';
@Module({
imports: [
/* OidcModule.forRootAsync({
imports: [ConfigModule],
useClass: OidcConfigService,
}), */
ConfigModule.forRoot({
isGlobal: true,
ignoreEnvFile: process.env.NODE_ENV === 'production',
}),
ServeStaticModule.forRootAsync({
useClass: ServeStaticConfigService,
}),
ServeStaticModule.forRoot({
serveRoot: '/static',
rootPath: appFolder,
}),
ProxyModule.forRootAsync({
useClass: ProxyConfigService,
imports: [ConfigModule],
}),
HealthModule,
LoggerModule,
],
})
export class AppModule {}