Skip to content

Commit b1e9f51

Browse files
committed
refactor v1
1 parent 427c994 commit b1e9f51

File tree

10 files changed

+771
-528
lines changed

10 files changed

+771
-528
lines changed

.dockerignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
.git
2-
*Dockerfile*
3-
*docker-compose*
41
node_modules
5-
dist
2+
npm-debug.log
3+
dist
4+
.env
Lines changed: 4 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,28 @@
1+
PRISMA_MIGRATIONS=true
2+
13
SERVER_TYPE=http
24
SERVER_PORT=8080
3-
# Server URL - Set your application url
45
SERVER_URL=http://localhost:8080
56

67
SENTRY_DSN=
78

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

13-
# Determine the logs to be displayed
1413
LOG_LEVEL=ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS,WEBSOCKET
1514
LOG_COLOR=true
16-
# Log Baileys - "fatal" | "error" | "warn" | "info" | "debug" | "trace"
1715
LOG_BAILEYS=error
1816

19-
# Set the maximum number of listeners that can be registered for an event
2017
EVENT_EMITTER_MAX_LISTENERS=50
2118

22-
# Determine how long the instance should be deleted from memory in case of no connection.
23-
# Default time: 5 minutes
24-
# If you don't even want an expiration, enter the value false
2519
DEL_INSTANCE=false
2620

27-
# Provider: postgresql | mysql
2821
DATABASE_PROVIDER=postgresql
29-
DATABASE_CONNECTION_URI='postgresql://user:pass@postgres:5432/evolution?schema=public'
30-
# Client name for the database connection
31-
# It is used to separate an API installation from another that uses the same database.
22+
DATABASE_CONNECTION_URI=postgresql://postgres:YOUR_PASSWORD@localhost:5432/evolution?schema=public
23+
DATABASE_CONNECTION_URL=postgresql://postgres:YOUR_PASSWORD@localhost:5432/evolution?schema=public
3224
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
3325

34-
# Choose the data you want to save in the application's database
3526
DATABASE_SAVE_DATA_INSTANCE=true
3627
DATABASE_SAVE_DATA_NEW_MESSAGE=true
3728
DATABASE_SAVE_MESSAGE_UPDATE=true
@@ -43,15 +34,11 @@ DATABASE_SAVE_IS_ON_WHATSAPP=true
4334
DATABASE_SAVE_IS_ON_WHATSAPP_DAYS=7
4435
DATABASE_DELETE_MESSAGE=true
4536

46-
# RabbitMQ - Environment variables
4737
RABBITMQ_ENABLED=false
4838
RABBITMQ_URI=amqp://localhost
4939
RABBITMQ_EXCHANGE_NAME=evolution
50-
# Global events - By enabling this variable, events from all instances are sent in the same event queue.
5140
RABBITMQ_GLOBAL_ENABLED=false
52-
# Prefix key to queue name
5341
RABBITMQ_PREFIX_KEY=evolution
54-
# Choose the events you want to send to RabbitMQ
5542
RABBITMQ_EVENTS_APPLICATION_STARTUP=false
5643
RABBITMQ_EVENTS_INSTANCE_CREATE=false
5744
RABBITMQ_EVENTS_INSTANCE_DELETE=false
@@ -80,26 +67,22 @@ RABBITMQ_EVENTS_CALL=false
8067
RABBITMQ_EVENTS_TYPEBOT_START=false
8168
RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS=false
8269

83-
# SQS - Environment variables
8470
SQS_ENABLED=false
8571
SQS_ACCESS_KEY_ID=
8672
SQS_SECRET_ACCESS_KEY=
8773
SQS_ACCOUNT_ID=
8874
SQS_REGION=
8975

90-
# Websocket - Environment variables
9176
WEBSOCKET_ENABLED=false
9277
WEBSOCKET_GLOBAL_EVENTS=false
9378

94-
# Pusher - Environment variables
9579
PUSHER_ENABLED=false
9680
PUSHER_GLOBAL_ENABLED=false
9781
PUSHER_GLOBAL_APP_ID=
9882
PUSHER_GLOBAL_KEY=
9983
PUSHER_GLOBAL_SECRET=
10084
PUSHER_GLOBAL_CLUSTER=
10185
PUSHER_GLOBAL_USE_TLS=true
102-
# Choose the events you want to send to Pusher
10386
PUSHER_EVENTS_APPLICATION_STARTUP=true
10487
PUSHER_EVENTS_QRCODE_UPDATED=true
10588
PUSHER_EVENTS_MESSAGES_SET=true
@@ -126,21 +109,14 @@ PUSHER_EVENTS_CALL=true
126109
PUSHER_EVENTS_TYPEBOT_START=false
127110
PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS=false
128111

129-
# WhatsApp Business API - Environment variables
130-
# Token used to validate the webhook on the Facebook APP
131112
WA_BUSINESS_TOKEN_WEBHOOK=evolution
132113
WA_BUSINESS_URL=https://graph.facebook.com
133114
WA_BUSINESS_VERSION=v20.0
134115
WA_BUSINESS_LANGUAGE=en_US
135116

136-
# Global Webhook Settings
137-
# Each instance's Webhook URL and events will be requested at the time it is created
138117
WEBHOOK_GLOBAL_ENABLED=false
139-
# Define a global webhook that will listen for enabled events from all instances
140118
WEBHOOK_GLOBAL_URL=''
141-
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
142119
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
143-
# Set the events you want to hear
144120
WEBHOOK_EVENTS_APPLICATION_STARTUP=false
145121
WEBHOOK_EVENTS_QRCODE_UPDATED=true
146122
WEBHOOK_EVENTS_MESSAGES_SET=true
@@ -166,63 +142,40 @@ WEBHOOK_EVENTS_LOGOUT_INSTANCE=false
166142
WEBHOOK_EVENTS_LABELS_EDIT=true
167143
WEBHOOK_EVENTS_LABELS_ASSOCIATION=true
168144
WEBHOOK_EVENTS_CALL=true
169-
# This events is used with Typebot
170145
WEBHOOK_EVENTS_TYPEBOT_START=false
171146
WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS=false
172-
# This event is used to send errors
173147
WEBHOOK_EVENTS_ERRORS=false
174148
WEBHOOK_EVENTS_ERRORS_WEBHOOK=
175149

176-
# Name that will be displayed on smartphone connection
177150
CONFIG_SESSION_PHONE_CLIENT=Evolution API
178-
# Browser Name = Chrome | Firefox | Edge | Opera | Safari
179151
CONFIG_SESSION_PHONE_NAME=Chrome
180152

181-
# Whatsapp Web version for baileys channel
182-
# https://web.whatsapp.com/check-update?version=0&platform=web
183153
CONFIG_SESSION_PHONE_VERSION=2.3000.1015901307
184154

185-
# Set qrcode display limit
186155
QRCODE_LIMIT=30
187-
# Color of the QRCode on base64
188156
QRCODE_COLOR='#175197'
189157

190-
# Typebot - Environment variables
191158
TYPEBOT_ENABLED=false
192-
# old | latest
193159
TYPEBOT_API_VERSION=latest
194160

195-
# Chatwoot - Environment variables
196161
CHATWOOT_ENABLED=false
197-
# If you leave this option as false, when deleting the message for everyone on WhatsApp, it will not be deleted on Chatwoot.
198162
CHATWOOT_MESSAGE_READ=true
199-
# 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.
200163
CHATWOOT_MESSAGE_DELETE=true
201-
# If you leave this option as true, a contact will be created on Chatwoot to provide the QR Code and update messages about the instance.
202164
CHATWOOT_BOT_CONTACT=true
203-
# This db connection is used to import messages from whatsapp to chatwoot database
204165
CHATWOOT_IMPORT_DATABASE_CONNECTION_URI=postgresql://user:passwprd@host:5432/chatwoot?sslmode=disable
205166
CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE=true
206167

207-
# OpenAI - Environment variables
208168
OPENAI_ENABLED=false
209169

210-
# Dify - Environment variables
211170
DIFY_ENABLED=false
212171

213-
# Cache - Environment variables
214-
# Redis Cache enabled
215172
CACHE_REDIS_ENABLED=true
216173
CACHE_REDIS_URI=redis://localhost:6379/6
217174
CACHE_REDIS_TTL=604800
218-
# Prefix serves to differentiate data from one installation to another that are using the same redis
219175
CACHE_REDIS_PREFIX_KEY=evolution
220-
# Enabling this variable will save the connection information in Redis and not in the database.
221176
CACHE_REDIS_SAVE_INSTANCES=false
222-
# Local Cache enabled
223177
CACHE_LOCAL_ENABLED=false
224178

225-
# Amazon S3 - Environment variables
226179
S3_ENABLED=false
227180
S3_ACCESS_KEY=
228181
S3_SECRET_KEY=
@@ -232,38 +185,9 @@ S3_ENDPOINT=s3.domain.com
232185
S3_REGION=eu-west-3
233186
S3_USE_SSL=true
234187

235-
# AMAZON S3 - Environment variables
236-
# S3_ENABLED=true
237-
# S3_BUCKET=bucket_name
238-
# S3_ACCESS_KEY=access_key_id
239-
# S3_SECRET_KEY=secret_access_key
240-
# S3_ENDPOINT=s3.amazonaws.com # region: s3.eu-west-3.amazonaws.com
241-
# S3_REGION=eu-west-3
242188

243-
# MINIO Use SSL - Environment variables
244-
# S3_ENABLED=true
245-
# S3_ACCESS_KEY=access_key_id
246-
# S3_SECRET_KEY=secret_access_key
247-
# S3_BUCKET=bucket_name
248-
# S3_PORT=443
249-
# S3_ENDPOINT=s3.domain.com
250-
# S3_USE_SSL=true
251-
# S3_REGION=eu-south
252189

253-
# Evolution Audio Converter - Environment variables - https://github.com/EvolutionAPI/evolution-audio-converter
254-
# API_AUDIO_CONVERTER=http://localhost:4040/process-audio
255-
# API_AUDIO_CONVERTER_KEY=429683C4C977415CAAFCCE10F7D57E11
256190

257-
# Define a global apikey to access all instances.
258-
# OBS: This key must be inserted in the request header to create an instance.
259191
AUTHENTICATION_API_KEY=429683C4C977415CAAFCCE10F7D57E11
260-
# If you leave this option as true, the instances will be exposed in the fetch instances endpoint.
261192
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
262193
LANGUAGE=en
263-
264-
# Define a global proxy to be used if the instance does not have one
265-
# PROXY_HOST=
266-
# PROXY_PORT=80
267-
# PROXY_PROTOCOL=http
268-
# PROXY_USERNAME=
269-
# PROXY_PASSWORD=

0 commit comments

Comments
 (0)