summaryrefslogtreecommitdiffstats
path: root/conf/app.ini
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-08-10 08:47:16 +0200
committer无闻 <u@gogs.io>2016-08-09 23:47:16 -0700
commitfc68fb951c179b125b37a83f9e0b5f8dde0478f8 (patch)
treec96933e6b701293062df7fc8b86cf8eb5db57118 /conf/app.ini
parent5448d29b2e987c6f37e03c7c5dda01654c50a685 (diff)
downloadgitea-fc68fb951c179b125b37a83f9e0b5f8dde0478f8.tar.gz
gitea-fc68fb951c179b125b37a83f9e0b5f8dde0478f8.zip
Feature #3398: Redefine global mirror interval (#3409)
* add mirror::GLOBAL_INTERVAL on app.ini * rename key to DEFAULT_INTERVAL * add key on default app.ini + move code
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 006b260be1..5b46365cb9 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -359,6 +359,10 @@ CLONE = 300
PULL = 300
GC = 60
+[mirror]
+; Default interval in hours between each check
+DEFAULT_INTERVAL = 24
+
[api]
; Max number of items will response in a page
MAX_RESPONSE_ITEMS = 50