From d10861f58a1f4fcd9f3ad0b45b10f5ac88296083 Mon Sep 17 00:00:00 2001 From: vfebvre Date: Thu, 25 Mar 2021 14:47:12 +0100 Subject: [PATCH] Prise en charge de nouvelles extensions de fichiers REF#https://forge.cadoles.com/Cadoles/support-interne/issues/7 --- tmpl/gitea.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmpl/gitea.conf b/tmpl/gitea.conf index 231c4be..12ab130 100644 --- a/tmpl/gitea.conf +++ b/tmpl/gitea.conf @@ -236,13 +236,17 @@ AVATAR_UPLOAD_PATH = data/avatars GRAVATAR_SOURCE = gravatar DISABLE_GRAVATAR = false +[repository.upload] +ALLOWED_TYPES = application/zip|application/gzip|application/x-gzip|application/x-gtar|application/x-tgz|application/x-compressed-tar|text/plain + [attachment] ; Whether attachments are enabled. Defaults to `true` ENABLE = true ; Path for attachments. Defaults to `data/attachments` PATH = data/attachments ; One or more allowed types, e.g. image/jpeg|image/png -ALLOWED_TYPES = image/jpeg|image/png +; ALLOWED_TYPES = 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