1+ # Server URL - Set your application url
2+ SERVER_URL = ' http://localhost:8080'
3+
4+ # Cors - * for all or set separate by commas - ex.: 'yourdomain1.com, yourdomain2.com'
5+ CORS_ORIGIN = ' *'
6+ CORS_METHODS = ' POST,GET,PUT,DELETE'
7+ CORS_CREDENTIALS = true
8+
9+ # Determine the logs to be displayed
10+ LOG_LEVEL = ' ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS'
11+ LOG_COLOR = true
12+ # Log Baileys - "fatal" | "error" | "warn" | "info" | "debug" | "trace"
13+ LOG_BAILEYS = error
14+
15+ # Determine how long the instance should be deleted from memory in case of no connection.
16+ # Default time: 5 minutes
17+ # If you don't even want an expiration, enter the value false
18+ DEL_INSTANCE = false
19+
20+ # Temporary data storage
21+ STORE_MESSAGES = true
22+ STORE_MESSAGE_UP = true
23+ STORE_CONTACTS = true
24+ STORE_CHATS = true
25+
26+ # Set Store Interval in Seconds (7200 = 2h)
27+ CLEAN_STORE_CLEANING_INTERVAL = 7200
28+ CLEAN_STORE_MESSAGES = true
29+ CLEAN_STORE_MESSAGE_UP = true
30+ CLEAN_STORE_CONTACTS = true
31+ CLEAN_STORE_CHATS = true
32+
33+ # Permanent data storage
34+ DATABASE_ENABLED = true
35+ DATABASE_CONNECTION_URI = mongodb://root:root@mongodb:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true
36+ DATABASE_CONNECTION_DB_PREFIX_NAME = evolution
37+
38+ # Choose the data you want to save in the application's database or store
39+ DATABASE_SAVE_DATA_INSTANCE = false
40+ DATABASE_SAVE_DATA_NEW_MESSAGE = false
41+ DATABASE_SAVE_MESSAGE_UPDATE = false
42+ DATABASE_SAVE_DATA_CONTACTS = false
43+ DATABASE_SAVE_DATA_CHATS = false
44+
45+ REDIS_ENABLED = true
46+ REDIS_URI = redis://redis:6379
47+ REDIS_PREFIX_KEY = evolution
48+
49+ # Global Webhook Settings
50+ # Each instance's Webhook URL and events will be requested at the time it is created
51+ # # Define a global webhook that will listen for enabled events from all instances
52+ WEBHOOK_GLOBAL_URL = ' '
53+ WEBHOOK_GLOBAL_ENABLED = false
54+ # With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
55+ WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS = false
56+ # # Set the events you want to hear
57+ WEBHOOK_EVENTS_APPLICATION_STARTUP = false
58+ WEBHOOK_EVENTS_QRCODE_UPDATED = true
59+ WEBHOOK_EVENTS_MESSAGES_SET = true
60+ WEBHOOK_EVENTS_MESSAGES_UPSERT = true
61+ WEBHOOK_EVENTS_MESSAGES_UPDATE = true
62+ WEBHOOK_EVENTS_MESSAGES_DELETE = true
63+ WEBHOOK_EVENTS_SEND_MESSAGE = true
64+ WEBHOOK_EVENTS_CONTACTS_SET = true
65+ WEBHOOK_EVENTS_CONTACTS_UPSERT = true
66+ WEBHOOK_EVENTS_CONTACTS_UPDATE = true
67+ WEBHOOK_EVENTS_PRESENCE_UPDATE = true
68+ WEBHOOK_EVENTS_CHATS_SET = true
69+ WEBHOOK_EVENTS_CHATS_UPSERT = true
70+ WEBHOOK_EVENTS_CHATS_UPDATE = true
71+ WEBHOOK_EVENTS_CHATS_DELETE = true
72+ WEBHOOK_EVENTS_GROUPS_UPSERT = true
73+ WEBHOOK_EVENTS_GROUPS_UPDATE = true
74+ WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE = true
75+ WEBHOOK_EVENTS_CONNECTION_UPDATE = true
76+ # This event fires every time a new token is requested via the refresh route
77+ WEBHOOK_EVENTS_NEW_JWT_TOKEN = false
78+
79+ # Name that will be displayed on smartphone connection
80+ CONFIG_SESSION_PHONE_CLIENT = ' Evolution API'
81+ # Browser Name = chrome | firefox | edge | opera | safari
82+ CONFIG_SESSION_PHONE_NAME = chrome
83+
84+ # Set qrcode display limit
85+ QRCODE_LIMIT = 30
86+
87+ # Defines an authentication type for the api
88+ # We recommend using the apikey because it will allow you to use a custom token,
89+ # if you use jwt, a random token will be generated and may be expired and you will have to generate a new token
90+ # jwt or 'apikey'
91+ AUTHENTICATION_TYPE = ' apikey'
92+ # # Define a global apikey to access all instances.
93+ # ## OBS: This key must be inserted in the request header to create an instance.
94+ AUTHENTICATION_API_KEY = ' B6D711FCDE4D4FD5936544120E713976'
95+ AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES = true
96+ # # Set the secret key to encrypt and decrypt your token and its expiration time
97+ # seconds - 3600s ===1h | zero (0) - never expires
98+ AUTHENTICATION_JWT_EXPIRIN_IN = 0
99+ AUTHENTICATION_JWT_SECRET = ' L0YWtjb2w554WFqPG'
100+ # Set the instance name and webhook url to create an instance in init the application
101+ # With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
102+ # container or server
103+ AUTHENTICATION_INSTANCE_MODE = server
104+ # if you are using container mode, set the container name and the webhook url to default instance
105+ AUTHENTICATION_INSTANCE_NAME = evolution
106+ AUTHENTICATION_INSTANCE_WEBHOOK_URL = ' '
107+ AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID = 1
108+ AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN = 123456
109+ AUTHENTICATION_INSTANCE_CHATWOOT_URL = ' '
0 commit comments