coolify/templates
Vadko 1b7b2eb0a4 feat: add configurable analytics log retention via pg_cron
- Add ANALYTICS_RETENTION_DAYS env var (default: 7) to supabase-db
- Create _analytics.cleanup_old_logs() function that deletes old
  log_events_* records based on app.analytics_retention_days setting
- Add analytics-retention.sh init script that:
  - Sets app.analytics_retention_days from ANALYTICS_RETENTION_DAYS env var
  - Schedules nightly cleanup at 03:00 UTC via pg_cron

Postgres backend has no built-in log retention, causing unbounded
growth of _analytics.log_events_* tables (~700MB/week typical).
2026-03-09 02:48:55 +02:00
..
compose feat: add configurable analytics log retention via pg_cron 2026-03-09 02:48:55 +02:00
service-templates-latest.json chore: prepare for PR 2026-02-25 10:58:29 +01:00
service-templates.json chore: prepare for PR 2026-02-25 10:58:29 +01:00
test-database-detection.yaml Pinning to the current latest 2025-12-15 17:56:33 +01:00