Browse Source

Update app.module.ts

main
SimonBurdy 5 years ago
parent
commit
3ce1c51b5d
  1. 7
      src/app.module.ts

7
src/app.module.ts

@ -18,6 +18,11 @@ import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
entities: [__dirname + '/**/*.entity{.ts,.js}'], entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: true, synchronize: true,
logging: configService.isLoggingDb ? 'all' : false, logging: configService.isLoggingDb ? 'all' : false,
extra: {
ssl: {
rejectUnauthorized: false
},
},
}), }),
inject: [ConfigService], inject: [ConfigService],
}), }),
@ -25,4 +30,4 @@ import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
controllers: [AppController], controllers: [AppController],
providers: [AppService], providers: [AppService],
}) })
export class AppModule {}
export class AppModule {}
Loading…
Cancel
Save