Skip to content

Configuration ​

Chinwag has two kinds of configuration:

  • Deployment settings in /opt/chinwag/.env — secrets and infrastructure. Restart after editing: chinwag restart.
  • Application settings in the dashboard under Settings — stored in the database and applied immediately.

Environment (.env) ​

VariableDefaultDescription
BASE_URL—Public URL, e.g. https://chat.example.com. Used for OAuth, MCP and links; must be HTTPS in production.
HOST / PORT127.0.0.1 / 3100Listen address. Keep it on localhost behind a proxy.
TRUST_PROXY1Number of proxies in front (for client IPs and HTTPS detection).
DATABASE_URL—mysql://user:pass@host:port/db. MySQL 8 or MariaDB 10.6+, utf8mb4.
DATA_DIR/var/lib/chinwagWhatsApp sessions, media and runtime files.
APP_ENCRYPTION_KEYgenerated32 bytes (base64 or hex). Encrypts stored webhook and OAuth secrets. Back it up separately; losing it makes those secrets unrecoverable.
SETUP_TOKENgeneratedOne-time token for /setup. Can be cleared after setup.
CHROMIUM_PATHdetectedBrowser executable (/usr/bin/google-chrome-stable or /usr/bin/chromium).
CHROMIUM_DISABLE_SANDBOXfalseOnly if the kernel cannot run the browser sandbox. Reduces isolation.
CHROMIUM_START_CONCURRENCY2Maximum browsers starting at the same time.
WEBHOOK_ALLOWED_PRIVATE_CIDRSemptyAllow webhooks to private networks, e.g. 10.0.5.0/24. Empty blocks all private/reserved ranges.
LOG_LEVELinfoerror, warn, info, debug.

Application settings ​

GroupSettings
GeneralApplication name, logo URL, base URL, default timezone and language
Sessions & sign-inSession lifetime, idle timeout, failed sign-ins before lockout, lockout duration, minimum password length
WhatsAppMaximum connected accounts, initial sync (chats and messages per chat), automatic media download, automatic reconnect attempts
Messaging & storageMaximum attachment size, scheduled message expiry, message / media / activity-log retention
IntegrationsDefault approval policy for new MCP connections, API rate limit, dynamic OAuth client registration

Released under the AGPL-3.0 licence. Not affiliated with WhatsApp or Meta.