Skip to content

Commit 840f9c6

Browse files
committed
chore: adjusts in docker files
1 parent 9367be0 commit 840f9c6

File tree

16 files changed

+153
-529
lines changed

16 files changed

+153
-529
lines changed

.env.example

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
SERVER_TYPE=http
22
SERVER_PORT=8080
3+
# Server URL - Set your application url
34
SERVER_URL=http://localhost:8080
4-
# TELEMETRY=true
5-
# TELEMETRY_URL=
65

6+
# Cors - * for all or set separate by commas - ex.: 'yourdomain1.com, yourdomain2.com'
77
CORS_ORIGIN=*
88
CORS_METHODS=GET,POST,PUT,DELETE
99
CORS_CREDENTIALS=true
1010

11+
# Determine the logs to be displayed
1112
LOG_LEVEL=ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS
1213
LOG_COLOR=true
14+
# Log Baileys - "fatal" | "error" | "warn" | "info" | "debug" | "trace"
1315
LOG_BAILEYS=error
1416

17+
# Determine how long the instance should be deleted from memory in case of no connection.
18+
# Default time: 5 minutes
19+
# If you don't even want an expiration, enter the value false
1520
DEL_INSTANCE=false
1621

17-
PROVIDER_ENABLED=false
18-
PROVIDER_HOST=127.0.0.1
19-
PROVIDER_PORT=5656
20-
PROVIDER_PREFIX=evolution
21-
22+
# Permanent data storage
2223
DATABASE_ENABLED=true
24+
# Provider: postgresql
2325
DATABASE_PROVIDER=postgresql
2426
DATABASE_CONNECTION_URI='postgresql://user:pass@localhost:5432/evolution?schema=public'
27+
# Client name for the database connection
28+
# It is used to separate an API installation from another that uses the same database.
2529
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
30+
31+
# Choose the data you want to save in the application's database
2632
DATABASE_SAVE_DATA_INSTANCE=true
2733
DATABASE_SAVE_DATA_NEW_MESSAGE=true
2834
DATABASE_SAVE_MESSAGE_UPDATE=true
@@ -31,10 +37,13 @@ DATABASE_SAVE_DATA_CHATS=true
3137
DATABASE_SAVE_DATA_LABELS=true
3238
DATABASE_SAVE_DATA_HISTORIC=true
3339

40+
# RabbitMQ - Environment variables
3441
RABBITMQ_ENABLED=false
3542
RABBITMQ_URI=amqp://localhost
3643
RABBITMQ_EXCHANGE_NAME=evolution
44+
# Global events - By enabling this variable, events from all instances are sent in the same event queue.
3745
RABBITMQ_GLOBAL_ENABLED=false
46+
# Choose the events you want to send to RabbitMQ
3847
RABBITMQ_EVENTS_APPLICATION_STARTUP=false
3948
RABBITMQ_EVENTS_INSTANCE_CREATE=false
4049
RABBITMQ_EVENTS_INSTANCE_DELETE=false
@@ -61,23 +70,32 @@ RABBITMQ_EVENTS_CALL=false
6170
RABBITMQ_EVENTS_TYPEBOT_START=false
6271
RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS=false
6372

73+
# SQS - Environment variables
6474
SQS_ENABLED=false
6575
SQS_ACCESS_KEY_ID=
6676
SQS_SECRET_ACCESS_KEY=
6777
SQS_ACCOUNT_ID=
6878
SQS_REGION=
6979

80+
# Websocket - Environment variables
7081
WEBSOCKET_ENABLED=false
7182
WEBSOCKET_GLOBAL_EVENTS=false
7283

84+
# WhatsApp Business API - Environment variables
85+
# Token used to validate the webhook on the Facebook APP
7386
WA_BUSINESS_TOKEN_WEBHOOK=evolution
7487
WA_BUSINESS_URL=https://graph.facebook.com
75-
WA_BUSINESS_VERSION=v18.0
76-
WA_BUSINESS_LANGUAGE=pt_BR
88+
WA_BUSINESS_VERSION=v20.0
89+
WA_BUSINESS_LANGUAGE=en_US
7790

78-
WEBHOOK_GLOBAL_URL=''
91+
# Global Webhook Settings
92+
# Each instance's Webhook URL and events will be requested at the time it is created
7993
WEBHOOK_GLOBAL_ENABLED=false
94+
# Define a global webhook that will listen for enabled events from all instances
95+
WEBHOOK_GLOBAL_URL=''
96+
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
8097
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
98+
# Set the events you want to hear
8199
WEBHOOK_EVENTS_APPLICATION_STARTUP=false
82100
WEBHOOK_EVENTS_QRCODE_UPDATED=true
83101
WEBHOOK_EVENTS_MESSAGES_SET=true
@@ -101,38 +119,56 @@ WEBHOOK_EVENTS_CONNECTION_UPDATE=true
101119
WEBHOOK_EVENTS_LABELS_EDIT=true
102120
WEBHOOK_EVENTS_LABELS_ASSOCIATION=true
103121
WEBHOOK_EVENTS_CALL=true
122+
# This events is used with Typebot
104123
WEBHOOK_EVENTS_TYPEBOT_START=false
105124
WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS=false
125+
# This event is used to send errors
106126
WEBHOOK_EVENTS_ERRORS=false
107127
WEBHOOK_EVENTS_ERRORS_WEBHOOK=
108128

129+
# Name that will be displayed on smartphone connection
109130
CONFIG_SESSION_PHONE_CLIENT=Evolution API
131+
# Browser Name = Chrome | Firefox | Edge | Opera | Safari
110132
CONFIG_SESSION_PHONE_NAME=Chrome
111133

134+
# Set qrcode display limit
112135
QRCODE_LIMIT=30
136+
# Color of the QRCode on base64
113137
QRCODE_COLOR='#175197'
114138

139+
# Typebot - Environment variables
115140
TYPEBOT_ENABLED=false
116-
TYPEBOT_SEND_MEDIA_BASE64=true
141+
# old | latest
117142
TYPEBOT_API_VERSION=latest
118143

144+
# Chatwoot - Environment variables
119145
CHATWOOT_ENABLED=false
146+
# If you leave this option as false, when deleting the message for everyone on WhatsApp, it will not be deleted on Chatwoot.
120147
CHATWOOT_MESSAGE_READ=true
148+
# If you leave this option as true, when sending a message in Chatwoot, the client's last message will be marked as read on WhatsApp.
121149
CHATWOOT_MESSAGE_DELETE=true
150+
# This db connection is used to import messages from whatsapp to chatwoot database
122151
CHATWOOT_IMPORT_DATABASE_CONNECTION_URI=postgresql://user:passwprd@host:5432/chatwoot?sslmode=disable
123152
CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE=true
124153

154+
# OpenAI - Environment variables
125155
OPENAI_ENABLED=false
126-
OPENAI_API_KEY_GLOBAL=
127156

157+
# Dify - Environment variables
128158
DIFY_ENABLED=false
129159

160+
# Cache - Environment variables
161+
# Redis Cache enabled
130162
CACHE_REDIS_ENABLED=true
131163
CACHE_REDIS_URI=redis://localhost:6379/6
164+
# Prefix serves to differentiate data from one installation to another that are using the same redis
132165
CACHE_REDIS_PREFIX_KEY=evolution
166+
# Enabling this variable will save the connection information in Redis and not in the database.
133167
CACHE_REDIS_SAVE_INSTANCES=false
168+
# Local Cache enabled
134169
CACHE_LOCAL_ENABLED=false
135170

171+
# Amazon S3 - Environment variables
136172
S3_ENABLED=false
137173
S3_ACCESS_KEY=
138174
S3_SECRET_KEY=
@@ -157,6 +193,9 @@ S3_USE_SSL=true
157193
# S3_ENDPOINT=s3.domain.com
158194
# S3_USE_SSL=true
159195

196+
# Define a global apikey to access all instances.
197+
# OBS: This key must be inserted in the request header to create an instance.
160198
AUTHENTICATION_API_KEY=429683C4C977415CAAFCCE10F7D57E11
199+
# If you leave this option as true, the instances will be exposed in the fetch instances endpoint.
161200
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
162201
LANGUAGE=en

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ lerna-debug.log*
1818
/docker-compose-data
1919
/docker-data
2020

21-
docker-compose.yaml
22-
2321
# Package
2422
/yarn.lock
2523
/package-lock.json

Docker/.env.example

Lines changed: 0 additions & 163 deletions
This file was deleted.

Docker/docker-compose.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)