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

Commit

Permalink
Merge pull request #12 from LBHackney-IT/fix-ssl-error
Browse files Browse the repository at this point in the history
Fix self-signed certificate error when connecting to PG
  • Loading branch information
em-cd committed Dec 20, 2021
2 parents 0cf05ab + db4194e commit a0626aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/PostgresDb.js
Expand Up @@ -9,7 +9,9 @@ const pgp = require('pg-promise')({

const PostgresDb = pgp({
connectionString: process.env.DATABASE_URL,
ssl: true
ssl: {
rejectUnauthorized: false
}
});

module.exports = PostgresDb;

0 comments on commit a0626aa

Please sign in to comment.