1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: set default DATABASE_SSL to not rejectUnauthorized (#817)

This commit is contained in:
Ivar Conradi Østhus 2021-04-28 10:55:11 +02:00 committed by GitHub
parent 886e0bb008
commit 8c4a6a1e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ const defaultDbOptions: IDBOption = {
ssl:
process.env.DATABASE_SSL != null
? JSON.parse(process.env.DATABASE_SSL)
: undefined,
: { rejectUnauthorized: false },
driver: 'postgres',
version: process.env.DATABASE_VERSION,
pool: {

View File

@ -88,6 +88,7 @@ export default async function init(databaseSchema = 'test', getLogger) {
...dbConfig.getDb(),
pool: { min: 2, max: 8 },
schema: databaseSchema,
ssl: false,
},
getLogger,
});