mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 19:18:41 +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>
12 lines
361 B
Desktop File
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
|