Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kaniini
pleroma
Commits
a2f7c021
Commit
a2f7c021
authored
6 years ago
by
squidboi
Browse files
Options
Downloads
Patches
Plain Diff
split lines, explicitly advised against editing default config files
parent
08fc1ba3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CONFIGURATION.md
+17
-8
17 additions, 8 deletions
CONFIGURATION.md
with
17 additions
and
8 deletions
CONFIGURATION.md
+
17
−
8
View file @
a2f7c021
...
...
@@ -5,7 +5,9 @@ In the `config/` directory, you will find the following relevant files:
*
`dev.exs`
: default additional configuration for
`MIX_ENV=dev`
*
`prod.exs`
: default additional configuration for
`MIX_ENV=prod`
You can overload options in the following files:
Do not modify files in the list above.
Instead, overload the settings by editing the following files:
*
`dev.secret.exs`
: custom additional configuration for
`MIX_ENV=dev`
*
`prod.secret.exs`
: custom additional configuration for
`MIX_ENV=prod`
...
...
@@ -16,14 +18,16 @@ Modify incoming and outgoing posts.
config :pleroma, :instance,
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy
`rewrite_policy`
specifies which MRF policies to apply. It can either be a single policy or a list of policies.
`rewrite_policy`
specifies which MRF policies to apply.
It can either be a single policy or a list of policies.
Currently, MRFs availible by default are:
*
`Pleroma.Web.ActivityPub.MRF.NoOpPolicy`
*
`Pleroma.Web.ActivityPub.MRF.DropPolicy`
*
`Pleroma.Web.ActivityPub.MRF.SimplePolicy`
*
`Pleroma.Web.ActivityPub.MRF.RejectNonPublic`
Some policies, such as SimplePolicy and RejectNonPublic, can be additionally configured in their respective sections.
Some policies, such as SimplePolicy and RejectNonPublic,
can be additionally configured in their respective sections.
### NoOpPolicy
...
...
@@ -31,7 +35,8 @@ Does not modify posts (this is the default `rewrite_policy`)
### DropPolicy
Drops all posts. It generally does not make sense to use this in production.
Drops all posts.
It generally does not make sense to use this in production.
### SimplePolicy
...
...
@@ -43,9 +48,12 @@ Restricts the visibility of posts from certain instances.
federated_timeline_removal: [],
reject: []
*
`media_removal`
: posts from these instances will have attachments removed
*
`media_nsfw`
: posts from these instances will have attachments marked as nsfw
*
`federated_timeline_removal`
: posts from these instances will be marked as unlisted
*
`media_removal`
: posts from these instances will have attachments
removed
*
`media_nsfw`
: posts from these instances will have attachments marked
as nsfw
*
`federated_timeline_removal`
: posts from these instances will be
marked as unlisted
*
`reject`
: posts from these instances will be dropped
### RejectNonPublic
...
...
@@ -56,5 +64,6 @@ Drops posts with non-public visibility settings.
allow_followersonly: false,
allow_direct: false,
*
`allow_followersonly`
: whether to allow follower-only posts through the filter
*
`allow_followersonly`
: whether to allow follower-only posts through
the filter
*
`allow_direct`
: whether to allow direct messages through the filter
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment