3 In the `config/` directory, you will find the following relevant files:
4 * `config.exs`: default base configuration
5 * `dev.exs`: default additional configuration for `MIX_ENV=dev`
6 * `prod.exs`: default additional configuration for `MIX_ENV=prod`
9 Do not modify files in the list above.
10 Instead, overload the settings by editing the following files:
11 * `dev.secret.exs`: custom additional configuration for `MIX_ENV=dev`
12 * `prod.secret.exs`: custom additional configuration for `MIX_ENV=prod`
14 ## Message Rewrite Filters (MRFs)
16 Modify incoming and outgoing posts.
18 config :pleroma, :instance,
19 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy
21 `rewrite_policy` specifies which MRF policies to apply.
22 It can either be a single policy or a list of policies.
23 Currently, MRFs availible by default are:
24 * `Pleroma.Web.ActivityPub.MRF.NoOpPolicy`
25 * `Pleroma.Web.ActivityPub.MRF.DropPolicy`
26 * `Pleroma.Web.ActivityPub.MRF.SimplePolicy`
27 * `Pleroma.Web.ActivityPub.MRF.RejectNonPublic`
29 Some policies, such as SimplePolicy and RejectNonPublic,
30 can be additionally configured in their respective sections.
34 Does not modify posts (this is the default `rewrite_policy`)
39 It generally does not make sense to use this in production.
43 Restricts the visibility of posts from certain instances.
45 config :pleroma, :mrf_simple,
48 federated_timeline_removal: [],
51 * `media_removal`: posts from these instances will have attachments
53 * `media_nsfw`: posts from these instances will have attachments marked
55 * `federated_timeline_removal`: posts from these instances will be
57 * `reject`: posts from these instances will be dropped
61 Drops posts with non-public visibility settings.
63 config :pleroma :mrf_rejectnonpublic
64 allow_followersonly: false,
67 * `allow_followersonly`: whether to allow follower-only posts through
69 * `allow_direct`: whether to allow direct messages through the filter