From 525a23abfb188d3ae648dc1dc38003718898ab1b Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 19 Aug 2022 18:45:02 -0400 Subject: [PATCH] Add max connections and idle timeout --- src/config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index b39effa..79e9c76 100644 --- a/src/config.ts +++ b/src/config.ts @@ -79,7 +79,9 @@ addDefaults(config, { user: "", host: "", password: "", - port: 5432 + port: 5432, + max: 10, + idleTimeoutMillis: 10000 }, postgresReadOnly: { enabled: false, @@ -88,7 +90,9 @@ addDefaults(config, { host: "", password: "", port: 5432, - readTimeout: 250 + readTimeout: 250, + max: 10, + idleTimeoutMillis: 10000 }, dumpDatabase: { enabled: false,