diff --git a/libs/external-db-postgres/src/connection_provider.ts b/libs/external-db-postgres/src/connection_provider.ts index 211b5ac84..ce5ec70f7 100644 --- a/libs/external-db-postgres/src/connection_provider.ts +++ b/libs/external-db-postgres/src/connection_provider.ts @@ -18,6 +18,7 @@ export default (cfg: PostgresConfig, _poolOptions: postgresPoolOptions) => { max: 10, idleTimeoutMillis: 30000, connectionTimeoutMillis: 10000, + ssl: process.env['SSL'] === 'true' ? { rejectUnauthorized: false } : undefined, } const poolOptions = _poolOptions || {}