打开登录后的首页非常慢(间歇性的)

Gitea 开源版本,Docker 搭建,登录后那个页面有时候打开非常慢。在保持登录的情况下直接打开首页有时候也非常慢。以至于 Nginx 504 错误,最长等待时间可能超过 2 分钟。这个不是一定出现(似乎跟缓存有关),而且每次出现延迟时间也不一定。下面截图是其中一次,响应时间(页面上显示的)达到了 1 分多钟。

有时候直接打开 Notification 页面也很慢,不过一般都是先开首页再开 Notification,所以这种情况很少遇到。不过关于 Notification 页面,在「前端打开仓库界面查看代码界面很慢 - 中文求助(Chinese Only) - Gitea」这里倒是有张截图。

有没有办法解决这个问题?

这是配置(隐藏了部分敏感信息)

APP_NAME = Gitea Code Center
RUN_MODE = prod
RUN_USER = git
WORK_PATH = /data/gitea

[repository]
ROOT = /data/git/repositories
FORCE_PRIVATE = true
MAX_CREATION_LIMIT = 20
DEFAULT_PUSH_CREATE_PRIVATE = true

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo

[repository.upload]
TEMP_PATH = /data/gitea/uploads

[server]
APP_DATA_PATH = /data/gitea
DOMAIN = ......(hidden)
SSH_DOMAIN = ......(hidden)
HTTP_PORT = 3000
ROOT_URL = ......(hidden)
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = ......(hidden)
OFFLINE_MODE = false

[lfs]
PATH = /data/git/lfs

[time]
FORMAT = 2006-01-02 15:04:05 Monday
DEFAULT_UI_LOCATION = Asia/Shanghai

[database]
PATH = /data/gitea/gitea.db
DB_TYPE = sqlite3
HOST = localhost:3306
NAME = gitea
USER = root
PASSWD = 
SSL_MODE = disable
CHARSET = utf8

[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve

[session]
PROVIDER_CONFIG = /data/gitea/sessions
PROVIDER = file

[picture]
AVATAR_UPLOAD_PATH = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = false

[ui]
DEFAULT_SHOW_FULL_NAME = true

[attachment]
PATH = /data/gitea/attachments

[log]
ROOT_PATH = /data/gitea/log
MODE = file
LEVEL = info

[security]
INSTALL_LOCK = true
SECRET_KEY = ......(hidden)
INTERNAL_TOKEN = ......(hidden)
PASSWORD_COMPLEXITY = lower,upper,digit

[service]
DISABLE_REGISTRATION = false
REQUIRE_SIGNIN_VIEW = true
REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = true
DEFAULT_USER_VISIBILITY = limited
DEFAULT_ORG_VISIBILITY = limited
NO_REPLY_ADDRESS = noreply.example.org
EMAIL_DOMAIN_ALLOWLIST = ......(hidden)

[service.explore]
REQUIRE_SIGNIN_VIEW = true
DISABLE_USERS_PAGE = true

[oauth2]
JWT_SECRET = ......(hidden)

[mailer]
ENABLED = true
SMTP_ADDR = ......(hidden)
SMTP_PORT = 25
FROM = ......(hidden)
USER = ......(hidden)
PASSWD = ......(hidden)

[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = false

[i18n]
LANGS = en-US,zh-CN,zh-HK
NAMES = English,简体中文,繁體中文

[markdown]
CUSTOM_URL_SCHEMES = /markdown.css

[cron]
SCHEDULE = 0 0 14 * * MON-FRI
RUN_AT_START = false

[cron.check_repo_stats]
RUN_AT_START = true

[cron.update_mirrors]
PULL_LIMIT = 0
PUSH_LIMIT = 0

[cron.repo_health_check]
TIMEOUT = 120s

[cron.git_gc_repos]
TIMEOUT = 120s

[cron.reinit_missing_repos]
ENABLED = true
NOTICE_ON_SUCCESS = true
SCHEDULE = 0 0 0 * * SUN

又出现了一次 3 分钟的

snipaste_20240827_150951