mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-10 16:35:27 +02:00
evolutioncrm: - Point the evo-crm-frontend domain at port 80 instead of 5173: the community frontend image serves the built app via nginx on port 80 (5173 is the vite dev port), so the domain returned 502. - Set EVOLUTION_API_ONLY_SERVER=true on evo-crm: the community image ships without the Rails dashboard views (the UI lives in the separate evo-crm-frontend service), so the default root route (dashboard#index) can never render and returned 406 for every request. With the flag the root serves the API status JSON; all /api routes are unaffected. - Drop the evolution-go-* volumes that were left over from the other template. evolutiongo: - Evolution GO has no route on "/" and answers 503 (LICENSE_REQUIRED) on API routes until a license is activated through the bundled manager UI, so the single domain never responded. Add a small nginx gateway that redirects "/" to /manager/login and proxies everything else (WebSockets included) 1:1 to evolution-go:8080, and point the domain at it. - Persist /app/dbdata and /app/logs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
60 lines
1.5 KiB
TOML
60 lines
1.5 KiB
TOML
[variables]
|
|
main_domain = "${domain}"
|
|
api_key = "${base64:64}"
|
|
postgres_password = "${password}"
|
|
|
|
[config]
|
|
env = [
|
|
"SERVER_URL=https://${main_domain}",
|
|
"SERVER_PORT=8080",
|
|
"AUTHENTICATION_API_KEY=${api_key}",
|
|
"CLIENT_NAME=Evolution",
|
|
"DATABASE_SAVE_MESSAGES=false",
|
|
"WADEBUG=INFO",
|
|
"LOGTYPE=console",
|
|
"POSTGRES_DATABASE=evolution",
|
|
"POSTGRES_USERNAME=postgresql",
|
|
"POSTGRES_PASSWORD=${postgres_password}",
|
|
"DATABASE_CONNECTION_URI=postgres://postgresql:${postgres_password}@evolution-postgres:5432",
|
|
]
|
|
|
|
[[config.mounts]]
|
|
filePath = "gateway.conf"
|
|
content = """
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
absolute_redirect off;
|
|
client_max_body_size 100m;
|
|
|
|
# Evolution GO has no route on "/" (and the API answers 503 until the
|
|
# license is activated), so send visitors to the bundled manager UI.
|
|
location = / {
|
|
return 302 /manager/login;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://evolution-go:8080;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
}
|
|
"""
|
|
|
|
[[config.domains]]
|
|
serviceName = "evolution-gateway"
|
|
port = 80
|
|
host = "${main_domain}"
|