feat(forgejo): Expire repository archives faster #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "expire-archives-faster"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is needed to limit the amount of data on our forgejo host.
Currently our repositories take up ~2GB of storage while the repository
archives take up ~29GB.
This most likely happens because of scraper bots [1].
With this change we now expire repo archives older than 2 hours and
clean those up every hour. This should keep the disk space used at least
somewhat limited. Config ref [2]
In addition to this we might want to deploy a proper robots.txt [3] to
at least keep good bots out.
[1] https://codeberg.org/forgejo/forgejo/issues/923
[2] https://forgejo.org/docs/latest/admin/config-cheat-sheet/#cron---cleanup-old-repository-archives-cronarchive_cleanup
[3] https://code.forgejo.org/robots.txt
LGTM.
For the robots.txt i created another issue #8
deployed and LOL

Wild West Web 😆