summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2025-03-10 16:48:54 +0400
committerLain Soykaf <lain@lain.com>2025-03-10 16:48:54 +0400
commitb469b9d9d358a30642d1221a01125af9b6399ff4 (patch)
tree4e26b7b044f8e9667f34ae9349a3946ec2e1dd53 /config
parentedcd816730f7961a5072f68fb67c464149e58a6c (diff)
downloadpleroma-b469b9d9d358a30642d1221a01125af9b6399ff4.tar.gz
pleroma-b469b9d9d358a30642d1221a01125af9b6399ff4.zip
.
Diffstat (limited to 'config')
-rw-r--r--config/config.exs3
-rw-r--r--config/description.exs13
2 files changed, 15 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index 643f15414..50672cfc8 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -65,7 +65,8 @@ config :pleroma, Pleroma.Upload,
proxy_remote: false,
filename_display_max_length: 30,
default_description: nil,
- base_url: nil
+ base_url: nil,
+ allowed_mime_types: ["image", "audio", "video"]
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
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"
+ ]
}
]
},