forked from DebaucheryLibrarian/traxxx
Added database pool settings.
This commit is contained in:
parent
1d38ba1141
commit
1e707ccefa
|
@ -14,6 +14,13 @@ module.exports = {
|
|||
},
|
||||
timeout: 5000,
|
||||
graphiql: false,
|
||||
pool: {
|
||||
min: 0,
|
||||
max: 20,
|
||||
acquireTimeoutMillis: 300000,
|
||||
createTimeoutMillis: 300000,
|
||||
destroyTimeoutMillis: 300000,
|
||||
},
|
||||
},
|
||||
web: {
|
||||
host: '0.0.0.0',
|
||||
|
|
|
@ -6,6 +6,7 @@ const knex = require('knex');
|
|||
module.exports = knex({
|
||||
client: 'pg',
|
||||
connection: config.database.owner,
|
||||
pool: config.database.pool,
|
||||
// performance overhead, don't use asyncStackTraces in production
|
||||
asyncStackTraces: process.env.NODE_ENV === 'development',
|
||||
// debug: process.env.NODE_ENV === 'development',
|
||||
|
|
Loading…
Reference in New Issue