Skip to content

Commit eb94903

Browse files
authored
Merge pull request #167 from bennyhodl/sqlx-connection-mgmt
sqlx connection mgmt
2 parents bba6db0 + 5b73ad7 commit eb94903

5 files changed

Lines changed: 347 additions & 369 deletions

File tree

.env.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ POSTGRES_PASS=dlcdevkit
44
POSTGRES_HOST=localhost:5432
55
POSTGRES_DB=ddk
66
DATABASE_URL=postgres://dlcdevkit:dlcdevkit@localhost:5432/ddk
7+
# Max size of the Postgres connection pool. Defaults to 5; raise to 20+ for production.
8+
DATABASE_MAX_CONNECTIONS=5
79

810
ESPLORA_HOST=http://localhost:30000
11+
# Esplora request timeout in seconds. Defaults to 5.
12+
ESPLORA_TIMEOUT_SECONDS=5
913

1014
BITCOIND_USER=dlcdevkit
1115
BITCOIND_PASS=dlcdevkit

0 commit comments

Comments
 (0)