diff --git a/src/app.module.ts b/src/app.module.ts new file mode 100644 index 0000000..bb41419 --- /dev/null +++ b/src/app.module.ts @@ -0,0 +1,20 @@ +import { Module } from "@nestjs/common"; +import { ConfigModule } from "@nestjs/config"; +import { LogService } from "./logger/logger.service"; +import { ThrottlerModule } from "@nestjs/throttler"; + +@Module({ + imports: [ + ThrottlerModule.forRoot([{ + ttl: 60000, + limit: 10, + }]), + ConfigModule.forRoot({ + isGlobal: true + }) + ], + exports: [LogService], + controllers: [], + providers: [LogService], +}) +export class AppModule {}