aboutsummaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorCaiCandong <50507092+CaiCandong@users.noreply.github.com>2023-09-03 17:40:10 +0800
committerGitHub <noreply@github.com>2023-09-03 11:40:10 +0200
commit7477c93d621f4e7f1e09336e6c8bd741b3781f8c (patch)
tree6156c950b879dcc74ea9cdfa7ff80f9aaed2048e /custom
parentfba7150ca9decee3e9c9fcd8ddeeef939231f8ec (diff)
downloadgitea-7477c93d621f4e7f1e09336e6c8bd741b3781f8c.tar.gz
gitea-7477c93d621f4e7f1e09336e6c8bd741b3781f8c.zip
Update docs about attachment path (#26883)
This change was caused by #26271, for configuration as below: ``` [attachment] ENABLE = true PATH = data/attachments MAX_SIZE = 100 MAX_FILES = 5 ``` Before #26271, the resolved path is ${AppWorkPath}/${attachments.PATH} (such as `/var/lib/gitea/data/attachments`) After #26271, the resolved path is ${AppDataPath}/${attachments.PATH} (such as `/var/lib/gitea/data/data/attachments`) Fix https://github.com/go-gitea/gitea/issues/26864 Follow https://github.com/go-gitea/gitea/pull/26271
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 96a0a3ede9..dd673190aa 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1824,8 +1824,9 @@ LEVEL = Info
;; Currently, only `minio` is supported.
;SERVE_DIRECT = false
;;
-;; Path for attachments. Defaults to `data/attachments` only available when STORAGE_TYPE is `local`
-;PATH = data/attachments
+;; Path for attachments. Defaults to `attachments`. Only available when STORAGE_TYPE is `local`
+;; Relative paths will be resolved to `${AppDataPath}/${attachment.PATH}`
+;PATH = attachments
;;
;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
;MINIO_ENDPOINT = localhost:9000