Merge pull request #1 from t4t5/main

Add `DB_MAX_CONNECTIONS` env variable
This commit is contained in:
Halil Samed Çıldır
2023-12-14 08:49:59 +02:00
committed by GitHub
6 changed files with 6 additions and 3 deletions

View File

@@ -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"

View File

@@ -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")

View File

@@ -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"

View File

@@ -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")

View File

@@ -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"

View File

@@ -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
})