Skip to content

Commit

Permalink
Allow unverified SSL certificates.
Browse files Browse the repository at this point in the history
  • Loading branch information
adunkman committed Sep 1, 2021
1 parent f0a82dd commit 358503c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sequelize-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ const {
} = process.env;

module.exports = {
"all": {
"url": DATABASE_URL,
"dialect": "postgres",
"ssl": NODE_ENV === "production",
"dialectOptions": {
"ssl": NODE_ENV === "production"
},
all: {
url: DATABASE_URL,
dialect: "postgres",
ssl: NODE_ENV === "production",
dialectOptions: NODE_ENV === "production"
// Heroku does not support verifiable certificates
? { ssl: { rejectUnauthorized: false } }
: {},
}
}

0 comments on commit 358503c

Please sign in to comment.