mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 18:58:49 +01:00
Retiring Vercel silently killed its 4 cron jobs (close-decisions, close-it-hilfe-requests, prune-audit-log, wake-recurring-tasks) — nothing was running them on the box. Re-created them as systemd timers (UTC schedules matching the old vercel.json) driven by run-cron.sh, which calls the local /api/cron/* endpoints with Authorization: Bearer $CRON_SECRET and fails non-zero on any non-200. Also generated + set CRON_SECRET on the box (it was unset, so the endpoints were publicly triggerable; now they return 401 without the bearer). All four verified: HTTP 200 end-to-end. Docs in scripts/ops/README.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
185 B
SYSTEMD
11 lines
185 B
SYSTEMD
[Unit]
|
|
Description=Schedule RevampIT cron: close-decisions (daily 00:00 UTC)
|
|
|
|
[Timer]
|
|
OnCalendar=*-*-* 00:00:00
|
|
Persistent=true
|
|
RandomizedDelaySec=120
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|