Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

1.2 KB
Raw Blame
# ===========================================
# OpenWA - Environment Configuration (Minimal)
# ===========================================
# This is a minimal configuration for development
# and single-session personal bots using SQLite.

# Auto-start previously authenticated sessions on server boot
AUTO_START_SESSIONS=false

# Server
PORT=2785
NODE_ENV=development

# Database (SQLite - no external service required)
DATABASE_TYPE=sqlite
DATABASE_NAME=./data/openwa.sqlite
DATABASE_SYNCHRONIZE=true
DATABASE_LOGGING=false

# WhatsApp Engine
ENGINE_TYPE=whatsapp-web.js
SESSION_DATA_PATH=./data/sessions
PUPPETEER_HEADLESS=true
PUPPETEER_ARGS=--no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage,--disable-gpu

# Webhook
WEBHOOK_TIMEOUT=10000
WEBHOOK_RETRY_DELAY=5000

# Storage (Local filesystem)
STORAGE_TYPE=local
STORAGE_LOCAL_PATH=./data/media

# Redis & Queue (disabled for minimal setup)
REDIS_ENABLED=false
# REDIS_BUILTIN=false
QUEUE_ENABLED=false
CACHE_ENABLED=false

# Built-in Docker services (all disabled for minimal setup)
# POSTGRES_BUILTIN=false
# MINIO_BUILTIN=false

# API Security (optional for development)
# API_MASTER_KEY=your-master-api-key-here