forked from andresayac/baileys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (25 loc) · 905 Bytes
/
.env.example
File metadata and controls
31 lines (25 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Api host and port
HOST=127.0.0.1
PORT=8000
# Number retry to connect to whatsapp -1 for infinite
MAX_RETRIES=-1
# Maximun time to connect to whatsapp
RECONNECT_INTERVAL=5000
# Authentication
AUTHENTICATION_GLOBAL_AUTH_TOKEN=A4gx18YGxKAvR01ClcHpcR7TjZUNtwvE
# WEBHOOK CONFIGURATION
APP_WEBHOOK_URL="https://webhook.site/dbf387ed-a861-4ae9-9b30-9344c972cb74"
APP_WEBHOOK_ALLOWED_EVENTS=MESSAGES_UPSERT,MESSAGES_DELETE,MESSAGES_UPDATE
APP_WEBHOOK_FILE_IN_BASE64=false
# Session persistence driver: mysql | json
SESSION_STORAGE_DRIVER=mysql
# MySQL persistence (used when SESSION_STORAGE_DRIVER=mysql)
DB_USER=root
DB_PASWD=""
DB_NAME=baileys_api
DB_POOL_LIMIT=30
DB_LOCK_WAIT_SECONDS=2
# Encrypt MySQL payloads (creds/session_keys/fstore/chats/contacts/messages)
DB_ENCRYPTION_ENABLED=false
# Recommended: set your own key. If empty, AUTHENTICATION_GLOBAL_AUTH_TOKEN will be used.
DB_ENCRYPTION_KEY=