Skip to content

Commit

Permalink
Update dbConfig.js
Browse files Browse the repository at this point in the history
With update to pg & sequelize & postgres image this new ssl setting was required.
  • Loading branch information
BuckinghamAJ authored Jan 31, 2024
1 parent 9b9c044 commit e0d90ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/config/dbConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ if (process.env.VCAP_SERVICES) {
host: VCAP['aws-rds'][0]['credentials']['host'],
port: VCAP['aws-rds'][0]['credentials']['port'],
dialect: 'postgres',
logging: false
logging: false,
dialectOptions: {
ssl: {
require: true,
rejectUnauthorized: false // Related to: https://stackoverflow.com/questions/58965011/sequelizeconnectionerror-self-signed-certificate
}
},
}

dbConfig= {
Expand Down

0 comments on commit e0d90ac

Please sign in to comment.