Files
evig/scripts/ops/revampit-cron@.service
T
Mao NakamotoandClaude Opus 4.8 84959214e4 feat(ops): restore the 4 Vercel crons as systemd timers (+ CRON_SECRET)
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>
2026-06-19 04:01:29 +02:00

12 lines
361 B
Desktop File

[Unit]
Description=RevampIT self-hosted cron: %i
After=network-online.target revampit-app.service
Wants=network-online.target
[Service]
Type=oneshot
# %i is the endpoint under /api/cron/ (e.g. close-decisions). Runs as root so it
# can read CRON_SECRET from the root-owned /opt/revampit/app/.env.
ExecStart=/opt/revampit/ops/run-cron.sh %i
TimeoutStartSec=180