From 7bde981f60565e73539352bb13cff78b29e0d309 Mon Sep 17 00:00:00 2001 From: Joseph Ditton Date: Sat, 4 Dec 2021 21:03:04 -0700 Subject: [PATCH] disable reject unauthorized --- server/database/cli_config.ts | 5 +---- server/database/config.ts | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/server/database/cli_config.ts b/server/database/cli_config.ts index a096c99..2b008c5 100644 --- a/server/database/cli_config.ts +++ b/server/database/cli_config.ts @@ -17,14 +17,11 @@ export = process.env.NODE_ENV === 'development' : { type: 'postgres', url: process.env.DATABASE_URL, - ssl: { rejectUnauthorized: true }, + ssl: { rejectUnauthorized: false }, migrations: ['server/database/migrations/*.ts'], seeds: ['server/database/seeds.ts'], cli: { migrationsDir: 'server/database/migrations', }, entities: ['server/entities/**/*.entity.ts'], - extra: { - ssl: true, - }, }; diff --git a/server/database/config.ts b/server/database/config.ts index 6fadf0d..6c6c31d 100644 --- a/server/database/config.ts +++ b/server/database/config.ts @@ -13,8 +13,5 @@ export const config: TypeOrmModuleOptions = : { type: 'postgres', url: process.env.DATABASE_URL, - ssl: { rejectUnauthorized: true }, - extra: { - ssl: true, - }, + ssl: { rejectUnauthorized: false }, };