diff --git a/.gitignore b/.gitignore index 07e3ff3c..e707b33e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ /dist /node_modules -# /Docker/.env +/Docker/.env # Logs logs/**.json diff --git a/Docker/.env.example b/Docker/.env.example index f786d341..b258a83e 100644 --- a/Docker/.env.example +++ b/Docker/.env.example @@ -5,7 +5,7 @@ CORS_CREDENTIALS=true # Determine the logs to be displayed LOG_LEVEL='ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS' 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. # 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_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_OLD_MESSAGE=false DATABASE_SAVE_DATA_NEW_MESSAGE=true @@ -41,7 +42,7 @@ REDIS_PREFIX_KEY=evolution # Webhook Settings ## Define a global webhook that will listen for enabled events from all instances -WEBHOOK_GLOBAL_URL= +WEBHOOK_GLOBAL_URL='' 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 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 WEBHOOK_EVENTS_NEW_JWT_TOKEN=true +# Name that will be displayed on smartphone connection CONFIG_SESSION_PHONE_CLIENT=Evolution API 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 AUTHENTICATION_JWT_EXPIRIN_IN=0 # seconds - 3600s ===1h | zero (0) - never expires AUTHENTICATION_JWT_SECRET='L0YWtjb2w554WFqPG' - -AUTHENTICATION_INSTANCE_MODE=server +# Set the instance name and webhook url to create an instance in init the application +# 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_WEBHOOK_URL= \ No newline at end of file