Skip to content

Commit

Permalink
fix: reject unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar authored Jan 11, 2021
1 parent cbdcf1a commit ad476cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ module.exports = ({
defaults.password ||
"",
database,
ssl: Boolean(process.env.POSTGRES_SSL),
rejectUnauthorized: false,
ssl: process.env.POSTGRES_SSL
? Boolean(process.env.POSTGRES_SSL)
: {
rejectUnauthorized: false,
},
}

const createDatabase = async (dbName) => {
Expand Down

0 comments on commit ad476cb

Please sign in to comment.