summaryrefslogtreecommitdiffstats
path: root/custom/conf
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-16 16:30:06 +0800
committerGitHub <noreply@github.com>2019-11-16 16:30:06 +0800
commit1b7182e5ec746d65146a3a9f78989ee1a9fb88a9 (patch)
treeee27fafdbea9adfd80a09fa538998e2e8a8742f8 /custom/conf
parent6fbfffeeb8fa23327660e8f8e168644bc93bf42b (diff)
downloadgitea-1b7182e5ec746d65146a3a9f78989ee1a9fb88a9.tar.gz
gitea-1b7182e5ec746d65146a3a9f78989ee1a9fb88a9.zip
Add retry for migration http/https requests (#9019)
* Add retry for migration http/https requests * give the more suitable name for retry configuraion items * fix docs and lint * Only use retryDownloader when setting > 1
Diffstat (limited to 'custom/conf')
-rw-r--r--custom/conf/app.ini.sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index 34c3ee9db5..599498a4b6 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -892,3 +892,9 @@ QUEUE_LENGTH = 1000
; Task queue connection string, available only when `QUEUE_TYPE` is `redis`.
; If there is a password of redis, use `addrs=127.0.0.1:6379 password=123 db=0`.
QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
+
+[migrations]
+; Max attempts per http/https request on migrations.
+MAX_ATTEMPTS = 3
+; Backoff time per http/https request retry (seconds)
+RETRY_BACKOFF = 3 \ No newline at end of file