Skip to content

Commit 0b5da69

Browse files
committed
sslmode query param to postgresql connection
1 parent c542371 commit 0b5da69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/config/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
dialect: 'postgres',
33
// host: '127.0.0.1',
4-
host: process.env.POSTGRES_HOST,
4+
host: `${process.env.POSTGRES_HOST}?sslmode=require`,
55
username: process.env.POSTGRES_USER,
66
password: process.env.POSTGRES_PASSWORD,
77
database: process.env.POSTGRES_DB,

0 commit comments

Comments
 (0)