mirror of
https://github.com/alexgo-io/OPI.git
synced 2026-01-12 16:53:13 +08:00
Add DB_MAX_CONNECTIONS env variable
This commit is contained in:
@@ -5,6 +5,7 @@ DB_PORT="5432"
|
||||
DB_DATABASE="postgres_metaprotocol"
|
||||
DB_PASSWD=""
|
||||
DB_SSL="true"
|
||||
DB_MAX_CONNECTIONS=200
|
||||
|
||||
BITCOIN_CHAIN_FOLDER="~/.bitcoin/"
|
||||
ORD_BINARY="ord"
|
||||
|
||||
@@ -27,7 +27,7 @@ var db_pool = new Pool({
|
||||
database: process.env.DB_DATABASE || 'postgres',
|
||||
password: process.env.DB_PASSWD,
|
||||
port: parseInt(process.env.DB_PORT || "5432"),
|
||||
max: 200, // maximum number of clients!!
|
||||
max: process.env.DB_MAX_CONNECTIONS || 200, // maximum number of clients!!
|
||||
ssl: process.env.DB_SSL == 'true' ? true : false
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user