mirror of
https://github.com/Cameri/nostream.git
synced 2025-10-10 16:42:28 +02:00
chore: add DB_MIN_POOL_SIZE, DB_MAX_POOL_SIZE envs
This commit is contained in:
@@ -12,8 +12,8 @@ const createDbConfig = (): Knex.Config => ({
|
||||
database: process.env.DB_NAME,
|
||||
},
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 3,
|
||||
min: process.env.DB_MIN_POOL_SIZE ? Number(process.env.DB_MIN_POOL_SIZE) : 2,
|
||||
max: process.env.DB_MAX_POOL_SIZE ? Number(process.env.DB_MAX_POOL_SIZE) : 3,
|
||||
idleTimeoutMillis: 10000,
|
||||
},
|
||||
acquireConnectionTimeout: 2000,
|
||||
|
Reference in New Issue
Block a user