diff options
author | Andrew <write@imaginarycode.com> | 2017-02-10 23:00:46 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-11 12:00:46 +0800 |
commit | 42835c7f82ac379d5d583fa8406cff529b9d0e9e (patch) | |
tree | 87dc278aa0261a93b65bd06a39db7688f030a288 /conf | |
parent | cf0f451c37496c84795e98191a20350e0f5be35c (diff) | |
download | gitea-42835c7f82ac379d5d583fa8406cff529b9d0e9e.tar.gz gitea-42835c7f82ac379d5d583fa8406cff529b9d0e9e.zip |
Implement archive cleanup (#885)
* Implement archive cleanup
Fixes #769
Signed-off-by: Andrew <write@imaginarycode.com>
* Make sure to close the directory file
* Resolve issues noted by @strk
* edit cheatsheet app.ini [ci skip]
* oops [ci skip]
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index 254b1bc549..8338a1b93d 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -391,6 +391,13 @@ ARGS = RUN_AT_START = true SCHEDULE = @every 24h +; Clean up old repository archives +[cron.archive_cleanup] +RUN_AT_START = true +SCHEDULE = @every 24h +; Archives created more than OLDER_THAN ago are subject to deletion +OLDER_THAN = 24h + [git] ; Disables highlight of added and removed changes DISABLE_DIFF_HIGHLIGHT = false |