From 46025a235d1e48867b173d64600f7a9a77534050 Mon Sep 17 00:00:00 2001 From: Max Polsky Date: Wed, 15 May 2024 13:28:24 +0300 Subject: [PATCH] Add SSL configuration to Postgres connection pool --- libs/external-db-postgres/src/connection_provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/external-db-postgres/src/connection_provider.ts b/libs/external-db-postgres/src/connection_provider.ts index 211b5ac84..659a5562c 100644 --- a/libs/external-db-postgres/src/connection_provider.ts +++ b/libs/external-db-postgres/src/connection_provider.ts @@ -26,7 +26,7 @@ export default (cfg: PostgresConfig, _poolOptions: postgresPoolOptions) => { } const filterParser = new FilterParser() - const pool = new Pool({ ...config, ...poolOptions }) + const pool = new Pool({ ...config, ...poolOptions, ssl: { rejectUnauthorized: false } }) const databaseOperations = new DatabaseOperations(pool) const dataProvider = new DataProvider(pool, filterParser)