feat: add max-preview-lifetime and expiration cron #11

Merged
radu merged 5 commits from feat/preview-expiration into main 2026-07-21 19:56:20 +00:00
Owner

Preview sites auto-expire after 7 days. Changes:

  • config.toml: added max-preview-lifetime = "7d" and allow-expiration = true
  • docker-compose.yml: added expiration to PAGES_FEATURES
  • README.md: documented the cron job needed to run git-pages -site-expire periodically

After deploying, set up the cron on kronos:

# /etc/cron.d/git-pages-expire
*/30 * * * * root docker exec git-pages /bin/git-pages -site-expire -config /etc/git-pages/config.toml
Preview sites auto-expire after 7 days. Changes: - **`config.toml`**: added `max-preview-lifetime = "7d"` and `allow-expiration = true` - **`docker-compose.yml`**: added `expiration` to `PAGES_FEATURES` - **`README.md`**: documented the cron job needed to run `git-pages -site-expire` periodically After deploying, set up the cron on kronos: ```bash # /etc/cron.d/git-pages-expire */30 * * * * root docker exec git-pages /bin/git-pages -site-expire -config /etc/git-pages/config.toml ```
radu merged commit 1e468d5531 into main 2026-07-21 19:56:20 +00:00
radu deleted branch feat/preview-expiration 2026-07-21 19:56:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
homelab/dc-git-pages!11
No description provided.