mirror of
https://github.com/alexgo-io/OPI.git
synced 2026-01-12 16:53:13 +08:00
Merge pull request #1 from t4t5/main
Add `DB_MAX_CONNECTIONS` env variable
This commit is contained in:
@@ -5,6 +5,7 @@ DB_PORT="5432"
|
||||
DB_DATABASE="postgres_bitmap"
|
||||
DB_PASSWD=""
|
||||
DB_SSL="true"
|
||||
DB_MAX_CONNECTIONS=200
|
||||
|
||||
API_HOST="127.0.0.1"
|
||||
API_PORT="8001"
|
||||
|
||||
@@ -15,7 +15,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: 100, // maximum number of clients!!
|
||||
max: process.env.DB_MAX_CONNECTIONS || 100, // maximum number of clients!!
|
||||
ssl: process.env.DB_SSL == 'true' ? true : false
|
||||
})
|
||||
const api_port = parseInt(process.env.API_PORT || "8001")
|
||||
|
||||
@@ -5,6 +5,7 @@ DB_PORT="5432"
|
||||
DB_DATABASE="postgres_brc20"
|
||||
DB_PASSWD=""
|
||||
DB_SSL="true"
|
||||
DB_MAX_CONNECTIONS=200
|
||||
|
||||
API_HOST="127.0.0.1"
|
||||
API_PORT="8000"
|
||||
|
||||
@@ -15,7 +15,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: 100, // maximum number of clients!!
|
||||
max: process.env.DB_MAX_CONNECTIONS || 100, // maximum number of clients!!
|
||||
ssl: process.env.DB_SSL == 'true' ? true : false
|
||||
})
|
||||
const api_port = parseInt(process.env.API_PORT || "8000")
|
||||
|
||||
@@ -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