mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
fix(db): let a PgBouncer host turn the session startup options off
The statement timeout and, since v1.42, work_mem reach Postgres as the libpq options startup parameter, which PgBouncer refuses unless it is in ignore_startup_parameters. A host behind it could drop the string by setting the timeout to 0; work_mem is now always sent, so that no longer worked. DATABASE_SESSION_OPTIONS_DISABLED sends no session settings, documented in the example env, the env manifest, the compose whitelist and the scaling guide.
This commit is contained in:
1 parent
f950dffad4
commit
7c6510eba9
6 files changed
+54
-2
No files matched your search
@@ -74,6 +74,9 @@ x-healthlog-env: &healthlog_env
|
||||
DATABASE_STATEMENT_TIMEOUT_MS: "${DATABASE_STATEMENT_TIMEOUT_MS:-}"
|
||||
# Postgres work_mem for every app session (default 16MB).
|
||||
DATABASE_WORK_MEM: "${DATABASE_WORK_MEM:-}"
|
||||
# 1 sends neither of the two settings above (they ride the libpq `options`
|
||||
# startup parameter, which PgBouncer refuses by default).
|
||||
DATABASE_SESSION_OPTIONS_DISABLED: "${DATABASE_SESSION_OPTIONS_DISABLED:-}"
|
||||
WITHINGS_WEBHOOK_SECRET: "${WITHINGS_WEBHOOK_SECRET:-}"
|
||||
# Overrides the derived `${NEXT_PUBLIC_APP_URL}/api/withings/callback`;
|
||||
# set it when the URL registered with Withings differs from the app's own
|
||||
|
||||
Reference in new issue
Block a user