allow self signed certificates

This commit is contained in:
Michael Schramm 2021-05-02 14:53:44 +02:00
parent 42a1bf9555
commit 9327514e83

View File

@ -110,7 +110,7 @@ export const imports = [
synchronize: false,
type: configService.get<string>('DATABASE_DRIVER', 'sqlite') as any,
url: configService.get<string>('DATABASE_URL', 'sqlite://data.sqlite'),
ssl: configService.get<string>('DATABASE_SSL', 'false') === 'true',
ssl: configService.get<string>('DATABASE_SSL', 'false') === 'true' ? { rejectUnauthorized: false } : false,
entityPrefix: configService.get<string>('DATABASE_TABLE_PREFIX', ''),
logging: configService.get<string>('DATABASE_LOGGING', 'false') === 'true',
entities,