Skip to content

Commit

Permalink
Postgres ssl configuration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashchandrab committed Mar 6, 2023
1 parent 221e1fe commit 632f5d3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ const config = {
"database": process.env.DB_NAME ||"dbname",
"host": process.env.DB_HOST|| "localhost",
"dialect": process.env.DB_DIALECT || "postgres",
"ssl" : {
"rejectUnauthorized": false //process.env.DB_REJECT_UNAUTHORIZED || false,
//ca : fs.existsSync(process.env.DB_SSL_CERT_PATH) ? fs.readFileSync(process.env.DB_SSL_CERT_PATH) : ""
"dialectOptions": {
"ssl": {
"rejectUnauthorized": false, // Explicitly disabling the ssl by this flag
}
},
"benchmark":true,
"pool":{
Expand All @@ -27,10 +28,11 @@ const config = {
"host": process.env.DB_HOST,
"port" : process.env.DB_PORT || 9999,
"dialect": process.env.DB_DIALECT || "postgres",
"ssl" : {
"rejectUnauthorized": false//process.env.DB_REJECT_UNAUTHORIZED || false,
// ca : fs.existsSync(process.env.DB_SSL_CERT_PATH) ? fs.readFileSync(process.env.DB_SSL_CERT_PATH) : ""
},
"dialectOptions": {
"ssl": {
"rejectUnauthorized": false, // Explicitly disabling the ssl by this flag
}
},
"pool":{
max:300
},
Expand Down

0 comments on commit 632f5d3

Please sign in to comment.