mirror of
https://github.com/Cameri/nostream.git
synced 2025-10-10 08:32: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,
|
database: process.env.DB_NAME,
|
||||||
},
|
},
|
||||||
pool: {
|
pool: {
|
||||||
min: 2,
|
min: process.env.DB_MIN_POOL_SIZE ? Number(process.env.DB_MIN_POOL_SIZE) : 2,
|
||||||
max: 3,
|
max: process.env.DB_MAX_POOL_SIZE ? Number(process.env.DB_MAX_POOL_SIZE) : 3,
|
||||||
idleTimeoutMillis: 10000,
|
idleTimeoutMillis: 10000,
|
||||||
},
|
},
|
||||||
acquireConnectionTimeout: 2000,
|
acquireConnectionTimeout: 2000,
|
||||||
|
Reference in New Issue
Block a user