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

Commit

Permalink
Fix self-signed certificate error when connecting to PG
Browse files Browse the repository at this point in the history
  • Loading branch information
em-cd committed Dec 16, 2021
1 parent 0cf05ab commit db4194e
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 db4194e

Please sign in to comment.