fix(db): add more options for SSL connection, add envvar for base64 db cert (#1533)

This commit is contained in:
Waleed
2025-10-02 15:53:45 -07:00
committed by GitHub
parent 4bc37db547
commit fa9c97816b
12 changed files with 414 additions and 59 deletions

View File

@@ -1,6 +1,8 @@
# Database (Required)
DATABASE_URL="postgresql://postgres:password@localhost:5432/postgres"
# DATABASE_SSL=TRUE # Optional: Enable SSL for database connections (defaults to FALSE)
# DATABASE_SSL=disable # Optional: SSL mode (disable, prefer, require, verify-ca, verify-full)
# DATABASE_SSL_CA= # Optional: Base64-encoded CA certificate (required for verify-ca/verify-full)
# To generate: cat your-ca.crt | base64 | tr -d '\n'
# PostgreSQL Port (Optional) - defaults to 5432 if not specified
# POSTGRES_PORT=5432