From 08b7c7a5acb65f90498aa2d4999b8d1ce262da55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 8 Aug 2022 12:51:26 +0200 Subject: [PATCH] Enable cron job to delete repo archives closes #395 --- site-cookbooks/kosmos_gitea/templates/default/app.ini.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb index ce9ae23..788c45e 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/app.ini.erb @@ -82,6 +82,12 @@ MAX_SIZE = 10 ; ; Max number of files per upload. Defaults to 5 MAX_FILES = 5 +[cron.delete_repo_archives] +ENABLED = true +RUN_AT_START = false +NOTICE_ON_SUCCESS = false +SCHEDULE = @every 15m + <% if c = @config["webhook"] %> [webhook] <% if c["allowed_host_list"] %>ALLOWED_HOST_LIST = <%= c["allowed_host_list"] %><% end %>