Skip to content

Commit

Permalink
[db] patch ability to enable SSL for database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-u410 committed Nov 18, 2024
1 parent c5fac3e commit 7989628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/common-ts/src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const connectDatabase = async (options: ConnectOptions): Promise<Sequeliz
username,
password,
database,
ssl: sslEnabled,
dialectOptions: {
ssl: sslEnabled ? { require: true, rejectUnauthorized: false } : false,
},
pool: {
max: poolMax,
min: poolMin,
Expand Down

0 comments on commit 7989628

Please sign in to comment.