Skip to content

Commit

Permalink
ignore-self-signed-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiddle committed Jan 21, 2021
1 parent 51e660e commit 32a47f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports.setDatabaseUrl = (url) => databaseUrl = url
module.exports.getDatabaseUrl = () => databaseUrl

const params = url.parse(databaseUrl);
let ssl = ( PGSSLMODE === 'require' ),
let ssl = ( PGSSLMODE === 'require' || PGSSLMODE === 'no-verify' ? { rejectUnauthorized: false } : false),
auth = params.auth.split(':'),
config = {
user: auth[0],
Expand Down

0 comments on commit 32a47f6

Please sign in to comment.