gitea 请求延长到20分钟

This commit is contained in:
xiaoxiaoqiong 2022-03-11 14:06:12 +08:00
parent 8d0a6d267a
commit 99fbecc834
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class Gitea::ClientService < ApplicationService
req.headers['Content-Type'] = 'application/json'
req.response :logger # 显示日志
req.adapter Faraday.default_adapter
req.options.timeout = 100 # open/read timeout in seconds
req.options.timeout = 1200 # open/read timeout in seconds
req.options.open_timeout = 10 # connection open timeout in seconds
if token.blank?
req.basic_auth(username, secret)