Skip to content

Commit ce53919

Browse files
authored
fix: Disable SSL for PostgreSQL connection
Resolved the issue "The server does not support SSL connections" by disabling SSL in the PostgreSQL connection configuration. Updated the `config/db.js` file to set `ssl: false`. - Disabled SSL in `config/db.js` - Ensured the application connects to PostgreSQL without SSL
1 parent d7bba9d commit ce53919

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/db.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const pool = new Pool({
88
password: process.env.DB_PASSWORD,
99
port: process.env.DB_PORT,*/
1010
connectionString: process.env.DATABASE_URL,
11-
ssl: {
12-
rejectUnauthorized: false,
13-
},
11+
ssl: false, // Disable SSL
1412
});
1513

1614
pool.on('connect', () => {

0 commit comments

Comments
 (0)