diff options
author | Unknwon <u@gogs.io> | 2017-03-13 04:32:20 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-13 04:32:20 -0400 |
commit | 1df54ea0cde038e2057d083078f952c072d0dc67 (patch) | |
tree | c5466e010f5ed8e236f5b021e669f9aa37ea0047 /conf | |
parent | e6df2259abdeb75545f53a5ca4c247491b5c3d7f (diff) |
release: able to add attchments to release (#1614)
Added new config section '[release.attachment]’.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/conf/app.ini b/conf/app.ini index 99f83805..315d305d 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -114,6 +114,19 @@ FILE_MAX_SIZE = 3 ; Maximum number of files per upload MAX_FILES = 5 +; Attachment settings for releases +[release.attachment] +; Whether attachments are enabled. Defaults to `true` +ENABLED = true +; Path for attachments. Defaults to `data/attachments` +PATH = data/attachments +; One or more allowed types, e.g. image/jpeg|image/png +ALLOWED_TYPES = */* +; Max size of each file. Defaults to 32MB +MAX_SIZE = 32 +; Max number of files per upload. Defaults to 10 +MAX_FILES = 10 + [markdown] ; Enable hard line break extension ENABLE_HARD_LINE_BREAK = false @@ -273,6 +286,7 @@ DISABLE_GRAVATAR = false ; This value will be forced to be false in offline mode or Gravatar is disbaled. ENABLE_FEDERATED_AVATAR = true +; Attachment settings for issues [attachment] ; Whether attachments are enabled. Defaults to `true` ENABLE = true @@ -280,9 +294,9 @@ ENABLE = true PATH = data/attachments ; One or more allowed types, e.g. image/jpeg|image/png ALLOWED_TYPES = image/jpeg|image/png -; Max size of each file. Defaults to 32MB +; Max size of each file. Defaults to 4MB MAX_SIZE = 4 -; Max number of files per upload. Defaults to 10 +; Max number of files per upload. Defaults to 5 MAX_FILES = 5 [time] |