From f3aed8b81d23546d14833652cfd15e6143a45484 Mon Sep 17 00:00:00 2001 From: Roshan Ramani <154859727+rawsun007@users.noreply.github.com> Date: Thu, 1 Oct 2026 13:01:10 +0530 Subject: [PATCH] docs: fix the default REPOSITORY_AVATAR_FALLBACK_IMAGE path in app.example.ini (#39514) The example shows `REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png`, but public files moved under `/assets` in https://github.com/go-gitea/gitea/pull/15219 and nothing serves `/img/` anymore. The value is also used as-is without the sub-path, so even `/assets/img/repo_default.png` 404s when `ROOT_URL` has one. Leave the key empty and document the real default `{AppSubURL}/assets/img/repo_default.png` from `modules/setting/picture.go`. Signed-off-by: wxiaoguang Co-authored-by: silverwind Co-authored-by: wxiaoguang --- custom/conf/app.example.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 2dcbf66c8d7..a1462aa0499 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2050,7 +2050,8 @@ LEVEL = Info ;; How Gitea deals with missing repository avatars ;; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used ;REPOSITORY_AVATAR_FALLBACK = none -;REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png +;; Image URL for the "image" fallback, used as-is, defaults to Gitea's builtin repository avatar +;REPOSITORY_AVATAR_FALLBACK_IMAGE = ;; ;; Max Width and Height of uploaded avatars. ;; This is to limit the amount of RAM used when resizing the image.