summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-04-14 20:09:43 +0200
committermarcin mikołajczak <git@mkljczk.pl>2022-08-05 11:06:30 +0200
commitc899af1d6acad1895240a0247e9b91eca5db08df (patch)
tree1c198359f93ce77a48601ed906b34482f5821331 /config/description.exs
parentd39f803bddb04a4c0a9e0742a437fd07f461c615 (diff)
downloadpleroma-c899af1d6acad1895240a0247e9b91eca5db08df.tar.gz
pleroma-c899af1d6acad1895240a0247e9b91eca5db08df.zip
Reject requests from specified instances if `authorized_fetch_mode` is enabled
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/description.exs b/config/description.exs
index b29348edf..a75f40929 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -715,6 +715,18 @@ config :pleroma, :config_description, [
]
},
%{
+ key: :rejected_instances,
+ type: {:list, :tuple},
+ key_placeholder: "instance",
+ value_placeholder: "reason",
+ description:
+ "List of ActivityPub instances to reject requests from if authorized_fetch_mode is enabled",
+ suggestions: [
+ {"rejected.com", "Reason"},
+ {"*.rejected.com", "Reason"}
+ ]
+ },
+ %{
key: :static_dir,
type: :string,
description: "Instance static directory",