From 9327514e8345b1ef1e656610246a981fe93ac33c Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Sun, 2 May 2021 14:53:44 +0200 Subject: [PATCH] allow self signed certificates --- src/app.imports.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.imports.ts b/src/app.imports.ts index a928fc5..a468074 100644 --- a/src/app.imports.ts +++ b/src/app.imports.ts @@ -110,7 +110,7 @@ export const imports = [ synchronize: false, type: configService.get('DATABASE_DRIVER', 'sqlite') as any, url: configService.get('DATABASE_URL', 'sqlite://data.sqlite'), - ssl: configService.get('DATABASE_SSL', 'false') === 'true', + ssl: configService.get('DATABASE_SSL', 'false') === 'true' ? { rejectUnauthorized: false } : false, entityPrefix: configService.get('DATABASE_TABLE_PREFIX', ''), logging: configService.get('DATABASE_LOGGING', 'false') === 'true', entities,