# Copy to .env and replace SECRET_KEY before using the server. # Node loads .env from its working directory. Existing environment values win. # Docker Compose forwards the supported variables below to the container. # Empty optional values retain their defaults. This file contains no real secrets. SECRET_KEY=replace-with-a-long-random-secret HOST=http://localhost # Compose uses PORT for both the container listener and the published host port. PORT=21465 WEBHOOK_URL= # Additional exact destinations session configuration may select, comma-separated. WEBHOOK_ALLOWED_URLS= # Exact Chatwoot base URLs approved by the operator, including self-hosted URLs. CHATWOOT_ALLOWED_URLS= # Total attempts (1 disables retries), initial backoff and per-request timeout in ms. WEBHOOK_RETRY_ATTEMPTS=3 WEBHOOK_RETRY_DELAY=5000 WEBHOOK_REQUEST_TIMEOUT=30000 # Bytes; larger media is not inlined as base64 in webhooks (0 = no limit). WEBHOOK_AUTO_DOWNLOAD_MAX_SIZE=0 # Supported token stores: file, redis, mongodb. TOKEN_STORE_TYPE=file MAX_LISTENERS=15 # Keep a trailing slash. Relative paths use the server working directory. # In Compose, keep data inside the userDataDir volume or adjust the volume too. CUSTOM_USER_DATA_DIR=./userDataDir/ # The UI is bundled in the Docker image. Set false to disable /manager/. MANAGER_ENABLED=true # Optional static bundle path. Empty uses ./manager (local) or the image bundle. # Container paths refer to paths inside the container. MANAGER_DIST= # Only used with TOKEN_STORE_TYPE=redis. Provision the Redis server separately. REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD= REDIS_DB=0 REDIS_PREFIX=docker # Only used with TOKEN_STORE_TYPE=mongodb. Provision MongoDB separately. # MONGO_URL_REMOTE is the connection URI used by the default remote mode. MONGO_URL_REMOTE= MONGODB_DATABASE=tokens MONGODB_COLLECTION= # The following host/user/port fields apply when db.mongoIsRemote=false in config.ts. MONGODB_USER= MONGODB_PASSWORD= MONGODB_HOST= MONGODB_PORT=27017 # Docker Compose only: pin a published X.Y.Z tag for reproducible deployments. WPP_SERVER_TAG=latest