Skip to content

Commit

Permalink
DB-Setup now uses SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-kiefer committed Oct 4, 2023
1 parent 78033ad commit 508b640
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/console/console.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MikroOrmModule } from '@mikro-orm/nestjs';
import { defineConfig } from '@mikro-orm/postgresql';
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { DbConfig, ServerConfig, loadConfigFiles, loadEnvConfig } from '../shared/config/index.js';
import { DbConfig, loadConfigFiles, loadEnvConfig, ServerConfig } from '../shared/config/index.js';
import { mappingErrorHandler } from '../shared/error/index.js';
import { LoggingModule } from '../shared/logging/index.js';
import { DbConsole } from './db.console.js';
Expand All @@ -31,6 +31,11 @@ import { DbInitConsole } from './db-init.console.js';
dbName: config.getOrThrow<DbConfig>('DB').DB_NAME,
entities: ['./dist/**/*.entity.js'],
entitiesTs: ['./src/**/*.entity.ts'],
driverOptions: {
connection: {
ssl: true,
},
},
});
},
inject: [ConfigService],
Expand Down

0 comments on commit 508b640

Please sign in to comment.