mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
fix: Create .env for installation in docker
This commit is contained in:
parent
14ad09e867
commit
b1769edb65
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
|||||||
/dist
|
/dist
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
||||||
# /Docker/.env
|
/Docker/.env
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs/**.json
|
logs/**.json
|
||||||
|
@ -5,7 +5,7 @@ CORS_CREDENTIALS=true
|
|||||||
# Determine the logs to be displayed
|
# Determine the logs to be displayed
|
||||||
LOG_LEVEL='ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS'
|
LOG_LEVEL='ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS'
|
||||||
LOG_COLOR=true
|
LOG_COLOR=true
|
||||||
LOG_BAILEYS=error
|
LOG_BAILEYS=error # "fatal" | "error" | "warn" | "info" | "debug" | "trace"
|
||||||
|
|
||||||
# Determine how long the instance should be deleted from memory in case of no connection.
|
# Determine how long the instance should be deleted from memory in case of no connection.
|
||||||
# Default time: 5 minutes
|
# Default time: 5 minutes
|
||||||
@ -28,6 +28,7 @@ DATABASE_ENABLED=false
|
|||||||
DATABASE_CONNECTION_URI=mongodb://root:root@mongodb:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true
|
DATABASE_CONNECTION_URI=mongodb://root:root@mongodb:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true
|
||||||
DATABASE_CONNECTION_DB_PREFIX_NAME=evolution
|
DATABASE_CONNECTION_DB_PREFIX_NAME=evolution
|
||||||
|
|
||||||
|
# Choose the data you want to save in the application's database or store
|
||||||
DATABASE_SAVE_DATA_INSTANCE=true
|
DATABASE_SAVE_DATA_INSTANCE=true
|
||||||
DATABASE_SAVE_DATA_OLD_MESSAGE=false
|
DATABASE_SAVE_DATA_OLD_MESSAGE=false
|
||||||
DATABASE_SAVE_DATA_NEW_MESSAGE=true
|
DATABASE_SAVE_DATA_NEW_MESSAGE=true
|
||||||
@ -41,7 +42,7 @@ REDIS_PREFIX_KEY=evolution
|
|||||||
|
|
||||||
# Webhook Settings
|
# Webhook Settings
|
||||||
## Define a global webhook that will listen for enabled events from all instances
|
## Define a global webhook that will listen for enabled events from all instances
|
||||||
WEBHOOK_GLOBAL_URL=<url>
|
WEBHOOK_GLOBAL_URL='<url>'
|
||||||
WEBHOOK_GLOBAL_ENABLED=false
|
WEBHOOK_GLOBAL_ENABLED=false
|
||||||
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
|
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
|
||||||
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
|
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
|
||||||
@ -66,6 +67,7 @@ WEBHOOK_EVENTS_CONNECTION_UPDATE=true
|
|||||||
# This event fires every time a new token is requested via the refresh route
|
# This event fires every time a new token is requested via the refresh route
|
||||||
WEBHOOK_EVENTS_NEW_JWT_TOKEN=true
|
WEBHOOK_EVENTS_NEW_JWT_TOKEN=true
|
||||||
|
|
||||||
|
# Name that will be displayed on smartphone connection
|
||||||
CONFIG_SESSION_PHONE_CLIENT=Evolution API
|
CONFIG_SESSION_PHONE_CLIENT=Evolution API
|
||||||
CONFIG_SESSION_PHONE_NAME=chrome # chrome | firefox | edge | opera | safari
|
CONFIG_SESSION_PHONE_NAME=chrome # chrome | firefox | edge | opera | safari
|
||||||
|
|
||||||
@ -81,7 +83,9 @@ AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
|
|||||||
## Set the secret key to encrypt and decrypt your token and its expiration time
|
## Set the secret key to encrypt and decrypt your token and its expiration time
|
||||||
AUTHENTICATION_JWT_EXPIRIN_IN=0 # seconds - 3600s ===1h | zero (0) - never expires
|
AUTHENTICATION_JWT_EXPIRIN_IN=0 # seconds - 3600s ===1h | zero (0) - never expires
|
||||||
AUTHENTICATION_JWT_SECRET='L0YWtjb2w554WFqPG'
|
AUTHENTICATION_JWT_SECRET='L0YWtjb2w554WFqPG'
|
||||||
|
# Set the instance name and webhook url to create an instance in init the application
|
||||||
AUTHENTICATION_INSTANCE_MODE=server
|
# With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
|
||||||
|
AUTHENTICATION_INSTANCE_MODE=server # container or server
|
||||||
|
# if you are using container mode, set the container name and the webhook url to default instance
|
||||||
AUTHENTICATION_INSTANCE_NAME=evolution
|
AUTHENTICATION_INSTANCE_NAME=evolution
|
||||||
AUTHENTICATION_INSTANCE_WEBHOOK_URL=<url>
|
AUTHENTICATION_INSTANCE_WEBHOOK_URL=<url>
|
Loading…
Reference in New Issue
Block a user