harb/containers/Caddyfile
johba ca2bc03567 fix: feat: basic analytics funnel tracking for launch readiness (#1101)
Add self-hosted Umami analytics to replace the third-party cloud.umami.is
tracker. Creates @harb/analytics package with typed event helpers and
instruments the conversion funnel: CTA clicks (landing), wallet connect,
swap initiated, and stake created (web-app).

- Add Umami Docker service sharing existing postgres (separate DB)
- Add Caddy /analytics route to proxy Umami dashboard
- Configure via VITE_UMAMI_URL and VITE_UMAMI_WEBSITE_ID env vars
- Document setup and funnel events in docs/ENVIRONMENT.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:04:24 +00:00

26 lines
527 B
Caddyfile

:80 {
route /app* {
reverse_proxy webapp:5173
}
route /api/graphql* {
header Cache-Control "public, max-age=5"
uri strip_prefix /api
reverse_proxy ponder:42069
}
route /health* {
reverse_proxy ponder:42069
}
route /api/rpc* {
uri strip_prefix /api/rpc
reverse_proxy anvil:8545
}
route /api/txn* {
uri strip_prefix /api/txn
reverse_proxy txn-bot:43069
}
route /analytics* {
uri strip_prefix /analytics
reverse_proxy umami:3000
}
reverse_proxy landing:5174
}