Skip to content

Commit

Permalink
fixup for SSL mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdon Barrett committed May 15, 2020
1 parent ae37bcf commit 2c4d55e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/db/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if (DATABASE_URL) {
let match = DATABASE_URL.match(postgresRegex)
sequelize = new Sequelize(match[5], match[1], match[2], {
dialect: 'postgres',
dialectOptions: {
ssl: true
},
protocol: 'postgres',
port: match[4],
host: match[3],
Expand Down

0 comments on commit 2c4d55e

Please sign in to comment.