|
| 1 | +# ⚠️ |
| 2 | +# ⚠️ ALL SETTINGS DEFINED IN THIS FILE ARE APPLIED TO ALL INSTANCES. |
| 3 | +# ⚠️ |
| 4 | + |
| 5 | +# ⚠️ RENAME THIS FILE TO env.yml |
| 6 | + |
| 7 | +# Choose the server type for the application |
| 8 | +SERVER: |
| 9 | + TYPE: http # https |
| 10 | + PORT: 8080 # 443 |
| 11 | + URL: localhost |
| 12 | + DISABLE_MANAGER: false |
| 13 | + DISABLE_DOCS: false |
| 14 | + |
| 15 | +CORS: |
| 16 | + ORIGIN: |
| 17 | + - "*" |
| 18 | + # - yourdomain.com |
| 19 | + METHODS: |
| 20 | + - POST |
| 21 | + - GET |
| 22 | + - PUT |
| 23 | + - DELETE |
| 24 | + CREDENTIALS: true |
| 25 | + |
| 26 | +# Install ssl certificate and replace string <domain> with domain name |
| 27 | +# Access: https://certbot.eff.org/instructions?ws=other&os=ubuntufocal |
| 28 | +SSL_CONF: |
| 29 | + PRIVKEY: /etc/letsencrypt/live/<domain>/privkey.pem |
| 30 | + FULLCHAIN: /etc/letsencrypt/live/<domain>/fullchain.pem |
| 31 | + |
| 32 | +# Determine the logs to be displayed |
| 33 | +LOG: |
| 34 | + LEVEL: |
| 35 | + - ERROR |
| 36 | + - WARN |
| 37 | + - DEBUG |
| 38 | + - INFO |
| 39 | + - LOG |
| 40 | + - VERBOSE |
| 41 | + - DARK |
| 42 | + - WEBHOOKS |
| 43 | + COLOR: true |
| 44 | + BAILEYS: error # fatal | error | warn | info | debug | trace |
| 45 | + |
| 46 | +# Determine how long the instance should be deleted from memory in case of no connection. |
| 47 | +# Default time: 5 minutes |
| 48 | +# If you don't even want an expiration, enter the value false |
| 49 | +DEL_INSTANCE: false # or false |
| 50 | +DEL_TEMP_INSTANCES: true # Delete instances with status closed on start |
| 51 | + |
| 52 | +# Temporary data storage |
| 53 | +STORE: |
| 54 | + MESSAGES: true |
| 55 | + MESSAGE_UP: true |
| 56 | + CONTACTS: true |
| 57 | + CHATS: true |
| 58 | + |
| 59 | +CLEAN_STORE: |
| 60 | + CLEANING_INTERVAL: 7200 # 7200 seconds === 2h |
| 61 | + MESSAGES: true |
| 62 | + MESSAGE_UP: true |
| 63 | + CONTACTS: true |
| 64 | + CHATS: true |
| 65 | + |
| 66 | +# Permanent data storage |
| 67 | +DATABASE: |
| 68 | + ENABLED: false |
| 69 | + CONNECTION: |
| 70 | + URI: "mongodb://root:root@localhost:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true" |
| 71 | + DB_PREFIX_NAME: evolution |
| 72 | + # Choose the data you want to save in the application's database or store |
| 73 | + SAVE_DATA: |
| 74 | + INSTANCE: false |
| 75 | + NEW_MESSAGE: false |
| 76 | + MESSAGE_UPDATE: false |
| 77 | + CONTACTS: false |
| 78 | + CHATS: false |
| 79 | + |
| 80 | +RABBITMQ: |
| 81 | + ENABLED: false |
| 82 | + MODE: "global" |
| 83 | + EXCHANGE_NAME: "evolution_exchange" |
| 84 | + URI: "amqp://guest:guest@localhost:5672" |
| 85 | + |
| 86 | +SQS: |
| 87 | + ENABLED: true |
| 88 | + ACCESS_KEY_ID: "" |
| 89 | + SECRET_ACCESS_KEY: "" |
| 90 | + ACCOUNT_ID: "" |
| 91 | + REGION: "us-east-1" |
| 92 | + |
| 93 | +WEBSOCKET: |
| 94 | + ENABLED: false |
| 95 | + GLOBAL_EVENTS: false |
| 96 | + |
| 97 | +WA_BUSINESS: |
| 98 | + TOKEN_WEBHOOK: evolution |
| 99 | + URL: https://graph.facebook.com |
| 100 | + VERSION: v18.0 |
| 101 | + LANGUAGE: pt_BR |
| 102 | + |
| 103 | +# Global Webhook Settings |
| 104 | +# Each instance's Webhook URL and events will be requested at the time it is created |
| 105 | +WEBHOOK: |
| 106 | + # Define a global webhook that will listen for enabled events from all instances |
| 107 | + GLOBAL: |
| 108 | + URL: <url> |
| 109 | + ENABLED: false |
| 110 | + # With this option activated, you work with a url per webhook event, respecting the global url and the name of each event |
| 111 | + WEBHOOK_BY_EVENTS: false |
| 112 | + # Automatically maps webhook paths |
| 113 | + # Set the events you want to hear |
| 114 | + EVENTS: |
| 115 | + APPLICATION_STARTUP: false |
| 116 | + QRCODE_UPDATED: true |
| 117 | + MESSAGES_SET: true |
| 118 | + MESSAGES_UPSERT: true |
| 119 | + MESSAGES_UPDATE: true |
| 120 | + MESSAGES_DELETE: true |
| 121 | + SEND_MESSAGE: true |
| 122 | + CONTACTS_SET: true |
| 123 | + CONTACTS_UPSERT: true |
| 124 | + CONTACTS_UPDATE: true |
| 125 | + PRESENCE_UPDATE: true |
| 126 | + CHATS_SET: true |
| 127 | + CHATS_UPSERT: true |
| 128 | + CHATS_UPDATE: true |
| 129 | + CHATS_DELETE: true |
| 130 | + GROUPS_UPSERT: true |
| 131 | + GROUP_UPDATE: true |
| 132 | + GROUP_PARTICIPANTS_UPDATE: true |
| 133 | + CONNECTION_UPDATE: true |
| 134 | + LABELS_EDIT: true |
| 135 | + LABELS_ASSOCIATION: true |
| 136 | + CALL: true |
| 137 | + # This event fires every time a new token is requested via the refresh route |
| 138 | + NEW_JWT_TOKEN: false |
| 139 | + # This events is used with Typebot |
| 140 | + TYPEBOT_START: false |
| 141 | + TYPEBOT_CHANGE_STATUS: false |
| 142 | + # This event is used with Chama AI |
| 143 | + CHAMA_AI_ACTION: false |
| 144 | + # This event is used to send errors to the webhook |
| 145 | + ERRORS: false |
| 146 | + ERRORS_WEBHOOK: <url> |
| 147 | + |
| 148 | +CONFIG_SESSION_PHONE: |
| 149 | + # Name that will be displayed on smartphone connection |
| 150 | + CLIENT: "Evolution API" |
| 151 | + NAME: Chrome # Chrome | Firefox | Edge | Opera | Safari |
| 152 | + |
| 153 | +# Set qrcode display limit |
| 154 | +QRCODE: |
| 155 | + LIMIT: 30 |
| 156 | + COLOR: "#198754" |
| 157 | + |
| 158 | +TYPEBOT: |
| 159 | + API_VERSION: "old" # old | latest |
| 160 | + KEEP_OPEN: false |
| 161 | + |
| 162 | +CHATWOOT: |
| 163 | + # If you leave this option as false, when deleting the message for everyone on WhatsApp, it will not be deleted on Chatwoot. |
| 164 | + MESSAGE_DELETE: true # false | true |
| 165 | + # 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. |
| 166 | + MESSAGE_READ: false # false | true |
| 167 | + IMPORT: |
| 168 | + # This db connection is used to import messages from whatsapp to chatwoot database |
| 169 | + DATABASE: |
| 170 | + CONNECTION: |
| 171 | + URI: "postgres://user:password@hostname:port/dbname" |
| 172 | + PLACEHOLDER_MEDIA_MESSAGE: true |
| 173 | + |
| 174 | +# Cache to optimize application performance |
| 175 | +CACHE: |
| 176 | + REDIS: |
| 177 | + ENABLED: false |
| 178 | + URI: "redis://localhost:6379" |
| 179 | + PREFIX_KEY: "evolution" |
| 180 | + TTL: 604800 |
| 181 | + SAVE_INSTANCES: false |
| 182 | + LOCAL: |
| 183 | + ENABLED: false |
| 184 | + TTL: 86400 |
| 185 | + |
| 186 | +# Defines an authentication type for the api |
| 187 | +# We recommend using the apikey because it will allow you to use a custom token, |
| 188 | +# if you use jwt, a random token will be generated and may be expired and you will have to generate a new token |
| 189 | +AUTHENTICATION: |
| 190 | + TYPE: apikey # jwt or apikey |
| 191 | + # Define a global apikey to access all instances |
| 192 | + API_KEY: |
| 193 | + # OBS: This key must be inserted in the request header to create an instance. |
| 194 | + KEY: B6D711FCDE4D4FD5936544120E713976 |
| 195 | + # Expose the api key on return from fetch instances |
| 196 | + EXPOSE_IN_FETCH_INSTANCES: true |
| 197 | + # Set the secret key to encrypt and decrypt your token and its expiration time. |
| 198 | + JWT: |
| 199 | + EXPIRIN_IN: 0 # seconds - 3600s === 1h | zero (0) - never expires |
| 200 | + SECRET: L=0YWt]b2w[WF>#>:&E` |
| 201 | + |
| 202 | +LANGUAGE: "pt-BR" # pt-BR, en |
0 commit comments