Skip to content

Commit 09b3c41

Browse files
fix: db ssl ca param fixes
1 parent 3ce7d72 commit 09b3c41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/backend/src/database/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DatabaseConnection {
4242
idleTimeoutMillis: 120000, // Close idle clients after 30 seconds
4343
connectionTimeoutMillis: 2000, // Return an error after 2 seconds if connection could not be established
4444
ssl: config.ssl ? {
45-
ca: readFileSync(config.ca_path).toString(),
45+
ca: config.ca_path ? readFileSync(config.ca_path).toString() : undefined,
4646
rejectUnauthorized: true,
4747
} : false,
4848
});

0 commit comments

Comments
 (0)