Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(compose): forward the last six unreachable feature flags
Yudhi Armyndharis89b9cb8de6ae
diff --git a/.env.example b/.env.exampleindex 824f761e6..685074307 100644--- a/.env.example+++ b/.env.example@@ -266,11 +266,11 @@ POSTGRES_BUILTIN=false # Use built-in PostgreSQL container?# Production refuses to start if this is empty or a known placeholder when DATABASE_TYPE=postgres.# DATABASE_PASSWORD=DATABASE_SYNCHRONIZE=false # WARNING: Set false in production! (data DB)-DATABASE_LOGGING=false+# DATABASE_LOGGING=false# Auth/audit (main) DB schema management. Default ON (zero-config first boot).# Set to "false" to manage the api_keys/audit_logs schema via the bundled main-owned# migration instead of synchronize (migrationsRun creates them at boot).-MAIN_DATABASE_SYNCHRONIZE=true+# MAIN_DATABASE_SYNCHRONIZE=trueDATABASE_SSL=false # Set true for managed Postgres (Supabase, Heroku, Render, Railway)DATABASE_SSL_REJECT_UNAUTHORIZED=true # Set false to allow self-signed certs (only when DATABASE_SSL=true)# Postgres pool/query timeouts (ms). Defaults are conservative; set any to 0 to disable.@@ -586,7 +586,7 @@ WEBHOOK_SSRF_PROTECT=true# =============================================================================# Global message search (optional). Default ON, using the built-in DB full-text# provider (Postgres tsvector/GIN, SQLite FTS5) — zero external services.-SEARCH_ENABLED=true # set to false to disable the /search route + module entirely+# SEARCH_ENABLED=true # set to false to disable the /search route + module entirelySEARCH_PROVIDER=auto # auto | builtin-fts | none (plugin ids selectable once Spec 2 lands)SEARCH_LIMIT_MAX=100 # hard cap on the `limit` query paramdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex fb094a349..3c3832bcc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Fixed-- **Seven settings that did nothing under Docker now take effect** — Compose forwards environment explicitly and has no `env_file`, so `BAILEYS_MARK_ONLINE_ON_CONNECT`, `BAILEYS_SYNC_FULL_HISTORY`, `WEBHOOK_CONTACT_DETAILS`, `ALLOW_UNSIGNED_INGRESS`, `STORE_EPHEMERAL_MESSAGES`, `RESOLVE_LID_TO_PHONE` and `SIMULATE_TYPING` never reached the container however the operator's `.env` was written; the first of those left the paired phone's notifications suppressed for as long as the gateway stayed connected.+- **Thirteen settings that did nothing under Docker now take effect** — Compose forwards environment explicitly and has no `env_file`, so `BAILEYS_MARK_ONLINE_ON_CONNECT`, `BAILEYS_SYNC_FULL_HISTORY`, `WEBHOOK_CONTACT_DETAILS`, `ALLOW_UNSIGNED_INGRESS`, `STORE_EPHEMERAL_MESSAGES`, `RESOLVE_LID_TO_PHONE`, `SIMULATE_TYPING`, `MCP_ENABLED`, `SEARCH_ENABLED`, `SERVE_DASHBOARD`, `CACHE_ENABLED`, `DATABASE_LOGGING` and `MAIN_DATABASE_SYNCHRONIZE` never reached the container however the operator's `.env` was written — the MCP server could not be enabled at all, `SEARCH_ENABLED=false` did not disable the search route it documents, and `BAILEYS_MARK_ONLINE_ON_CONNECT` left the paired phone's notifications suppressed for as long as the gateway stayed connected.### Changeddiff --git a/docker-compose.dev.yml b/docker-compose.dev.ymlindex d294e69e0..4f33cbdd1 100644--- a/docker-compose.dev.yml+++ b/docker-compose.dev.yml@@ -98,6 +98,12 @@ services:- STORE_EPHEMERAL_MESSAGES=${STORE_EPHEMERAL_MESSAGES:-}- RESOLVE_LID_TO_PHONE=${RESOLVE_LID_TO_PHONE:-}- SIMULATE_TYPING=${SIMULATE_TYPING:-}+ - MCP_ENABLED=${MCP_ENABLED:-}+ - SEARCH_ENABLED=${SEARCH_ENABLED:-}+ - SERVE_DASHBOARD=${SERVE_DASHBOARD:-}+ - CACHE_ENABLED=${CACHE_ENABLED:-}+ - DATABASE_LOGGING=${DATABASE_LOGGING:-}+ - MAIN_DATABASE_SYNCHRONIZE=${MAIN_DATABASE_SYNCHRONIZE:-}- RATE_LIMIT_SHORT_TTL=${RATE_LIMIT_SHORT_TTL:-}- RATE_LIMIT_SHORT_LIMIT=${RATE_LIMIT_SHORT_LIMIT:-}- RATE_LIMIT_MEDIUM_TTL=${RATE_LIMIT_MEDIUM_TTL:-}diff --git a/docker-compose.yml b/docker-compose.ymlindex fb9fb69fa..b388ca4dd 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -230,6 +230,12 @@ services:- STORE_EPHEMERAL_MESSAGES=${STORE_EPHEMERAL_MESSAGES:-}- RESOLVE_LID_TO_PHONE=${RESOLVE_LID_TO_PHONE:-}- SIMULATE_TYPING=${SIMULATE_TYPING:-}+ - MCP_ENABLED=${MCP_ENABLED:-}+ - SEARCH_ENABLED=${SEARCH_ENABLED:-}+ - SERVE_DASHBOARD=${SERVE_DASHBOARD:-}+ - CACHE_ENABLED=${CACHE_ENABLED:-}+ - DATABASE_LOGGING=${DATABASE_LOGGING:-}+ - MAIN_DATABASE_SYNCHRONIZE=${MAIN_DATABASE_SYNCHRONIZE:-}# Rate limits. Blank values are cleared before lower-priority generated config is loaded.- RATE_LIMIT_SHORT_TTL=${RATE_LIMIT_SHORT_TTL:-}- RATE_LIMIT_SHORT_LIMIT=${RATE_LIMIT_SHORT_LIMIT:-}diff --git a/src/config/env-precedence.ts b/src/config/env-precedence.tsindex 5cb4a98dc..32d24b4c9 100644--- a/src/config/env-precedence.ts+++ b/src/config/env-precedence.ts@@ -85,6 +85,12 @@ export const BLANK_SHADOWED_ENV_KEYS: string[] = ['STORE_EPHEMERAL_MESSAGES','RESOLVE_LID_TO_PHONE','SIMULATE_TYPING',+ 'MCP_ENABLED',+ 'SEARCH_ENABLED',+ 'SERVE_DASHBOARD',+ 'CACHE_ENABLED',+ 'DATABASE_LOGGING',+ 'MAIN_DATABASE_SYNCHRONIZE',// Redis selection + connection details (#488)'REDIS_ENABLED','REDIS_HOST',diff --git a/src/modules/docker/compose-parity.spec.ts b/src/modules/docker/compose-parity.spec.tsindex 84aa19d9d..0d0a8b133 100644--- a/src/modules/docker/compose-parity.spec.ts+++ b/src/modules/docker/compose-parity.spec.ts@@ -282,15 +282,6 @@ describe('DockerService managed specs ↔ docker-compose.yml parity', () => {ALLOW_DEV_API_KEY: 'refused outright in production',// MCP_READONLY is deliberately absent: env.validation.ts leaves it out of the strict list on// purpose (mcp.server.spec.ts asserts 'yes' keeps read-only on), so it is not in scope here.- // Pre-existing and not yet reviewed: these are module-level or diagnostic toggles that an- // operator currently cannot set under compose. Listed so the gate is honest about them rather- // than silently green; each needs its own decision before being forwarded.- MCP_ENABLED: 'pending review',- SEARCH_ENABLED: 'pending review',- SERVE_DASHBOARD: 'pending review',- CACHE_ENABLED: 'pending review',- DATABASE_LOGGING: 'pending review',- MAIN_DATABASE_SYNCHRONIZE: 'pending review',};const src = readFileSync(join(__dirname, '..', '..', 'config/env.validation.ts'), 'utf8');