Update SSL-related env for database connections (#5242)

This commit is contained in:
Ilango
2025-09-26 14:35:35 +05:30
committed by GitHub
parent cf6539cd3f
commit e48f28d13d
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ export function getDataSource(): DataSource {
export const getDatabaseSSLFromEnv = () => {
if (process.env.DATABASE_SSL_KEY_BASE64) {
return {
rejectUnauthorized: false,
rejectUnauthorized: process.env.DATABASE_REJECT_UNAUTHORIZED === 'true',
ca: Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base64')
}
} else if (process.env.DATABASE_SSL === 'true') {