Skip to content

Commit 525a23a

Browse files
committed
Add max connections and idle timeout
1 parent 4f637da commit 525a23a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ addDefaults(config, {
7979
user: "",
8080
host: "",
8181
password: "",
82-
port: 5432
82+
port: 5432,
83+
max: 10,
84+
idleTimeoutMillis: 10000
8385
},
8486
postgresReadOnly: {
8587
enabled: false,
@@ -88,7 +90,9 @@ addDefaults(config, {
8890
host: "",
8991
password: "",
9092
port: 5432,
91-
readTimeout: 250
93+
readTimeout: 250,
94+
max: 10,
95+
idleTimeoutMillis: 10000
9296
},
9397
dumpDatabase: {
9498
enabled: false,

0 commit comments

Comments
 (0)