3 In the `config/` directory, you will find the following relevant files:
5 * `config.exs`: default base configuration
6 * `dev.exs`: default additional configuration for `MIX_ENV=dev`
7 * `prod.exs`: default additional configuration for `MIX_ENV=prod`
10 Do not modify files in the list above.
11 Instead, overload the settings by editing the following files:
13 * `dev.secret.exs`: custom additional configuration for `MIX_ENV=dev`
14 * `prod.secret.exs`: custom additional configuration for `MIX_ENV=prod`
16 ## Uploads configuration
18 To configure where to upload files, and wether or not
19 you want to remove automatically EXIF data from pictures
22 config :pleroma, Pleroma.Upload,
26 * `uploads`: where to put the uploaded files, relative to pleroma's main directory.
27 * `strip_exif`: whether or not to remove EXIF data from uploaded pics automatically.
28 This needs Imagemagick installed on the system ( apt install imagemagick ).
31 ## Block functionality
33 config :pleroma, :activitypub,
35 unfollow_blocked: true,
38 config :pleroma, :user, deny_follow_blocked: true
40 * `accept_blocks`: whether to accept incoming block activities from
42 * `unfollow_blocked`: whether blocks result in people getting
44 * `outgoing_blocks`: whether to federate blocks to other instances
45 * `deny_follow_blocked`: whether to disallow following an account that
46 has blocked the user in question
48 ## Message Rewrite Filters (MRFs)
50 Modify incoming and outgoing posts.
52 config :pleroma, :instance,
53 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy
55 `rewrite_policy` specifies which MRF policies to apply.
56 It can either be a single policy or a list of policies.
57 Currently, MRFs availible by default are:
59 * `Pleroma.Web.ActivityPub.MRF.NoOpPolicy`
60 * `Pleroma.Web.ActivityPub.MRF.DropPolicy`
61 * `Pleroma.Web.ActivityPub.MRF.SimplePolicy`
62 * `Pleroma.Web.ActivityPub.MRF.RejectNonPublic`
64 Some policies, such as SimplePolicy and RejectNonPublic,
65 can be additionally configured in their respective sections.
69 Does not modify posts (this is the default `rewrite_policy`)
74 It generally does not make sense to use this in production.
78 Restricts the visibility of posts from certain instances.
80 config :pleroma, :mrf_simple,
83 federated_timeline_removal: [],
87 * `media_removal`: posts from these instances will have attachments
89 * `media_nsfw`: posts from these instances will have attachments marked
91 * `federated_timeline_removal`: posts from these instances will be
93 * `reject`: posts from these instances will be dropped
94 * `accept`: if not empty, only posts from these instances will be accepted
98 Drops posts with non-public visibility settings.
100 config :pleroma :mrf_rejectnonpublic
101 allow_followersonly: false,
104 * `allow_followersonly`: whether to allow follower-only posts through
106 * `allow_direct`: whether to allow direct messages through the filter