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,