File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed
Expand file tree Collapse file tree 3 files changed +60
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ .env
Original file line number Diff line number Diff line change 1+ # WHATSMEOW
2+
3+ Documentação do Whatsmeow
4+
5+ [ https://pkg.go.dev/go.mau.fi/whatsmeow ] ( https://pkg.go.dev/go.mau.fi/whatsmeow )
6+
7+ ## Usage
8+
9+ Ajustar o endpoint do traefik no arquivo docker-compose.yml
10+
11+ ``` yaml
12+ labels :
13+ - " traefik.enable=true"
14+ - " traefik.http.routers.whatsmeow.rule=Host(`whatsmeow.seudominio.com`)"
15+ - " traefik.http.routers.whatsmeow.entrypoints=websecure"
16+ - " traefik.http.services.whatsmeow.loadbalancer.server.port=80"
17+ - " traefik.docker.network=production"
18+ ` ` `
19+
20+ Crie o arquivo .env.
21+
22+ ` ` ` bash
23+ cp .env.example .env
24+ ```
25+
26+ ``` dotenv
27+ # Ambiente de execução
28+ WHATSAPP_ENV=production
29+
30+ # Nome do bot ou identificação (caso você modifique o exemplo futuramente)
31+ BOT_NAME=WhatsMeowBot
32+
33+ # Diretório de sessão (mantido para referência, embora o binário use ./storage fixo)
34+ SESSION_DIR=/app/storage
35+
36+ # Log level (futuramente você pode passar isso via flags ou customização)
37+ LOG_LEVEL=info
38+
39+ # API Key fictícia (caso use com algum serviço externo como webhook ou proxy reverso com auth)
40+ API_KEY=changeme
41+ ```
42+
43+ ## Comands
44+
45+ ``` bash
46+ docker compose build
47+ ```
48+
49+ ``` bash
50+ docker compose up -d
51+ ```
52+
53+ ``` bash
54+ docker compose down
55+ ```
56+
57+ ``` bash
58+ docker compose rm
59+ ```
You can’t perform that action at this time.
0 commit comments