diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-11-13 22:19:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 14:19:22 +0000 |
commit | 0678c822653975c7fcf40371f2c39dd14254aa2a (patch) | |
tree | cf877d1dd1b66c7b97842d966b1edefccfdb50ff /custom/conf | |
parent | 3081e7e1536356346f73fb4a0d00101863b2cf05 (diff) | |
download | gitea-0678c822653975c7fcf40371f2c39dd14254aa2a.tar.gz gitea-0678c822653975c7fcf40371f2c39dd14254aa2a.zip |
Change default size of issue/pr attachments and repo file (#27946)
As title. Some attachments and file sizes can easily be larger than
these limits
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.example.ini | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 329dd34d7b..325e31af39 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -1016,8 +1016,8 @@ LEVEL = Info ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. ;ALLOWED_TYPES = ;; -;; Max size of each file in megabytes. Defaults to 3MB -;FILE_MAX_SIZE = 3 +;; Max size of each file in megabytes. Defaults to 50MB +;FILE_MAX_SIZE = 50 ;; ;; Max number of files per upload. Defaults to 5 ;MAX_FILES = 5 @@ -1821,8 +1821,8 @@ LEVEL = Info ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. ;ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip ;; -;; Max size of each file. Defaults to 4MB -;MAX_SIZE = 4 +;; Max size of each file. Defaults to 2048MB +;MAX_SIZE = 2048 ;; ;; Max number of files per upload. Defaults to 5 ;MAX_FILES = 5 |