Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,34 @@
; PgBouncer config for boilerplate.
;
; Mounted at /etc/pgbouncer/pgbouncer.ini inside the edoburu/pgbouncer container.
; See docs/ops/pgbouncer.md for tuning rationale and rollback.
;
; Pool-mode rationale: `transaction` is the default for Prisma-style web workloads.
; Pair it with `pgbouncer=true&connection_limit=10` on DATABASE_URL so Prisma
; disables prepared-statement caching (transaction pooling breaks them).
; Prisma `migrate`, `db push`, `db pull` must use DIRECT_URL (port 5432, direct
; to Postgres) — see schema.prisma `directUrl`.
[databases]
boilerplate = host=postgres port=5432 dbname=boilerplate_validation
[pgbouncer]
listen_addr = 0.0.0.0
listen_port = 6432
pool_mode = transaction
default_pool_size = 25
max_client_conn = 1000
reserve_pool_size = 5
reserve_pool_timeout = 3
server_idle_timeout = 600
server_lifetime = 3600
query_timeout = 0
query_wait_timeout = 30
server_reset_query = DISCARD ALL
server_check_query = SELECT 1
server_check_delay = 30
admin_users = pgb_admin
stats_users = pgb_admin
auth_type = scram-sha-256
auth_file = /etc/pgbouncer/userlist.txt
ignore_startup_parameters = extra_float_digits,search_path
@@ -0,0 +1,19 @@
; userlist.txt template for PgBouncer (SCRAM-SHA-256 entries).
;
; Real `userlist.txt` is generated at deploy time from Coolify secrets and
; mounted at /etc/pgbouncer/userlist.txt. Never commit a real password hash.
;
; Format: "username" "SCRAM-SHA-256$<iterations>:<salt>$<storedkey>:<serverkey>"
;
; Generate a SCRAM-SHA-256 line for a known plaintext password with psql:
;
; psql -h <postgres-host> -U postgres -tAc \
; "SELECT '\"'||rolname||'\" \"'||rolpassword||'\"' \
; FROM pg_authid WHERE rolname IN ('app_user', 'pgb_admin');"
;
; (Postgres must have been initialised with password_encryption=scram-sha-256
; for the stored hash to be SCRAM rather than md5.)
;
; Example entries — replace with real SCRAM hashes from Coolify secrets:
"app_user" "SCRAM-SHA-256$4096:REPLACE_ME_SALT$REPLACE_ME_STORED_KEY:REPLACE_ME_SERVER_KEY"
"pgb_admin" "SCRAM-SHA-256$4096:REPLACE_ME_SALT$REPLACE_ME_STORED_KEY:REPLACE_ME_SERVER_KEY"