Skip to content

Commit b1769ed

Browse files
committed
fix: Create .env for installation in docker
1 parent 14ad09e commit b1769ed

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/dist
33
/node_modules
44

5-
# /Docker/.env
5+
/Docker/.env
66

77
# Logs
88
logs/**.json

Docker/.env.example

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CORS_CREDENTIALS=true
55
# Determine the logs to be displayed
66
LOG_LEVEL='ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS'
77
LOG_COLOR=true
8-
LOG_BAILEYS=error
8+
LOG_BAILEYS=error # "fatal" | "error" | "warn" | "info" | "debug" | "trace"
99

1010
# Determine how long the instance should be deleted from memory in case of no connection.
1111
# Default time: 5 minutes
@@ -28,6 +28,7 @@ DATABASE_ENABLED=false
2828
DATABASE_CONNECTION_URI=mongodb://root:root@mongodb:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true
2929
DATABASE_CONNECTION_DB_PREFIX_NAME=evolution
3030

31+
# Choose the data you want to save in the application's database or store
3132
DATABASE_SAVE_DATA_INSTANCE=true
3233
DATABASE_SAVE_DATA_OLD_MESSAGE=false
3334
DATABASE_SAVE_DATA_NEW_MESSAGE=true
@@ -41,7 +42,7 @@ REDIS_PREFIX_KEY=evolution
4142

4243
# Webhook Settings
4344
## Define a global webhook that will listen for enabled events from all instances
44-
WEBHOOK_GLOBAL_URL=<url>
45+
WEBHOOK_GLOBAL_URL='<url>'
4546
WEBHOOK_GLOBAL_ENABLED=false
4647
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
4748
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
@@ -66,6 +67,7 @@ WEBHOOK_EVENTS_CONNECTION_UPDATE=true
6667
# This event fires every time a new token is requested via the refresh route
6768
WEBHOOK_EVENTS_NEW_JWT_TOKEN=true
6869

70+
# Name that will be displayed on smartphone connection
6971
CONFIG_SESSION_PHONE_CLIENT=Evolution API
7072
CONFIG_SESSION_PHONE_NAME=chrome # chrome | firefox | edge | opera | safari
7173

@@ -81,7 +83,9 @@ AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
8183
## Set the secret key to encrypt and decrypt your token and its expiration time
8284
AUTHENTICATION_JWT_EXPIRIN_IN=0 # seconds - 3600s ===1h | zero (0) - never expires
8385
AUTHENTICATION_JWT_SECRET='L0YWtjb2w554WFqPG'
84-
85-
AUTHENTICATION_INSTANCE_MODE=server
86+
# Set the instance name and webhook url to create an instance in init the application
87+
# With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
88+
AUTHENTICATION_INSTANCE_MODE=server # container or server
89+
# if you are using container mode, set the container name and the webhook url to default instance
8690
AUTHENTICATION_INSTANCE_NAME=evolution
8791
AUTHENTICATION_INSTANCE_WEBHOOK_URL=<url>

0 commit comments

Comments
 (0)