Merge branch 'default-hellthread' into 'develop'

Add HellthreadPolicy by default

See merge request soapbox-pub/soapbox!91
This commit is contained in:
Alex Gleason 2022-02-07 05:48:32 +00:00
commit 1abc29bf3a

View file

@ -17,6 +17,16 @@
Pleroma.Upload.Filter.Exiftool
]
# Default MRF policies
config :pleroma, :mrf,
policies: [
Pleroma.Web.ActivityPub.MRF.SimplePolicy,
Pleroma.Web.ActivityPub.MRF.HellthreadPolicy,
Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
Pleroma.Web.ActivityPub.MRF.TagPolicy,
Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy
]
# Increase the pool size and timeout
config :pleroma, :dangerzone, override_repo_pool_size: true
@ -27,5 +37,10 @@
# Allow privileged staff
config :pleroma, :instance, privileged_staff: true
# Hellthread limits
config :pleroma, :mrf_hellthread,
delist_threshold: 15,
reject_threshold: 100
# Sane default media attachment limit
config :pleroma, :instance, max_media_attachments: 20