summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2025-03-11 16:04:14 +0000
committerlain <lain@soykaf.club>2025-03-11 16:04:14 +0000
commit66687beddaf6cee236a2e035c0f4582ec586f957 (patch)
tree9ee7bf53ef26d1fc2f39922808b8beb24c18414f /config/description.exs
parentaf6d5470d29f294e9b356da36cccbcaf85379f78 (diff)
parent5ce612b2723381a978f3810a414a3c3038a1859c (diff)
downloadpleroma-stable.tar.gz
pleroma-stable.zip
Merge branch 'release/2.9.1' into 'stable'stable
Release/2.9.1 See merge request pleroma/pleroma!4338
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/description.exs b/config/description.exs
index f091e4924..996978298 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -117,6 +117,19 @@ config :pleroma, :config_description, [
key: :filename_display_max_length,
type: :integer,
description: "Set max length of a filename to display. 0 = no limit. Default: 30"
+ },
+ %{
+ key: :allowed_mime_types,
+ label: "Allowed MIME types",
+ type: {:list, :string},
+ description:
+ "List of MIME (main) types uploads are allowed to identify themselves with. Other types may still be uploaded, but will identify as a generic binary to clients. WARNING: Loosening this over the defaults can lead to security issues. Removing types is safe, but only add to the list if you are sure you know what you are doing.",
+ suggestions: [
+ "image",
+ "audio",
+ "video",
+ "font"
+ ]
}
]
},