adds missing config option for ssl

This commit is contained in:
Joseph Ditton 2021-12-04 21:00:31 -07:00
parent ac930bf0d7
commit 8d47c615b2
2 changed files with 6 additions and 0 deletions

View File

@ -24,4 +24,7 @@ export = process.env.NODE_ENV === 'development'
migrationsDir: 'server/database/migrations',
},
entities: ['server/entities/**/*.entity.ts'],
extra: {
ssl: true,
},
};

View File

@ -14,4 +14,7 @@ export const config: TypeOrmModuleOptions =
type: 'postgres',
url: process.env.DATABASE_URL,
ssl: { rejectUnauthorized: true },
extra: {
ssl: true,
},
};