From 508b6407c10176086acda5c487f5a0091e5bfcb0 Mon Sep 17 00:00:00 2001 From: Kristoff Kiefer Date: Wed, 4 Oct 2023 15:20:23 +0200 Subject: [PATCH] DB-Setup now uses SSL --- src/console/console.module.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/console/console.module.ts b/src/console/console.module.ts index 188c060b4..443503b5f 100644 --- a/src/console/console.module.ts +++ b/src/console/console.module.ts @@ -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'; @@ -31,6 +31,11 @@ import { DbInitConsole } from './db-init.console.js'; dbName: config.getOrThrow('DB').DB_NAME, entities: ['./dist/**/*.entity.js'], entitiesTs: ['./src/**/*.entity.ts'], + driverOptions: { + connection: { + ssl: true, + }, + }, }); }, inject: [ConfigService],