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:
parent
886e0bb008
commit
8c4a6a1e18
@ -57,7 +57,7 @@ const defaultDbOptions: IDBOption = {
|
|||||||
ssl:
|
ssl:
|
||||||
process.env.DATABASE_SSL != null
|
process.env.DATABASE_SSL != null
|
||||||
? JSON.parse(process.env.DATABASE_SSL)
|
? JSON.parse(process.env.DATABASE_SSL)
|
||||||
: undefined,
|
: { rejectUnauthorized: false },
|
||||||
driver: 'postgres',
|
driver: 'postgres',
|
||||||
version: process.env.DATABASE_VERSION,
|
version: process.env.DATABASE_VERSION,
|
||||||
pool: {
|
pool: {
|
||||||
|
@ -88,6 +88,7 @@ export default async function init(databaseSchema = 'test', getLogger) {
|
|||||||
...dbConfig.getDb(),
|
...dbConfig.getDb(),
|
||||||
pool: { min: 2, max: 8 },
|
pool: { min: 2, max: 8 },
|
||||||
schema: databaseSchema,
|
schema: databaseSchema,
|
||||||
|
ssl: false,
|
||||||
},
|
},
|
||||||
getLogger,
|
getLogger,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user