disable reject unauthorized

This commit is contained in:
Joseph Ditton 2021-12-04 21:03:04 -07:00
parent 8d47c615b2
commit 7bde981f60
2 changed files with 2 additions and 8 deletions

View File

@ -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,
},
};

View File

@ -13,8 +13,5 @@ export const config: TypeOrmModuleOptions =
: {
type: 'postgres',
url: process.env.DATABASE_URL,
ssl: { rejectUnauthorized: true },
extra: {
ssl: true,
},
ssl: { rejectUnauthorized: false },
};