Skip to content

Commit

Permalink
fix: SSL connection
Browse files Browse the repository at this point in the history
Connect to DB via SSL
  • Loading branch information
marcobiedermann committed Aug 7, 2020
1 parent e6a96c1 commit df2ee9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/sequelize.ts
Expand Up @@ -13,6 +13,9 @@ function logging(message: string): void {
}

const sequelize = new Sequelize(url, {
dialectOptions: {
ssl: process.env.NODE_ENV === 'production',
},
logging,
});

Expand Down

0 comments on commit df2ee9e

Please sign in to comment.