Skip to content

Commit

Permalink
Use fixed SSL options to connect to Sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
simhonchourasia committed Jul 9, 2023
1 parent b8753f0 commit cb0c71a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/typescript/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ const DATABASE_URL =
/* eslint-disable-next-line import/prefer-default-export */
export const sequelize = new Sequelize(DATABASE_URL, {
models: [path.join(__dirname, "/*.model.ts")],
ssl: true,
// ssl: true,
dialectOptions: {
ssl: true,
ssl: {
require: true,
rejectUnauthorized: false,
}
},
});

0 comments on commit cb0c71a

Please sign in to comment.