Skip to content

Commit 818751b

Browse files
committed
Fix PostgreSQL SSL configuration for DigitalOcean
1 parent 637e070 commit 818751b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/cyber-forensics-platform/src/lib/database-postgres.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ class PostgresDatabaseManager {
44
constructor() {
55
this.pool = new Pool({
66
connectionString: process.env.DATABASE_URL,
7-
ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false
7+
ssl: process.env.NODE_ENV === 'production' ? {
8+
rejectUnauthorized: false
9+
} : false
810
});
911
}
1012

0 commit comments

Comments
 (0)