41 lines
1.7 KiB
Shell
41 lines
1.7 KiB
Shell
# ┌─────────────────────────────────────────────────────────┐
|
|
# │ POORT OVERZICHT (nextcloud server) │
|
|
# │ 3001 = wwebjs-api (Docker container, WhatsApp bridge) │
|
|
# │ 3002 = dienst-bot (systemd, deze service) │
|
|
# │ 3004 = telegram-bot (systemd, watchdog) │
|
|
# │ 3000 = Forgejo (NIET onze service!) │
|
|
# └─────────────────────────────────────────────────────────┘
|
|
|
|
# WhatsApp API Configuration
|
|
WHATSAPP_API_ENDPOINT=http://localhost:3001
|
|
WHATSAPP_SESSION=EdGpt
|
|
|
|
# Webhook Configuration
|
|
WEBHOOK_PORT=3002
|
|
ALLOWED_GROUP=120363407613652082@g.us
|
|
BOT_NAME=EdGpt
|
|
|
|
# Paths
|
|
DIENSTEN_DIR=../Whatsapp_Dienst/diensten
|
|
|
|
# Rate limiting
|
|
MAX_REQUESTS_PER_DAY=5
|
|
|
|
# Ack tracking (ghost-send detectie; vereist message_ack aangezet in wwebjs-api .env)
|
|
ACK_STUCK_TIMEOUT_MS=300000 # 5 min zonder ack 2 = stuck
|
|
ACK_PRUNED_AFTER_MS=1800000 # 30 min: stale trackings opruimen (loop stopt dan)
|
|
ACK_CHECK_INTERVAL_MS=30000 # checkinterval (alleen actief als er iets pending is)
|
|
|
|
# Admin notifications
|
|
ADMIN_NUMBER=31612345678@c.us
|
|
|
|
# Telegram watchdog (fallback when WhatsApp API is down)
|
|
TELEGRAM_BOT_URL=http://localhost:3004
|
|
|
|
# Telegram watchdog configuration (telegram-bot process)
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_ADMIN_CHAT_ID=
|
|
TELEGRAM_BOT_PORT=3004
|
|
DIENST_BOT_HEALTH_URL=http://localhost:3002/health
|
|
WWEBJS_API_SESSION_URL=http://192.168.5.252:3001/session/status/EdGpt
|
|
HEALTH_CHECK_INTERVAL_MS=300000
|