-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.env.example
More file actions
78 lines (71 loc) · 2.83 KB
/
Copy path.env.example
File metadata and controls
78 lines (71 loc) · 2.83 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
NODE_ENV=development
PORT=3025
LOG_LEVEL=debug
BAILEYS_LOG_LEVEL=debug
# Deadline for the Baileys library's own HTTP downloads. Guards against a
# parked download wedging the per-connection keystore transaction, which mutes
# every send on that connection.
BAILEYS_HTTP_TIMEOUT_MS=120000
# Reject after waiting this long for the keystore transaction mutex. Six
# operations share one mutex per connection, so a wedged one blocks all sends.
# The default is the conservative rollout value: high enough to be
# diagnosis-only. Lower to 90000 once the stall reports name the culprit.
# 0 disables.
BAILEYS_TX_ACQUIRE_TIMEOUT_MS=300000
# Report a transaction still holding the mutex after this long. Must be lower
# than BAILEYS_TX_ACQUIRE_TIMEOUT_MS. 0 disables.
BAILEYS_TX_HOLD_WARN_MS=30000
# Deadline on a single send. Must be lower than PROXY_REQUEST_TIMEOUT_MS.
BAILEYS_SEND_TIMEOUT_MS=45000
# Allow a connection whose sends keep timing out to recreate its own socket.
# Off by default: turn it on after watching the detector fire only on the real
# pattern. Detection, logging and the webhook run either way.
BAILEYS_SEND_STALL_RESTART_ENABLED=false
BAILEYS_CLIENT_VERSION=default
BAILEYS_OVERRIDE_CLIENT_VERSION=false
# Can be used to send Baileys events that are currently not handled by the API to the webhook.
# Comma separated list of event names, e.g., "messages.delete,contacts.upsert"
BAILEYS_LISTEN_TO_EVENTS=
REDIS_URL=redis://localhost:6379
REDIS_PASSWORD=
WEBHOOK_RETRY_POLICY_MAX_RETRIES=3
WEBHOOK_RETRY_POLICY_RETRY_INTERVAL=5000
WEBHOOK_RETRY_POLICY_BACKOFF_FACTOR=3
WEBHOOK_TIMEOUT_MS=60000
WEBHOOK_HISTORY_FRAME_MAX_BYTES=524288
CORS_ORIGIN=localhost:3025
IGNORE_GROUP_MESSAGES=false
IGNORE_STATUS_MESSAGES=true
IGNORE_BROADCAST_MESSAGES=true
IGNORE_NEWSLETTER_MESSAGES=true
IGNORE_BOT_MESSAGES=true
IGNORE_META_AI_MESSAGES=true
MEDIA_CLEANUP_ENABLED=true
# 1 hour
MEDIA_CLEANUP_INTERVAL_MS=3600000
MEDIA_MAX_AGE_HOURS=24
# Cluster / distributed mode.
# ROLE: standalone (default, single instance), worker (behind a proxy) or proxy.
ROLE=standalone
# Stable unique id per replica. Defaults to <hostname>-<random>.
INSTANCE_ID=
# Address other instances can reach this worker at. Defaults to http://<hostname>:<PORT>.
WORKER_BASE_URL=
CLUSTER_LEASE_TTL_MS=30000
CLUSTER_LEASE_RENEW_INTERVAL_MS=10000
CLUSTER_CLAIM_INTERVAL_MS=5000
CLUSTER_CLAIM_JITTER_MS=2000
CLUSTER_RECONNECT_CONCURRENCY=5
CLUSTER_UNCLAIMED_GRACE_MS=30000
CLUSTER_RELEASE_COOLDOWN_MS=60000
CLUSTER_REBALANCE_ENABLED=true
# 5 minutes without message traffic = idle (preferred rebalance victims)
CLUSTER_REBALANCE_IDLE_THRESHOLD_MS=300000
CLUSTER_REBALANCE_RELEASE_INTERVAL_MS=10000
CLUSTER_REBALANCE_TOLERANCE=1
CLUSTER_HEARTBEAT_INTERVAL_MS=5000
CLUSTER_INSTANCE_TTL_MS=15000
CLUSTER_SHUTDOWN_TIMEOUT_MS=30000
PROXY_ROUTE_CACHE_TTL_MS=5000
PROXY_REQUEST_TIMEOUT_MS=75000
PROXY_MAX_BODY_BYTES=67108864