Skip to content

Commit

Permalink
ssl postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
cklat committed Oct 22, 2023
1 parent 1790f5d commit 12893c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const pgClient = new Pool({
host: keys.pgHost,
database: keys.pgDatabase,
password: keys.pgPassword,
port: keys.pgPort
port: keys.pgPort,
ssl: {rejectUnauthorized: false}
})
pgClient.on('error', () => {
console.log('LOST PG Connection')
Expand Down

0 comments on commit 12893c3

Please sign in to comment.