Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit db4194e

Browse files
committed
Fix self-signed certificate error when connecting to PG
As per brianc/node-postgres#2009
1 parent 0cf05ab commit db4194e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/PostgresDb.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const pgp = require('pg-promise')({
99

1010
const PostgresDb = pgp({
1111
connectionString: process.env.DATABASE_URL,
12-
ssl: true
12+
ssl: {
13+
rejectUnauthorized: false
14+
}
1315
});
1416

1517
module.exports = PostgresDb;

0 commit comments

Comments
 (0)