From a30246a97975582a6e764f682fa33e95a94d75b2 Mon Sep 17 00:00:00 2001 From: Joao Date: Fri, 24 Jan 2025 18:55:16 -0300 Subject: [PATCH 1/3] Added: EvolutionApi --- public/v4/apps/evolution-api.yml | 238 ++++++++++++++++++++++++++++++ public/v4/logos/evolution-api.png | Bin 0 -> 11682 bytes 2 files changed, 238 insertions(+) create mode 100644 public/v4/apps/evolution-api.yml create mode 100644 public/v4/logos/evolution-api.png diff --git a/public/v4/apps/evolution-api.yml b/public/v4/apps/evolution-api.yml new file mode 100644 index 000000000..236916b76 --- /dev/null +++ b/public/v4/apps/evolution-api.yml @@ -0,0 +1,238 @@ +captainVersion: 4 +services: + $$cap_appname: + image: atendai/evolution-api:$$cap_ant_version + restart: always + environment: + SERVER_TYPE: 'http' + SERVER_PORT: '80' + SERVER_URL: 'https://$$cap_appname.$$cap_root_domain' + SENTRY_DSN: '' + CORS_ORIGIN: '*' + CORS_METHODS: 'POST,GET,PUT,DELETE' + CORS_CREDENTIALS: 'true' + LOG_LEVEL: 'info' + LOG_COLOR: 'true' + LOG_BAILEYS: 'error' + EVENT_EMITTER_MAX_LISTENERS: '100' + DEL_INSTANCE: 'false' + DATABASE_PROVIDER: 'postgresql' + DATABASE_CONNECTION_URI: 'postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db' + DATABASE_CONNECTION_CLIENT_NAME: 'evolution-api' + DATABASE_SAVE_DATA_INSTANCE: 'true' + DATABASE_SAVE_DATA_NEW_MESSAGE: 'true' + DATABASE_SAVE_MESSAGE_UPDATE: 'true' + DATABASE_SAVE_DATA_CONTACTS: 'true' + DATABASE_SAVE_DATA_CHATS: 'true' + DATABASE_SAVE_DATA_LABELS: 'true' + DATABASE_SAVE_DATA_HISTORIC: 'true' + DATABASE_SAVE_IS_ON_WHATSAPP: 'true' + DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: '30' + DATABASE_DELETE_MESSAGE: 'false' + RABBITMQ_ENABLED: 'true' + RABBITMQ_URI: 'amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672' + RABBITMQ_EXCHANGE_NAME: 'evolution-api' + RABBITMQ_GLOBAL_ENABLED: 'true' + RABBITMQ_EVENTS_APPLICATION_STARTUP: 'true' + RABBITMQ_EVENTS_INSTANCE_CREATE: 'true' + RABBITMQ_EVENTS_INSTANCE_DELETE: 'true' + RABBITMQ_EVENTS_QRCODE_UPDATED: 'true' + RABBITMQ_EVENTS_MESSAGES_SET: 'true' + RABBITMQ_EVENTS_MESSAGES_UPSERT: 'true' + RABBITMQ_EVENTS_MESSAGES_EDITED: 'true' + RABBITMQ_EVENTS_MESSAGES_UPDATE: 'true' + RABBITMQ_EVENTS_MESSAGES_DELETE: 'true' + RABBITMQ_EVENTS_SEND_MESSAGE: 'true' + RABBITMQ_EVENTS_CONTACTS_SET: 'true' + RABBITMQ_EVENTS_CONTACTS_UPSERT: 'true' + RABBITMQ_EVENTS_CONTACTS_UPDATE: 'true' + RABBITMQ_EVENTS_PRESENCE_UPDATE: 'true' + RABBITMQ_EVENTS_CHATS_SET: 'true' + RABBITMQ_EVENTS_CHATS_UPSERT: 'true' + RABBITMQ_EVENTS_CHATS_UPDATE: 'true' + RABBITMQ_EVENTS_CHATS_DELETE: 'true' + RABBITMQ_EVENTS_GROUPS_UPSERT: 'true' + RABBITMQ_EVENTS_GROUP_UPDATE: 'true' + RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' + RABBITMQ_EVENTS_CONNECTION_UPDATE: 'true' + RABBITMQ_EVENTS_REMOVE_INSTANCE: 'true' + RABBITMQ_EVENTS_LOGOUT_INSTANCE: 'true' + RABBITMQ_EVENTS_CALL: 'true' + RABBITMQ_EVENTS_TYPEBOT_START: 'true' + RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' + SQS_ENABLED: 'false' + SQS_ACCESS_KEY_ID: '' + SQS_SECRET_ACCESS_KEY: '' + SQS_ACCOUNT_ID: '' + SQS_REGION: '' + WEBSOCKET_ENABLED: 'false' + WEBSOCKET_GLOBAL_EVENTS: 'false' + PUSHER_ENABLED: 'false' + PUSHER_GLOBAL_ENABLED: 'false' + PUSHER_GLOBAL_APP_ID: '' + PUSHER_GLOBAL_KEY: '' + PUSHER_GLOBAL_SECRET: '' + PUSHER_GLOBAL_CLUSTER: '' + PUSHER_GLOBAL_USE_TLS: '' + PUSHER_EVENTS_APPLICATION_STARTUP: '' + PUSHER_EVENTS_QRCODE_UPDATED: '' + PUSHER_EVENTS_MESSAGES_SET: '' + PUSHER_EVENTS_MESSAGES_UPSERT: '' + PUSHER_EVENTS_MESSAGES_EDITED: '' + PUSHER_EVENTS_MESSAGES_UPDATE: '' + PUSHER_EVENTS_MESSAGES_DELETE: '' + PUSHER_EVENTS_SEND_MESSAGE: '' + PUSHER_EVENTS_CONTACTS_SET: '' + PUSHER_EVENTS_CONTACTS_UPSERT: '' + PUSHER_EVENTS_CONTACTS_UPDATE: '' + PUSHER_EVENTS_PRESENCE_UPDATE: '' + PUSHER_EVENTS_CHATS_SET: '' + PUSHER_EVENTS_CHATS_UPSERT: '' + PUSHER_EVENTS_CHATS_UPDATE: '' + PUSHER_EVENTS_CHATS_DELETE: '' + PUSHER_EVENTS_GROUPS_UPSERT: '' + PUSHER_EVENTS_GROUPS_UPDATE: '' + PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: '' + PUSHER_EVENTS_CONNECTION_UPDATE: '' + PUSHER_EVENTS_LABELS_EDIT: '' + PUSHER_EVENTS_LABELS_ASSOCIATION: '' + PUSHER_EVENTS_CALL: '' + PUSHER_EVENTS_TYPEBOT_START: '' + PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: '' + WA_BUSINESS_TOKEN_WEBHOOK: '' + WA_BUSINESS_URL: '' + WA_BUSINESS_VERSION: '' + WA_BUSINESS_LANGUAGE: '' + WEBHOOK_GLOBAL_ENABLED: 'true' + WEBHOOK_GLOBAL_URL: 'https://your-webhook-url.com' + WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: 'true' + WEBHOOK_EVENTS_APPLICATION_STARTUP: 'true' + WEBHOOK_EVENTS_QRCODE_UPDATED: 'true' + WEBHOOK_EVENTS_MESSAGES_SET: 'true' + WEBHOOK_EVENTS_MESSAGES_UPSERT: 'true' + WEBHOOK_EVENTS_MESSAGES_EDITED: 'true' + WEBHOOK_EVENTS_MESSAGES_UPDATE: 'true' + WEBHOOK_EVENTS_MESSAGES_DELETE: 'true' + WEBHOOK_EVENTS_SEND_MESSAGE: 'true' + WEBHOOK_EVENTS_CONTACTS_SET: 'true' + WEBHOOK_EVENTS_CONTACTS_UPSERT: 'true' + WEBHOOK_EVENTS_CONTACTS_UPDATE: 'true' + WEBHOOK_EVENTS_PRESENCE_UPDATE: 'true' + WEBHOOK_EVENTS_CHATS_SET: 'true' + WEBHOOK_EVENTS_CHATS_UPSERT: 'true' + WEBHOOK_EVENTS_CHATS_UPDATE: 'true' + WEBHOOK_EVENTS_CHATS_DELETE: 'true' + WEBHOOK_EVENTS_GROUPS_UPSERT: 'true' + WEBHOOK_EVENTS_GROUPS_UPDATE: 'true' + WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' + WEBHOOK_EVENTS_CONNECTION_UPDATE: 'true' + WEBHOOK_EVENTS_REMOVE_INSTANCE: 'true' + WEBHOOK_EVENTS_LOGOUT_INSTANCE: 'true' + WEBHOOK_EVENTS_LABELS_EDIT: 'true' + WEBHOOK_EVENTS_LABELS_ASSOCIATION: 'true' + WEBHOOK_EVENTS_CALL: 'true' + WEBHOOK_EVENTS_TYPEBOT_START: 'true' + WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' + WEBHOOK_EVENTS_ERRORS: 'true' + WEBHOOK_EVENTS_ERRORS_WEBHOOK: 'true' + CONFIG_SESSION_PHONE_CLIENT: 'Evolution API' + CONFIG_SESSION_PHONE_NAME: 'Chrome' + CONFIG_SESSION_PHONE_VERSION: '4.0.0' + QRCODE_LIMIT: '30' + QRCODE_COLOR: '#198754' + TYPEBOT_ENABLED: 'false' + TYPEBOT_API_VERSION: '1' + CHATWOOT_ENABLED: 'false' + CHATWOOT_MESSAGE_READ: 'false' + CHATWOOT_MESSAGE_DELETE: 'false' + CHATWOOT_BOT_CONTACT: 'false' + CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: '' + CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: '' + OPENAI_ENABLED: 'false' + DIFY_ENABLED: 'false' + CACHE_REDIS_ENABLED: 'true' + CACHE_REDIS_URI: 'redis://srv-captain--$$cap_appname-redis:6379' + CACHE_REDIS_TTL: '3600' + CACHE_REDIS_PREFIX_KEY: 'evolution-api:' + CACHE_REDIS_SAVE_INSTANCES: 'true' + CACHE_LOCAL_ENABLED: 'false' + S3_ENABLED: 'false' + S3_ACCESS_KEY: '' + S3_SECRET_KEY: '' + S3_BUCKET: '' + S3_PORT: '' + S3_ENDPOINT: '' + S3_REGION: 'us-east-1' + S3_USE_SSL: 'false' + AUTHENTICATION_API_KEY: '$$cap_appname_authentication_api_key' + AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: 'false' + LANGUAGE: 'en' + PROXY_HOST: '' + PROXY_PORT: '' + PROXY_PROTOCOL: '' + PROXY_USERNAME: '' + PROXY_PASSWORD: '' + volumes: + - $$cap_appname-data:/evolution + depends_on: + - $$cap_appname-redis + - $$cap_appname-postgres + - $$cap_appname-rabbitmq + $$cap_appname-redis: + image: redis:latest + restart: always + volumes: + - $$cap_appname-redis-data:/data + $$cap_appname-postgres: + image: postgres:13 + restart: always + environment: + POSTGRES_USER: $$cap_postgres_user + POSTGRES_PASSWORD: $$cap_postgres_password + POSTGRES_DB: $$cap_postgres_db + volumes: + - $$cap_appname-postgres-data:/var/lib/postgresql/data + $$cap_appname-rabbitmq: + image: rabbitmq:3-management + restart: always + environment: + RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user + RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password + volumes: + - $$cap_appname-rabbitmq-data:/var/lib/rabbitmq +caproverOneClickApp: + variables: + - id: $$cap_ant_version + label: Evolution API Version + description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags + defaultValue: latest + - id: $$cap_appname_authentication_api_key + label: Authentication API Key + description: Set a strong API key for authentication + defaultValue: $$cap_gen_random_hex(32) + - id: $$cap_postgres_user + label: PostgreSQL Username + description: Set the username for PostgreSQL + defaultValue: evolution + - id: $$cap_postgres_password + label: PostgreSQL Password + description: Set a strong password for PostgreSQL + defaultValue: $$cap_gen_random_hex(16) + - id: $$cap_postgres_db + label: PostgreSQL Database Name + description: Set the database name for PostgreSQL + defaultValue: evolution_db + - id: $$cap_rabbitmq_user + label: RabbitMQ Username + description: Set the username for RabbitMQ + defaultValue: evolution + - id: $$cap_rabbitmq_password + label: RabbitMQ Password + description: Set a strong password for RabbitMQ + defaultValue: $$cap_gen_random_hex(16) + instructions: + start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... + end: Please allow up to 10 minutes for the setup to complete. Once finished, HTTPS and WebSocket support will be activated. + displayName: Evolution API + isOfficial: true + description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication. diff --git a/public/v4/logos/evolution-api.png b/public/v4/logos/evolution-api.png new file mode 100644 index 0000000000000000000000000000000000000000..89994be968237d95919619a4f0528877e1dc5044 GIT binary patch literal 11682 zcmeHt^;cA1*e@d8rF0{RbT>$Mhje#JH|WqIDcvotz<{*0bcq8Z-Q6HH-2MFr?pk-< zAK!P@VJ%>WeGbogo=@!)qoF2`jX{QifPjFls34<-fbfjuzb`aI@Ef$lkVOOpHU~u+ zNgco3!zKS9ovTg>xX|dK5o6XNxq%`YEuIw3Tf}EF*W+*2BMprfmmTXnV@GRSnt!bz z>l{Ku=4Rr&w-9635$PZn_zF_`;Ybbj4Azqjjgz@sH#E}B5!UBIJOzrqry=5Z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5879d470301ff4ea640b24560e0c571d63 Mon Sep 17 00:00:00 2001 From: Joao Date: Sun, 26 Jan 2025 02:13:35 -0300 Subject: [PATCH 2/3] Added: EvolutionApi --- public/v4/apps/evolution-api.yml | 482 ++++++++++++++++--------------- 1 file changed, 247 insertions(+), 235 deletions(-) diff --git a/public/v4/apps/evolution-api.yml b/public/v4/apps/evolution-api.yml index 236916b76..6b2463b64 100644 --- a/public/v4/apps/evolution-api.yml +++ b/public/v4/apps/evolution-api.yml @@ -1,238 +1,250 @@ captainVersion: 4 services: - $$cap_appname: - image: atendai/evolution-api:$$cap_ant_version - restart: always - environment: - SERVER_TYPE: 'http' - SERVER_PORT: '80' - SERVER_URL: 'https://$$cap_appname.$$cap_root_domain' - SENTRY_DSN: '' - CORS_ORIGIN: '*' - CORS_METHODS: 'POST,GET,PUT,DELETE' - CORS_CREDENTIALS: 'true' - LOG_LEVEL: 'info' - LOG_COLOR: 'true' - LOG_BAILEYS: 'error' - EVENT_EMITTER_MAX_LISTENERS: '100' - DEL_INSTANCE: 'false' - DATABASE_PROVIDER: 'postgresql' - DATABASE_CONNECTION_URI: 'postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db' - DATABASE_CONNECTION_CLIENT_NAME: 'evolution-api' - DATABASE_SAVE_DATA_INSTANCE: 'true' - DATABASE_SAVE_DATA_NEW_MESSAGE: 'true' - DATABASE_SAVE_MESSAGE_UPDATE: 'true' - DATABASE_SAVE_DATA_CONTACTS: 'true' - DATABASE_SAVE_DATA_CHATS: 'true' - DATABASE_SAVE_DATA_LABELS: 'true' - DATABASE_SAVE_DATA_HISTORIC: 'true' - DATABASE_SAVE_IS_ON_WHATSAPP: 'true' - DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: '30' - DATABASE_DELETE_MESSAGE: 'false' - RABBITMQ_ENABLED: 'true' - RABBITMQ_URI: 'amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672' - RABBITMQ_EXCHANGE_NAME: 'evolution-api' - RABBITMQ_GLOBAL_ENABLED: 'true' - RABBITMQ_EVENTS_APPLICATION_STARTUP: 'true' - RABBITMQ_EVENTS_INSTANCE_CREATE: 'true' - RABBITMQ_EVENTS_INSTANCE_DELETE: 'true' - RABBITMQ_EVENTS_QRCODE_UPDATED: 'true' - RABBITMQ_EVENTS_MESSAGES_SET: 'true' - RABBITMQ_EVENTS_MESSAGES_UPSERT: 'true' - RABBITMQ_EVENTS_MESSAGES_EDITED: 'true' - RABBITMQ_EVENTS_MESSAGES_UPDATE: 'true' - RABBITMQ_EVENTS_MESSAGES_DELETE: 'true' - RABBITMQ_EVENTS_SEND_MESSAGE: 'true' - RABBITMQ_EVENTS_CONTACTS_SET: 'true' - RABBITMQ_EVENTS_CONTACTS_UPSERT: 'true' - RABBITMQ_EVENTS_CONTACTS_UPDATE: 'true' - RABBITMQ_EVENTS_PRESENCE_UPDATE: 'true' - RABBITMQ_EVENTS_CHATS_SET: 'true' - RABBITMQ_EVENTS_CHATS_UPSERT: 'true' - RABBITMQ_EVENTS_CHATS_UPDATE: 'true' - RABBITMQ_EVENTS_CHATS_DELETE: 'true' - RABBITMQ_EVENTS_GROUPS_UPSERT: 'true' - RABBITMQ_EVENTS_GROUP_UPDATE: 'true' - RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' - RABBITMQ_EVENTS_CONNECTION_UPDATE: 'true' - RABBITMQ_EVENTS_REMOVE_INSTANCE: 'true' - RABBITMQ_EVENTS_LOGOUT_INSTANCE: 'true' - RABBITMQ_EVENTS_CALL: 'true' - RABBITMQ_EVENTS_TYPEBOT_START: 'true' - RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' - SQS_ENABLED: 'false' - SQS_ACCESS_KEY_ID: '' - SQS_SECRET_ACCESS_KEY: '' - SQS_ACCOUNT_ID: '' - SQS_REGION: '' - WEBSOCKET_ENABLED: 'false' - WEBSOCKET_GLOBAL_EVENTS: 'false' - PUSHER_ENABLED: 'false' - PUSHER_GLOBAL_ENABLED: 'false' - PUSHER_GLOBAL_APP_ID: '' - PUSHER_GLOBAL_KEY: '' - PUSHER_GLOBAL_SECRET: '' - PUSHER_GLOBAL_CLUSTER: '' - PUSHER_GLOBAL_USE_TLS: '' - PUSHER_EVENTS_APPLICATION_STARTUP: '' - PUSHER_EVENTS_QRCODE_UPDATED: '' - PUSHER_EVENTS_MESSAGES_SET: '' - PUSHER_EVENTS_MESSAGES_UPSERT: '' - PUSHER_EVENTS_MESSAGES_EDITED: '' - PUSHER_EVENTS_MESSAGES_UPDATE: '' - PUSHER_EVENTS_MESSAGES_DELETE: '' - PUSHER_EVENTS_SEND_MESSAGE: '' - PUSHER_EVENTS_CONTACTS_SET: '' - PUSHER_EVENTS_CONTACTS_UPSERT: '' - PUSHER_EVENTS_CONTACTS_UPDATE: '' - PUSHER_EVENTS_PRESENCE_UPDATE: '' - PUSHER_EVENTS_CHATS_SET: '' - PUSHER_EVENTS_CHATS_UPSERT: '' - PUSHER_EVENTS_CHATS_UPDATE: '' - PUSHER_EVENTS_CHATS_DELETE: '' - PUSHER_EVENTS_GROUPS_UPSERT: '' - PUSHER_EVENTS_GROUPS_UPDATE: '' - PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: '' - PUSHER_EVENTS_CONNECTION_UPDATE: '' - PUSHER_EVENTS_LABELS_EDIT: '' - PUSHER_EVENTS_LABELS_ASSOCIATION: '' - PUSHER_EVENTS_CALL: '' - PUSHER_EVENTS_TYPEBOT_START: '' - PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: '' - WA_BUSINESS_TOKEN_WEBHOOK: '' - WA_BUSINESS_URL: '' - WA_BUSINESS_VERSION: '' - WA_BUSINESS_LANGUAGE: '' - WEBHOOK_GLOBAL_ENABLED: 'true' - WEBHOOK_GLOBAL_URL: 'https://your-webhook-url.com' - WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: 'true' - WEBHOOK_EVENTS_APPLICATION_STARTUP: 'true' - WEBHOOK_EVENTS_QRCODE_UPDATED: 'true' - WEBHOOK_EVENTS_MESSAGES_SET: 'true' - WEBHOOK_EVENTS_MESSAGES_UPSERT: 'true' - WEBHOOK_EVENTS_MESSAGES_EDITED: 'true' - WEBHOOK_EVENTS_MESSAGES_UPDATE: 'true' - WEBHOOK_EVENTS_MESSAGES_DELETE: 'true' - WEBHOOK_EVENTS_SEND_MESSAGE: 'true' - WEBHOOK_EVENTS_CONTACTS_SET: 'true' - WEBHOOK_EVENTS_CONTACTS_UPSERT: 'true' - WEBHOOK_EVENTS_CONTACTS_UPDATE: 'true' - WEBHOOK_EVENTS_PRESENCE_UPDATE: 'true' - WEBHOOK_EVENTS_CHATS_SET: 'true' - WEBHOOK_EVENTS_CHATS_UPSERT: 'true' - WEBHOOK_EVENTS_CHATS_UPDATE: 'true' - WEBHOOK_EVENTS_CHATS_DELETE: 'true' - WEBHOOK_EVENTS_GROUPS_UPSERT: 'true' - WEBHOOK_EVENTS_GROUPS_UPDATE: 'true' - WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' - WEBHOOK_EVENTS_CONNECTION_UPDATE: 'true' - WEBHOOK_EVENTS_REMOVE_INSTANCE: 'true' - WEBHOOK_EVENTS_LOGOUT_INSTANCE: 'true' - WEBHOOK_EVENTS_LABELS_EDIT: 'true' - WEBHOOK_EVENTS_LABELS_ASSOCIATION: 'true' - WEBHOOK_EVENTS_CALL: 'true' - WEBHOOK_EVENTS_TYPEBOT_START: 'true' - WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' - WEBHOOK_EVENTS_ERRORS: 'true' - WEBHOOK_EVENTS_ERRORS_WEBHOOK: 'true' - CONFIG_SESSION_PHONE_CLIENT: 'Evolution API' - CONFIG_SESSION_PHONE_NAME: 'Chrome' - CONFIG_SESSION_PHONE_VERSION: '4.0.0' - QRCODE_LIMIT: '30' - QRCODE_COLOR: '#198754' - TYPEBOT_ENABLED: 'false' - TYPEBOT_API_VERSION: '1' - CHATWOOT_ENABLED: 'false' - CHATWOOT_MESSAGE_READ: 'false' - CHATWOOT_MESSAGE_DELETE: 'false' - CHATWOOT_BOT_CONTACT: 'false' - CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: '' - CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: '' - OPENAI_ENABLED: 'false' - DIFY_ENABLED: 'false' - CACHE_REDIS_ENABLED: 'true' - CACHE_REDIS_URI: 'redis://srv-captain--$$cap_appname-redis:6379' - CACHE_REDIS_TTL: '3600' - CACHE_REDIS_PREFIX_KEY: 'evolution-api:' - CACHE_REDIS_SAVE_INSTANCES: 'true' - CACHE_LOCAL_ENABLED: 'false' - S3_ENABLED: 'false' - S3_ACCESS_KEY: '' - S3_SECRET_KEY: '' - S3_BUCKET: '' - S3_PORT: '' - S3_ENDPOINT: '' - S3_REGION: 'us-east-1' - S3_USE_SSL: 'false' - AUTHENTICATION_API_KEY: '$$cap_appname_authentication_api_key' - AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: 'false' - LANGUAGE: 'en' - PROXY_HOST: '' - PROXY_PORT: '' - PROXY_PROTOCOL: '' - PROXY_USERNAME: '' - PROXY_PASSWORD: '' - volumes: - - $$cap_appname-data:/evolution - depends_on: - - $$cap_appname-redis - - $$cap_appname-postgres - - $$cap_appname-rabbitmq - $$cap_appname-redis: - image: redis:latest - restart: always - volumes: - - $$cap_appname-redis-data:/data - $$cap_appname-postgres: - image: postgres:13 - restart: always - environment: - POSTGRES_USER: $$cap_postgres_user - POSTGRES_PASSWORD: $$cap_postgres_password - POSTGRES_DB: $$cap_postgres_db - volumes: - - $$cap_appname-postgres-data:/var/lib/postgresql/data - $$cap_appname-rabbitmq: - image: rabbitmq:3-management - restart: always - environment: - RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user - RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password - volumes: - - $$cap_appname-rabbitmq-data:/var/lib/rabbitmq + $$cap_appname: + image: atendai/evolution-api:$$cap_ant_version + restart: always + environment: + SERVER_TYPE: "http" + SERVER_PORT: "80" + SERVER_URL: "https://$$cap_appname.$$cap_root_domain" + SENTRY_DSN: "" + CORS_ORIGIN: "*" + CORS_METHODS: "POST,GET,PUT,DELETE" + CORS_CREDENTIALS: "true" + LOG_LEVEL: "info" + LOG_COLOR: "true" + LOG_BAILEYS: "error" + EVENT_EMITTER_MAX_LISTENERS: "100" + DEL_INSTANCE: "false" + DATABASE_PROVIDER: "postgresql" + DATABASE_CONNECTION_URI: "postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db" + DATABASE_CONNECTION_CLIENT_NAME: "evolution-api" + DATABASE_SAVE_DATA_INSTANCE: "true" + DATABASE_SAVE_DATA_NEW_MESSAGE: "true" + DATABASE_SAVE_MESSAGE_UPDATE: "true" + DATABASE_SAVE_DATA_CONTACTS: "true" + DATABASE_SAVE_DATA_CHATS: "true" + DATABASE_SAVE_DATA_LABELS: "true" + DATABASE_SAVE_DATA_HISTORIC: "true" + DATABASE_SAVE_IS_ON_WHATSAPP: "true" + DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: "30" + DATABASE_DELETE_MESSAGE: "false" + RABBITMQ_ENABLED: "true" + RABBITMQ_URI: "amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672" + RABBITMQ_EXCHANGE_NAME: "evolution-api" + RABBITMQ_GLOBAL_ENABLED: "true" + RABBITMQ_EVENTS_APPLICATION_STARTUP: "true" + RABBITMQ_EVENTS_INSTANCE_CREATE: "true" + RABBITMQ_EVENTS_INSTANCE_DELETE: "true" + RABBITMQ_EVENTS_QRCODE_UPDATED: "true" + RABBITMQ_EVENTS_MESSAGES_SET: "true" + RABBITMQ_EVENTS_MESSAGES_UPSERT: "true" + RABBITMQ_EVENTS_MESSAGES_EDITED: "true" + RABBITMQ_EVENTS_MESSAGES_UPDATE: "true" + RABBITMQ_EVENTS_MESSAGES_DELETE: "true" + RABBITMQ_EVENTS_SEND_MESSAGE: "true" + RABBITMQ_EVENTS_CONTACTS_SET: "true" + RABBITMQ_EVENTS_CONTACTS_UPSERT: "true" + RABBITMQ_EVENTS_CONTACTS_UPDATE: "true" + RABBITMQ_EVENTS_PRESENCE_UPDATE: "true" + RABBITMQ_EVENTS_CHATS_SET: "true" + RABBITMQ_EVENTS_CHATS_UPSERT: "true" + RABBITMQ_EVENTS_CHATS_UPDATE: "true" + RABBITMQ_EVENTS_CHATS_DELETE: "true" + RABBITMQ_EVENTS_GROUPS_UPSERT: "true" + RABBITMQ_EVENTS_GROUP_UPDATE: "true" + RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: "true" + RABBITMQ_EVENTS_CONNECTION_UPDATE: "true" + RABBITMQ_EVENTS_REMOVE_INSTANCE: "true" + RABBITMQ_EVENTS_LOGOUT_INSTANCE: "true" + RABBITMQ_EVENTS_CALL: "true" + RABBITMQ_EVENTS_TYPEBOT_START: "true" + RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: "true" + SQS_ENABLED: "false" + SQS_ACCESS_KEY_ID: "" + SQS_SECRET_ACCESS_KEY: "" + SQS_ACCOUNT_ID: "" + SQS_REGION: "" + WEBSOCKET_ENABLED: "false" + WEBSOCKET_GLOBAL_EVENTS: "false" + PUSHER_ENABLED: "false" + PUSHER_GLOBAL_ENABLED: "false" + PUSHER_GLOBAL_APP_ID: "" + PUSHER_GLOBAL_KEY: "" + PUSHER_GLOBAL_SECRET: "" + PUSHER_GLOBAL_CLUSTER: "" + PUSHER_GLOBAL_USE_TLS: "" + PUSHER_EVENTS_APPLICATION_STARTUP: "" + PUSHER_EVENTS_QRCODE_UPDATED: "" + PUSHER_EVENTS_MESSAGES_SET: "" + PUSHER_EVENTS_MESSAGES_UPSERT: "" + PUSHER_EVENTS_MESSAGES_EDITED: "" + PUSHER_EVENTS_MESSAGES_UPDATE: "" + PUSHER_EVENTS_MESSAGES_DELETE: "" + PUSHER_EVENTS_SEND_MESSAGE: "" + PUSHER_EVENTS_CONTACTS_SET: "" + PUSHER_EVENTS_CONTACTS_UPSERT: "" + PUSHER_EVENTS_CONTACTS_UPDATE: "" + PUSHER_EVENTS_PRESENCE_UPDATE: "" + PUSHER_EVENTS_CHATS_SET: "" + PUSHER_EVENTS_CHATS_UPSERT: "" + PUSHER_EVENTS_CHATS_UPDATE: "" + PUSHER_EVENTS_CHATS_DELETE: "" + PUSHER_EVENTS_GROUPS_UPSERT: "" + PUSHER_EVENTS_GROUPS_UPDATE: "" + PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: "" + PUSHER_EVENTS_CONNECTION_UPDATE: "" + PUSHER_EVENTS_LABELS_EDIT: "" + PUSHER_EVENTS_LABELS_ASSOCIATION: "" + PUSHER_EVENTS_CALL: "" + PUSHER_EVENTS_TYPEBOT_START: "" + PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: "" + WA_BUSINESS_TOKEN_WEBHOOK: "" + WA_BUSINESS_URL: "" + WA_BUSINESS_VERSION: "" + WA_BUSINESS_LANGUAGE: "" + WEBHOOK_GLOBAL_ENABLED: "true" + WEBHOOK_GLOBAL_URL: "https://your-webhook-url.com" + WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: "true" + WEBHOOK_EVENTS_APPLICATION_STARTUP: "true" + WEBHOOK_EVENTS_QRCODE_UPDATED: "true" + WEBHOOK_EVENTS_MESSAGES_SET: "true" + WEBHOOK_EVENTS_MESSAGES_UPSERT: "true" + WEBHOOK_EVENTS_MESSAGES_EDITED: "true" + WEBHOOK_EVENTS_MESSAGES_UPDATE: "true" + WEBHOOK_EVENTS_MESSAGES_DELETE: "true" + WEBHOOK_EVENTS_SEND_MESSAGE: "true" + WEBHOOK_EVENTS_CONTACTS_SET: "true" + WEBHOOK_EVENTS_CONTACTS_UPSERT: "true" + WEBHOOK_EVENTS_CONTACTS_UPDATE: "true" + WEBHOOK_EVENTS_PRESENCE_UPDATE: "true" + WEBHOOK_EVENTS_CHATS_SET: "true" + WEBHOOK_EVENTS_CHATS_UPSERT: "true" + WEBHOOK_EVENTS_CHATS_UPDATE: "true" + WEBHOOK_EVENTS_CHATS_DELETE: "true" + WEBHOOK_EVENTS_GROUPS_UPSERT: "true" + WEBHOOK_EVENTS_GROUPS_UPDATE: "true" + WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: "true" + WEBHOOK_EVENTS_CONNECTION_UPDATE: "true" + WEBHOOK_EVENTS_REMOVE_INSTANCE: "true" + WEBHOOK_EVENTS_LOGOUT_INSTANCE: "true" + WEBHOOK_EVENTS_LABELS_EDIT: "true" + WEBHOOK_EVENTS_LABELS_ASSOCIATION: "true" + WEBHOOK_EVENTS_CALL: "true" + WEBHOOK_EVENTS_TYPEBOT_START: "true" + WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: "true" + WEBHOOK_EVENTS_ERRORS: "true" + WEBHOOK_EVENTS_ERRORS_WEBHOOK: "true" + CONFIG_SESSION_PHONE_CLIENT: "Evolution API" + CONFIG_SESSION_PHONE_NAME: "Chrome" + CONFIG_SESSION_PHONE_VERSION: "4.0.0" + QRCODE_LIMIT: "30" + QRCODE_COLOR: "#198754" + TYPEBOT_ENABLED: "false" + TYPEBOT_API_VERSION: "1" + CHATWOOT_ENABLED: "false" + CHATWOOT_MESSAGE_READ: "false" + CHATWOOT_MESSAGE_DELETE: "false" + CHATWOOT_BOT_CONTACT: "false" + CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: "" + CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: "" + OPENAI_ENABLED: "false" + DIFY_ENABLED: "false" + CACHE_REDIS_ENABLED: "true" + CACHE_REDIS_URI: "redis://srv-captain--$$cap_appname-redis:6379" + CACHE_REDIS_TTL: "3600" + CACHE_REDIS_PREFIX_KEY: "evolution-api:" + CACHE_REDIS_SAVE_INSTANCES: "true" + CACHE_LOCAL_ENABLED: "false" + S3_ENABLED: "false" + S3_ACCESS_KEY: "" + S3_SECRET_KEY: "" + S3_BUCKET: "" + S3_PORT: "" + S3_ENDPOINT: "" + S3_REGION: "us-east-1" + S3_USE_SSL: "false" + AUTHENTICATION_API_KEY: "$$cap_appname_authentication_api_key" + AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: "false" + LANGUAGE: "en" + PROXY_HOST: "" + PROXY_PORT: "" + PROXY_PROTOCOL: "" + PROXY_USERNAME: "" + PROXY_PASSWORD: "" + volumes: + - $$cap_appname-data:/evolution + depends_on: + - $$cap_appname-redis + - $$cap_appname-postgres + - $$cap_appname-rabbitmq + $$cap_appname-redis: + image: redis:latest + restart: always + volumes: + - $$cap_appname-redis-data:/data + $$cap_appname-postgres: + image: postgres:$${cap_postgres_version} + restart: always + environment: + POSTGRES_USER: $$cap_postgres_user + POSTGRES_PASSWORD: $$cap_postgres_password + POSTGRES_DB: $$cap_postgres_db + volumes: + - $$cap_appname-postgres-data:/var/lib/postgresql/data + $$cap_appname-rabbitmq: + image: rabbitmq:$${cap_rabbitmq_version} + restart: always + environment: + RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user + RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password + volumes: + - $$cap_appname-rabbitmq-data:/var/lib/rabbitmq caproverOneClickApp: - variables: - - id: $$cap_ant_version - label: Evolution API Version - description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags - defaultValue: latest - - id: $$cap_appname_authentication_api_key - label: Authentication API Key - description: Set a strong API key for authentication - defaultValue: $$cap_gen_random_hex(32) - - id: $$cap_postgres_user - label: PostgreSQL Username - description: Set the username for PostgreSQL - defaultValue: evolution - - id: $$cap_postgres_password - label: PostgreSQL Password - description: Set a strong password for PostgreSQL - defaultValue: $$cap_gen_random_hex(16) - - id: $$cap_postgres_db - label: PostgreSQL Database Name - description: Set the database name for PostgreSQL - defaultValue: evolution_db - - id: $$cap_rabbitmq_user - label: RabbitMQ Username - description: Set the username for RabbitMQ - defaultValue: evolution - - id: $$cap_rabbitmq_password - label: RabbitMQ Password - description: Set a strong password for RabbitMQ - defaultValue: $$cap_gen_random_hex(16) - instructions: - start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... - end: Please allow up to 10 minutes for the setup to complete. Once finished, HTTPS and WebSocket support will be activated. - displayName: Evolution API - isOfficial: true - description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication. + variables: + - id: $$cap_ant_version + label: Evolution API Version + description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags + defaultValue: v2.2.1 + - id: $$cap_postgres_version + label: PostgreSQL Version + description: Choose the latest version of PostgreSQL from https://hub.docker.com/_/postgres/tags + defaultValue: 17.2 + - id: $$cap_redis_version + label: Redis Version + description: Choose the latest version of Redis from https://hub.docker.com/_/redis/tags + defaultValue: 7.4.2 + - id: $$cap_rabbitmq_version + label: RabbitMQ Version + description: Choose the latest version of RabbitMQ from https://hub.docker.com/_/rabbitmq/tags + defaultValue: 3.13-alpine + - id: $$cap_appname_authentication_api_key + label: Authentication API Key + description: Set a strong API key for authentication + defaultValue: $$cap_gen_random_hex(32) + - id: $$cap_postgres_user + label: PostgreSQL Username + description: Set the username for PostgreSQL + defaultValue: evolution + - id: $$cap_postgres_password + label: PostgreSQL Password + description: Set a strong password for PostgreSQL + defaultValue: $$cap_gen_random_hex(16) + - id: $$cap_postgres_db + label: PostgreSQL Database Name + description: Set the database name for PostgreSQL + defaultValue: evolution_db + - id: $$cap_rabbitmq_user + label: RabbitMQ Username + description: Set the username for RabbitMQ + defaultValue: evolution + - id: $$cap_rabbitmq_password + label: RabbitMQ Password + description: Set a strong password for RabbitMQ + defaultValue: $$cap_gen_random_hex(16) + instructions: + start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... + end: Once finished, you need to activate HTTPS and WebSocket support before being able to use the app. + displayName: Evolution API + isOfficial: true + description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication. From c464fcd2ee39eddafe4d2466fac34c8453509794 Mon Sep 17 00:00:00 2001 From: Joao Date: Sun, 26 Jan 2025 02:29:38 -0300 Subject: [PATCH 3/3] Added: EvolutionApi (fix) --- public/v4/apps/evolution-api.yml | 494 +++++++++++++++---------------- 1 file changed, 247 insertions(+), 247 deletions(-) diff --git a/public/v4/apps/evolution-api.yml b/public/v4/apps/evolution-api.yml index 6b2463b64..363f51290 100644 --- a/public/v4/apps/evolution-api.yml +++ b/public/v4/apps/evolution-api.yml @@ -1,250 +1,250 @@ captainVersion: 4 services: - $$cap_appname: - image: atendai/evolution-api:$$cap_ant_version - restart: always - environment: - SERVER_TYPE: "http" - SERVER_PORT: "80" - SERVER_URL: "https://$$cap_appname.$$cap_root_domain" - SENTRY_DSN: "" - CORS_ORIGIN: "*" - CORS_METHODS: "POST,GET,PUT,DELETE" - CORS_CREDENTIALS: "true" - LOG_LEVEL: "info" - LOG_COLOR: "true" - LOG_BAILEYS: "error" - EVENT_EMITTER_MAX_LISTENERS: "100" - DEL_INSTANCE: "false" - DATABASE_PROVIDER: "postgresql" - DATABASE_CONNECTION_URI: "postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db" - DATABASE_CONNECTION_CLIENT_NAME: "evolution-api" - DATABASE_SAVE_DATA_INSTANCE: "true" - DATABASE_SAVE_DATA_NEW_MESSAGE: "true" - DATABASE_SAVE_MESSAGE_UPDATE: "true" - DATABASE_SAVE_DATA_CONTACTS: "true" - DATABASE_SAVE_DATA_CHATS: "true" - DATABASE_SAVE_DATA_LABELS: "true" - DATABASE_SAVE_DATA_HISTORIC: "true" - DATABASE_SAVE_IS_ON_WHATSAPP: "true" - DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: "30" - DATABASE_DELETE_MESSAGE: "false" - RABBITMQ_ENABLED: "true" - RABBITMQ_URI: "amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672" - RABBITMQ_EXCHANGE_NAME: "evolution-api" - RABBITMQ_GLOBAL_ENABLED: "true" - RABBITMQ_EVENTS_APPLICATION_STARTUP: "true" - RABBITMQ_EVENTS_INSTANCE_CREATE: "true" - RABBITMQ_EVENTS_INSTANCE_DELETE: "true" - RABBITMQ_EVENTS_QRCODE_UPDATED: "true" - RABBITMQ_EVENTS_MESSAGES_SET: "true" - RABBITMQ_EVENTS_MESSAGES_UPSERT: "true" - RABBITMQ_EVENTS_MESSAGES_EDITED: "true" - RABBITMQ_EVENTS_MESSAGES_UPDATE: "true" - RABBITMQ_EVENTS_MESSAGES_DELETE: "true" - RABBITMQ_EVENTS_SEND_MESSAGE: "true" - RABBITMQ_EVENTS_CONTACTS_SET: "true" - RABBITMQ_EVENTS_CONTACTS_UPSERT: "true" - RABBITMQ_EVENTS_CONTACTS_UPDATE: "true" - RABBITMQ_EVENTS_PRESENCE_UPDATE: "true" - RABBITMQ_EVENTS_CHATS_SET: "true" - RABBITMQ_EVENTS_CHATS_UPSERT: "true" - RABBITMQ_EVENTS_CHATS_UPDATE: "true" - RABBITMQ_EVENTS_CHATS_DELETE: "true" - RABBITMQ_EVENTS_GROUPS_UPSERT: "true" - RABBITMQ_EVENTS_GROUP_UPDATE: "true" - RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: "true" - RABBITMQ_EVENTS_CONNECTION_UPDATE: "true" - RABBITMQ_EVENTS_REMOVE_INSTANCE: "true" - RABBITMQ_EVENTS_LOGOUT_INSTANCE: "true" - RABBITMQ_EVENTS_CALL: "true" - RABBITMQ_EVENTS_TYPEBOT_START: "true" - RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: "true" - SQS_ENABLED: "false" - SQS_ACCESS_KEY_ID: "" - SQS_SECRET_ACCESS_KEY: "" - SQS_ACCOUNT_ID: "" - SQS_REGION: "" - WEBSOCKET_ENABLED: "false" - WEBSOCKET_GLOBAL_EVENTS: "false" - PUSHER_ENABLED: "false" - PUSHER_GLOBAL_ENABLED: "false" - PUSHER_GLOBAL_APP_ID: "" - PUSHER_GLOBAL_KEY: "" - PUSHER_GLOBAL_SECRET: "" - PUSHER_GLOBAL_CLUSTER: "" - PUSHER_GLOBAL_USE_TLS: "" - PUSHER_EVENTS_APPLICATION_STARTUP: "" - PUSHER_EVENTS_QRCODE_UPDATED: "" - PUSHER_EVENTS_MESSAGES_SET: "" - PUSHER_EVENTS_MESSAGES_UPSERT: "" - PUSHER_EVENTS_MESSAGES_EDITED: "" - PUSHER_EVENTS_MESSAGES_UPDATE: "" - PUSHER_EVENTS_MESSAGES_DELETE: "" - PUSHER_EVENTS_SEND_MESSAGE: "" - PUSHER_EVENTS_CONTACTS_SET: "" - PUSHER_EVENTS_CONTACTS_UPSERT: "" - PUSHER_EVENTS_CONTACTS_UPDATE: "" - PUSHER_EVENTS_PRESENCE_UPDATE: "" - PUSHER_EVENTS_CHATS_SET: "" - PUSHER_EVENTS_CHATS_UPSERT: "" - PUSHER_EVENTS_CHATS_UPDATE: "" - PUSHER_EVENTS_CHATS_DELETE: "" - PUSHER_EVENTS_GROUPS_UPSERT: "" - PUSHER_EVENTS_GROUPS_UPDATE: "" - PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: "" - PUSHER_EVENTS_CONNECTION_UPDATE: "" - PUSHER_EVENTS_LABELS_EDIT: "" - PUSHER_EVENTS_LABELS_ASSOCIATION: "" - PUSHER_EVENTS_CALL: "" - PUSHER_EVENTS_TYPEBOT_START: "" - PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: "" - WA_BUSINESS_TOKEN_WEBHOOK: "" - WA_BUSINESS_URL: "" - WA_BUSINESS_VERSION: "" - WA_BUSINESS_LANGUAGE: "" - WEBHOOK_GLOBAL_ENABLED: "true" - WEBHOOK_GLOBAL_URL: "https://your-webhook-url.com" - WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: "true" - WEBHOOK_EVENTS_APPLICATION_STARTUP: "true" - WEBHOOK_EVENTS_QRCODE_UPDATED: "true" - WEBHOOK_EVENTS_MESSAGES_SET: "true" - WEBHOOK_EVENTS_MESSAGES_UPSERT: "true" - WEBHOOK_EVENTS_MESSAGES_EDITED: "true" - WEBHOOK_EVENTS_MESSAGES_UPDATE: "true" - WEBHOOK_EVENTS_MESSAGES_DELETE: "true" - WEBHOOK_EVENTS_SEND_MESSAGE: "true" - WEBHOOK_EVENTS_CONTACTS_SET: "true" - WEBHOOK_EVENTS_CONTACTS_UPSERT: "true" - WEBHOOK_EVENTS_CONTACTS_UPDATE: "true" - WEBHOOK_EVENTS_PRESENCE_UPDATE: "true" - WEBHOOK_EVENTS_CHATS_SET: "true" - WEBHOOK_EVENTS_CHATS_UPSERT: "true" - WEBHOOK_EVENTS_CHATS_UPDATE: "true" - WEBHOOK_EVENTS_CHATS_DELETE: "true" - WEBHOOK_EVENTS_GROUPS_UPSERT: "true" - WEBHOOK_EVENTS_GROUPS_UPDATE: "true" - WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: "true" - WEBHOOK_EVENTS_CONNECTION_UPDATE: "true" - WEBHOOK_EVENTS_REMOVE_INSTANCE: "true" - WEBHOOK_EVENTS_LOGOUT_INSTANCE: "true" - WEBHOOK_EVENTS_LABELS_EDIT: "true" - WEBHOOK_EVENTS_LABELS_ASSOCIATION: "true" - WEBHOOK_EVENTS_CALL: "true" - WEBHOOK_EVENTS_TYPEBOT_START: "true" - WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: "true" - WEBHOOK_EVENTS_ERRORS: "true" - WEBHOOK_EVENTS_ERRORS_WEBHOOK: "true" - CONFIG_SESSION_PHONE_CLIENT: "Evolution API" - CONFIG_SESSION_PHONE_NAME: "Chrome" - CONFIG_SESSION_PHONE_VERSION: "4.0.0" - QRCODE_LIMIT: "30" - QRCODE_COLOR: "#198754" - TYPEBOT_ENABLED: "false" - TYPEBOT_API_VERSION: "1" - CHATWOOT_ENABLED: "false" - CHATWOOT_MESSAGE_READ: "false" - CHATWOOT_MESSAGE_DELETE: "false" - CHATWOOT_BOT_CONTACT: "false" - CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: "" - CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: "" - OPENAI_ENABLED: "false" - DIFY_ENABLED: "false" - CACHE_REDIS_ENABLED: "true" - CACHE_REDIS_URI: "redis://srv-captain--$$cap_appname-redis:6379" - CACHE_REDIS_TTL: "3600" - CACHE_REDIS_PREFIX_KEY: "evolution-api:" - CACHE_REDIS_SAVE_INSTANCES: "true" - CACHE_LOCAL_ENABLED: "false" - S3_ENABLED: "false" - S3_ACCESS_KEY: "" - S3_SECRET_KEY: "" - S3_BUCKET: "" - S3_PORT: "" - S3_ENDPOINT: "" - S3_REGION: "us-east-1" - S3_USE_SSL: "false" - AUTHENTICATION_API_KEY: "$$cap_appname_authentication_api_key" - AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: "false" - LANGUAGE: "en" - PROXY_HOST: "" - PROXY_PORT: "" - PROXY_PROTOCOL: "" - PROXY_USERNAME: "" - PROXY_PASSWORD: "" - volumes: - - $$cap_appname-data:/evolution - depends_on: - - $$cap_appname-redis - - $$cap_appname-postgres - - $$cap_appname-rabbitmq - $$cap_appname-redis: - image: redis:latest - restart: always - volumes: - - $$cap_appname-redis-data:/data - $$cap_appname-postgres: - image: postgres:$${cap_postgres_version} - restart: always - environment: - POSTGRES_USER: $$cap_postgres_user - POSTGRES_PASSWORD: $$cap_postgres_password - POSTGRES_DB: $$cap_postgres_db - volumes: - - $$cap_appname-postgres-data:/var/lib/postgresql/data - $$cap_appname-rabbitmq: - image: rabbitmq:$${cap_rabbitmq_version} - restart: always - environment: - RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user - RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password - volumes: - - $$cap_appname-rabbitmq-data:/var/lib/rabbitmq + $$cap_appname: + image: atendai/evolution-api:$$cap_ant_version + restart: always + environment: + SERVER_TYPE: 'http' + SERVER_PORT: '80' + SERVER_URL: 'https://$$cap_appname.$$cap_root_domain' + SENTRY_DSN: '' + CORS_ORIGIN: '*' + CORS_METHODS: 'POST,GET,PUT,DELETE' + CORS_CREDENTIALS: 'true' + LOG_LEVEL: 'info' + LOG_COLOR: 'true' + LOG_BAILEYS: 'error' + EVENT_EMITTER_MAX_LISTENERS: '100' + DEL_INSTANCE: 'false' + DATABASE_PROVIDER: 'postgresql' + DATABASE_CONNECTION_URI: 'postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db' + DATABASE_CONNECTION_CLIENT_NAME: 'evolution-api' + DATABASE_SAVE_DATA_INSTANCE: 'true' + DATABASE_SAVE_DATA_NEW_MESSAGE: 'true' + DATABASE_SAVE_MESSAGE_UPDATE: 'true' + DATABASE_SAVE_DATA_CONTACTS: 'true' + DATABASE_SAVE_DATA_CHATS: 'true' + DATABASE_SAVE_DATA_LABELS: 'true' + DATABASE_SAVE_DATA_HISTORIC: 'true' + DATABASE_SAVE_IS_ON_WHATSAPP: 'true' + DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: '30' + DATABASE_DELETE_MESSAGE: 'false' + RABBITMQ_ENABLED: 'true' + RABBITMQ_URI: 'amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672' + RABBITMQ_EXCHANGE_NAME: 'evolution-api' + RABBITMQ_GLOBAL_ENABLED: 'true' + RABBITMQ_EVENTS_APPLICATION_STARTUP: 'true' + RABBITMQ_EVENTS_INSTANCE_CREATE: 'true' + RABBITMQ_EVENTS_INSTANCE_DELETE: 'true' + RABBITMQ_EVENTS_QRCODE_UPDATED: 'true' + RABBITMQ_EVENTS_MESSAGES_SET: 'true' + RABBITMQ_EVENTS_MESSAGES_UPSERT: 'true' + RABBITMQ_EVENTS_MESSAGES_EDITED: 'true' + RABBITMQ_EVENTS_MESSAGES_UPDATE: 'true' + RABBITMQ_EVENTS_MESSAGES_DELETE: 'true' + RABBITMQ_EVENTS_SEND_MESSAGE: 'true' + RABBITMQ_EVENTS_CONTACTS_SET: 'true' + RABBITMQ_EVENTS_CONTACTS_UPSERT: 'true' + RABBITMQ_EVENTS_CONTACTS_UPDATE: 'true' + RABBITMQ_EVENTS_PRESENCE_UPDATE: 'true' + RABBITMQ_EVENTS_CHATS_SET: 'true' + RABBITMQ_EVENTS_CHATS_UPSERT: 'true' + RABBITMQ_EVENTS_CHATS_UPDATE: 'true' + RABBITMQ_EVENTS_CHATS_DELETE: 'true' + RABBITMQ_EVENTS_GROUPS_UPSERT: 'true' + RABBITMQ_EVENTS_GROUP_UPDATE: 'true' + RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' + RABBITMQ_EVENTS_CONNECTION_UPDATE: 'true' + RABBITMQ_EVENTS_REMOVE_INSTANCE: 'true' + RABBITMQ_EVENTS_LOGOUT_INSTANCE: 'true' + RABBITMQ_EVENTS_CALL: 'true' + RABBITMQ_EVENTS_TYPEBOT_START: 'true' + RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' + SQS_ENABLED: 'false' + SQS_ACCESS_KEY_ID: '' + SQS_SECRET_ACCESS_KEY: '' + SQS_ACCOUNT_ID: '' + SQS_REGION: '' + WEBSOCKET_ENABLED: 'false' + WEBSOCKET_GLOBAL_EVENTS: 'false' + PUSHER_ENABLED: 'false' + PUSHER_GLOBAL_ENABLED: 'false' + PUSHER_GLOBAL_APP_ID: '' + PUSHER_GLOBAL_KEY: '' + PUSHER_GLOBAL_SECRET: '' + PUSHER_GLOBAL_CLUSTER: '' + PUSHER_GLOBAL_USE_TLS: '' + PUSHER_EVENTS_APPLICATION_STARTUP: '' + PUSHER_EVENTS_QRCODE_UPDATED: '' + PUSHER_EVENTS_MESSAGES_SET: '' + PUSHER_EVENTS_MESSAGES_UPSERT: '' + PUSHER_EVENTS_MESSAGES_EDITED: '' + PUSHER_EVENTS_MESSAGES_UPDATE: '' + PUSHER_EVENTS_MESSAGES_DELETE: '' + PUSHER_EVENTS_SEND_MESSAGE: '' + PUSHER_EVENTS_CONTACTS_SET: '' + PUSHER_EVENTS_CONTACTS_UPSERT: '' + PUSHER_EVENTS_CONTACTS_UPDATE: '' + PUSHER_EVENTS_PRESENCE_UPDATE: '' + PUSHER_EVENTS_CHATS_SET: '' + PUSHER_EVENTS_CHATS_UPSERT: '' + PUSHER_EVENTS_CHATS_UPDATE: '' + PUSHER_EVENTS_CHATS_DELETE: '' + PUSHER_EVENTS_GROUPS_UPSERT: '' + PUSHER_EVENTS_GROUPS_UPDATE: '' + PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: '' + PUSHER_EVENTS_CONNECTION_UPDATE: '' + PUSHER_EVENTS_LABELS_EDIT: '' + PUSHER_EVENTS_LABELS_ASSOCIATION: '' + PUSHER_EVENTS_CALL: '' + PUSHER_EVENTS_TYPEBOT_START: '' + PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: '' + WA_BUSINESS_TOKEN_WEBHOOK: '' + WA_BUSINESS_URL: '' + WA_BUSINESS_VERSION: '' + WA_BUSINESS_LANGUAGE: '' + WEBHOOK_GLOBAL_ENABLED: 'true' + WEBHOOK_GLOBAL_URL: 'https://your-webhook-url.com' + WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: 'true' + WEBHOOK_EVENTS_APPLICATION_STARTUP: 'true' + WEBHOOK_EVENTS_QRCODE_UPDATED: 'true' + WEBHOOK_EVENTS_MESSAGES_SET: 'true' + WEBHOOK_EVENTS_MESSAGES_UPSERT: 'true' + WEBHOOK_EVENTS_MESSAGES_EDITED: 'true' + WEBHOOK_EVENTS_MESSAGES_UPDATE: 'true' + WEBHOOK_EVENTS_MESSAGES_DELETE: 'true' + WEBHOOK_EVENTS_SEND_MESSAGE: 'true' + WEBHOOK_EVENTS_CONTACTS_SET: 'true' + WEBHOOK_EVENTS_CONTACTS_UPSERT: 'true' + WEBHOOK_EVENTS_CONTACTS_UPDATE: 'true' + WEBHOOK_EVENTS_PRESENCE_UPDATE: 'true' + WEBHOOK_EVENTS_CHATS_SET: 'true' + WEBHOOK_EVENTS_CHATS_UPSERT: 'true' + WEBHOOK_EVENTS_CHATS_UPDATE: 'true' + WEBHOOK_EVENTS_CHATS_DELETE: 'true' + WEBHOOK_EVENTS_GROUPS_UPSERT: 'true' + WEBHOOK_EVENTS_GROUPS_UPDATE: 'true' + WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' + WEBHOOK_EVENTS_CONNECTION_UPDATE: 'true' + WEBHOOK_EVENTS_REMOVE_INSTANCE: 'true' + WEBHOOK_EVENTS_LOGOUT_INSTANCE: 'true' + WEBHOOK_EVENTS_LABELS_EDIT: 'true' + WEBHOOK_EVENTS_LABELS_ASSOCIATION: 'true' + WEBHOOK_EVENTS_CALL: 'true' + WEBHOOK_EVENTS_TYPEBOT_START: 'true' + WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' + WEBHOOK_EVENTS_ERRORS: 'true' + WEBHOOK_EVENTS_ERRORS_WEBHOOK: 'true' + CONFIG_SESSION_PHONE_CLIENT: 'Evolution API' + CONFIG_SESSION_PHONE_NAME: 'Chrome' + CONFIG_SESSION_PHONE_VERSION: '4.0.0' + QRCODE_LIMIT: '30' + QRCODE_COLOR: '#198754' + TYPEBOT_ENABLED: 'false' + TYPEBOT_API_VERSION: '1' + CHATWOOT_ENABLED: 'false' + CHATWOOT_MESSAGE_READ: 'false' + CHATWOOT_MESSAGE_DELETE: 'false' + CHATWOOT_BOT_CONTACT: 'false' + CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: '' + CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: '' + OPENAI_ENABLED: 'false' + DIFY_ENABLED: 'false' + CACHE_REDIS_ENABLED: 'true' + CACHE_REDIS_URI: 'redis://srv-captain--$$cap_appname-redis:6379' + CACHE_REDIS_TTL: '3600' + CACHE_REDIS_PREFIX_KEY: 'evolution-api:' + CACHE_REDIS_SAVE_INSTANCES: 'true' + CACHE_LOCAL_ENABLED: 'false' + S3_ENABLED: 'false' + S3_ACCESS_KEY: '' + S3_SECRET_KEY: '' + S3_BUCKET: '' + S3_PORT: '' + S3_ENDPOINT: '' + S3_REGION: 'us-east-1' + S3_USE_SSL: 'false' + AUTHENTICATION_API_KEY: '$$cap_appname_authentication_api_key' + AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: 'false' + LANGUAGE: 'en' + PROXY_HOST: '' + PROXY_PORT: '' + PROXY_PROTOCOL: '' + PROXY_USERNAME: '' + PROXY_PASSWORD: '' + volumes: + - $$cap_appname-data:/evolution + depends_on: + - $$cap_appname-redis + - $$cap_appname-postgres + - $$cap_appname-rabbitmq + $$cap_appname-redis: + image: redis:latest + restart: always + volumes: + - $$cap_appname-redis-data:/data + $$cap_appname-postgres: + image: postgres:$$cap_postgres_version + restart: always + environment: + POSTGRES_USER: $$cap_postgres_user + POSTGRES_PASSWORD: $$cap_postgres_password + POSTGRES_DB: $$cap_postgres_db + volumes: + - $$cap_appname-postgres-data:/var/lib/postgresql/data + $$cap_appname-rabbitmq: + image: rabbitmq:$$cap_rabbitmq_version + restart: always + environment: + RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user + RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password + volumes: + - $$cap_appname-rabbitmq-data:/var/lib/rabbitmq caproverOneClickApp: - variables: - - id: $$cap_ant_version - label: Evolution API Version - description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags - defaultValue: v2.2.1 - - id: $$cap_postgres_version - label: PostgreSQL Version - description: Choose the latest version of PostgreSQL from https://hub.docker.com/_/postgres/tags - defaultValue: 17.2 - - id: $$cap_redis_version - label: Redis Version - description: Choose the latest version of Redis from https://hub.docker.com/_/redis/tags - defaultValue: 7.4.2 - - id: $$cap_rabbitmq_version - label: RabbitMQ Version - description: Choose the latest version of RabbitMQ from https://hub.docker.com/_/rabbitmq/tags - defaultValue: 3.13-alpine - - id: $$cap_appname_authentication_api_key - label: Authentication API Key - description: Set a strong API key for authentication - defaultValue: $$cap_gen_random_hex(32) - - id: $$cap_postgres_user - label: PostgreSQL Username - description: Set the username for PostgreSQL - defaultValue: evolution - - id: $$cap_postgres_password - label: PostgreSQL Password - description: Set a strong password for PostgreSQL - defaultValue: $$cap_gen_random_hex(16) - - id: $$cap_postgres_db - label: PostgreSQL Database Name - description: Set the database name for PostgreSQL - defaultValue: evolution_db - - id: $$cap_rabbitmq_user - label: RabbitMQ Username - description: Set the username for RabbitMQ - defaultValue: evolution - - id: $$cap_rabbitmq_password - label: RabbitMQ Password - description: Set a strong password for RabbitMQ - defaultValue: $$cap_gen_random_hex(16) - instructions: - start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... - end: Once finished, you need to activate HTTPS and WebSocket support before being able to use the app. - displayName: Evolution API - isOfficial: true - description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication. + variables: + - id: $$cap_ant_version + label: Evolution API Version + description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags + defaultValue: v2.2.1 + - id: $$cap_postgres_version + label: PostgreSQL Version + description: Choose the latest version of PostgreSQL from https://hub.docker.com/_/postgres/tags + defaultValue: '17' + - id: $$cap_redis_version + label: Redis Version + description: Choose the latest version of Redis from https://hub.docker.com/_/redis/tags + defaultValue: '6.2' + - id: $$cap_rabbitmq_version + label: RabbitMQ Version + description: Choose the latest version of RabbitMQ from https://hub.docker.com/_/rabbitmq/tags + defaultValue: '3.7' + - id: $$cap_appname_authentication_api_key + label: Authentication API Key + description: Set a strong API key for authentication + defaultValue: $$cap_gen_random_hex(32) + - id: $$cap_postgres_user + label: PostgreSQL Username + description: Set the username for PostgreSQL + defaultValue: evolution + - id: $$cap_postgres_password + label: PostgreSQL Password + description: Set a strong password for PostgreSQL + defaultValue: $$cap_gen_random_hex(16) + - id: $$cap_postgres_db + label: PostgreSQL Database Name + description: Set the database name for PostgreSQL + defaultValue: evolution_db + - id: $$cap_rabbitmq_user + label: RabbitMQ Username + description: Set the username for RabbitMQ + defaultValue: evolution + - id: $$cap_rabbitmq_password + label: RabbitMQ Password + description: Set a strong password for RabbitMQ + defaultValue: $$cap_gen_random_hex(16) + instructions: + start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... + end: Once finished, you need to activate HTTPS and WebSocket support before being able to use the app. + displayName: Evolution API + isOfficial: true + description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication.