2 alias Pleroma.Docs.Generator
7 {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
8 {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
15 config :pleroma, :config_description, [
20 description: "Upload general settings",
25 description: "Module which will be used for uploads",
26 suggestions: [Pleroma.Uploaders.Local, Pleroma.Uploaders.S3]
30 type: {:list, :module},
32 "List of filter modules for uploads. Module names are shortened (removed leading `Pleroma.Upload.Filter.` part), but on adding custom module you need to use full name.",
34 Generator.list_modules_in_dir(
35 "lib/pleroma/upload/filter",
36 "Elixir.Pleroma.Upload.Filter."
43 "If enabled, a name parameter will be added to the url of the upload. For example `https://instance.tld/media/imagehash.png?name=realname.png`."
48 description: "Base url for the uploads, needed if you use CDN",
50 "https://cdn-host.com"
57 "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected"
62 description: "Options for Pleroma.ReverseProxy",
64 redirect_on_failure: false,
65 max_body_length: 25 * 1_048_576,
67 follow_redirect: true,
73 key: :redirect_on_failure,
76 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
77 "Any error during body processing will not be redirected as the response is chunked."
80 key: :max_body_length,
83 "Limits the content length to be approximately the " <>
84 "specified length. It is validated with the `content-length` header and also verified when proxying."
89 description: "HTTP options",
94 description: "Adapter specific options",
100 description: "SSL options for HTTP adapter",
104 type: {:list, :atom},
105 description: "List of TLS versions to use",
106 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
115 type: [:string, :tuple],
116 description: "Proxy URL",
117 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
127 key: Pleroma.Uploaders.Local,
129 description: "Local uploader-related settings",
134 description: "Path where user's uploads will be saved",
143 key: Pleroma.Uploaders.S3,
145 description: "S3 uploader-related settings",
150 description: "S3 bucket",
156 key: :bucket_namespace,
158 description: "S3 bucket namespace",
159 suggestions: ["pleroma"]
162 key: :public_endpoint,
164 description: "S3 endpoint",
165 suggestions: ["https://s3.amazonaws.com"]
168 key: :truncated_namespace,
171 "If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
172 " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in public_endpoint."
175 key: :streaming_enabled,
178 "Enable streaming uploads, when enabled the file will be sent to the server in chunks as it's being read. This may be unsupported by some providers, try disabling this if you have upload problems."
184 key: Pleroma.Upload.Filter.Mogrify,
186 description: "Uploads mogrify filter settings",
190 type: [:string, {:list, :string}, {:list, :tuple}],
191 description: "List of actions for the mogrify command",
202 key: Pleroma.Upload.Filter.AnonymizeFilename,
204 description: "Filter replaces the filename of the upload",
210 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
211 " filename extension by using {extension}, for example custom-file-name.{extension}.",
213 "custom-file-name.{extension}"
220 key: Pleroma.Emails.Mailer,
222 description: "Mailer-related settings",
228 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
229 " or Swoosh.Adapters.Local for in-memory mailbox",
231 Swoosh.Adapters.SMTP,
232 Swoosh.Adapters.Sendgrid,
233 Swoosh.Adapters.Sendmail,
234 Swoosh.Adapters.Mandrill,
235 Swoosh.Adapters.Mailgun,
236 Swoosh.Adapters.Mailjet,
237 Swoosh.Adapters.Postmark,
238 Swoosh.Adapters.SparkPost,
239 Swoosh.Adapters.AmazonSES,
241 Swoosh.Adapters.SocketLabs,
242 Swoosh.Adapters.Gmail,
243 Swoosh.Adapters.Local
249 description: "Allow/disallow send emails"
252 group: {:subgroup, Swoosh.Adapters.SMTP},
255 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
256 suggestions: ["smtp.gmail.com"]
259 group: {:subgroup, Swoosh.Adapters.SMTP},
262 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
263 suggestions: ["pleroma"]
266 group: {:subgroup, Swoosh.Adapters.SMTP},
269 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
270 suggestions: ["password"]
273 group: {:subgroup, Swoosh.Adapters.SMTP},
277 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
280 group: {:subgroup, Swoosh.Adapters.SMTP},
284 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
285 suggestions: [:always, :never, :if_available]
288 group: {:subgroup, Swoosh.Adapters.SMTP},
291 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
292 suggestions: [:always, :never, :if_available]
295 group: {:subgroup, Swoosh.Adapters.SMTP},
298 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
302 group: {:subgroup, Swoosh.Adapters.SMTP},
305 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
309 group: {:subgroup, Swoosh.Adapters.SMTP},
311 label: "No MX lookups",
313 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
316 group: {:subgroup, Swoosh.Adapters.Sendgrid},
320 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
321 suggestions: ["my-api-key"]
324 group: {:subgroup, Swoosh.Adapters.Sendmail},
327 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
328 suggestions: ["/usr/bin/sendmail"]
331 group: {:subgroup, Swoosh.Adapters.Sendmail},
334 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
335 suggestions: ["-N delay,failure,success"]
338 group: {:subgroup, Swoosh.Adapters.Sendmail},
341 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
344 group: {:subgroup, Swoosh.Adapters.Mandrill},
348 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
349 suggestions: ["my-api-key"]
352 group: {:subgroup, Swoosh.Adapters.Mailgun},
356 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
357 suggestions: ["my-api-key"]
360 group: {:subgroup, Swoosh.Adapters.Mailgun},
363 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
364 suggestions: ["pleroma.com"]
367 group: {:subgroup, Swoosh.Adapters.Mailjet},
371 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
372 suggestions: ["my-api-key"]
375 group: {:subgroup, Swoosh.Adapters.Mailjet},
378 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
379 suggestions: ["my-secret-key"]
382 group: {:subgroup, Swoosh.Adapters.Postmark},
386 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
387 suggestions: ["my-api-key"]
390 group: {:subgroup, Swoosh.Adapters.SparkPost},
394 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
395 suggestions: ["my-api-key"]
398 group: {:subgroup, Swoosh.Adapters.SparkPost},
401 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
402 suggestions: ["https://api.sparkpost.com/api/v1"]
405 group: {:subgroup, Swoosh.Adapters.AmazonSES},
408 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
409 suggestions: ["us-east-1", "us-east-2"]
412 group: {:subgroup, Swoosh.Adapters.AmazonSES},
415 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
416 suggestions: ["aws-access-key"]
419 group: {:subgroup, Swoosh.Adapters.AmazonSES},
422 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
423 suggestions: ["aws-secret-key"]
426 group: {:subgroup, Swoosh.Adapters.Dyn},
430 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
431 suggestions: ["my-api-key"]
434 group: {:subgroup, Swoosh.Adapters.SocketLabs},
437 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
440 group: {:subgroup, Swoosh.Adapters.SocketLabs},
444 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
447 group: {:subgroup, Swoosh.Adapters.Gmail},
450 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
457 description: "`Swoosh.Adapters.Local` adapter specific settings",
460 group: {:subgroup, Swoosh.Adapters.Local},
463 description: "Run the preview server together as part of your app"
466 group: {:subgroup, Swoosh.Adapters.Local},
469 description: "The preview server port",
478 description: "URI schemes related settings",
482 type: {:list, :string},
483 description: "List of the scheme part that is considered valid to be an URL",
507 description: "Instance-related settings",
512 description: "Name of the instance",
519 label: "Admin Email Address",
521 description: "Email used to reach an Administrator/Moderator of the instance",
528 label: "Sender Email Address",
530 description: "Envelope FROM address for mail sent via Pleroma",
539 "The instance's description. It can be seen in nodeinfo and `/api/v1/instance`",
547 description: "Posts character limit (CW/Subject included in the counter)",
555 description: "Character limit of the instance chat messages",
563 description: "Hard character limit beyond which remote posts will be dropped",
571 description: "File size limit of uploads (except for avatar, background, banner)",
577 key: :avatar_upload_limit,
579 description: "File size limit of user's profile avatars",
585 key: :background_upload_limit,
587 description: "File size limit of user's profile backgrounds",
593 key: :banner_upload_limit,
595 description: "File size limit of user's profile banners",
603 description: "A map with poll limits for local polls",
607 max_option_chars: 200,
609 max_expiration: 31_536_000
616 description: "Maximum number of options",
620 key: :max_option_chars,
622 description: "Maximum number of characters per option",
626 key: :min_expiration,
628 description: "Minimum expiration time (in seconds)",
632 key: :max_expiration,
634 description: "Maximum expiration time (in seconds)",
640 key: :registrations_open,
643 "Enable registrations for anyone. Invitations require this setting to be disabled."
646 key: :invites_enabled,
649 "Enable user invitations for admins (depends on `registrations_open` being disabled)."
652 key: :account_activation_required,
654 description: "Require users to confirm their emails before signing in."
659 description: "Enable federation with other instances."
662 key: :federation_incoming_replies_max_depth,
663 label: "Fed. incoming replies max depth",
666 "Max. depth of reply-to and reply activities fetching on incoming federation, to prevent out-of-memory situations while" <>
667 " fetching very long threads. If set to `nil`, threads of any depth will be fetched. Lower this value if you experience out-of-memory crashes.",
673 key: :federation_reachability_timeout_days,
674 label: "Fed. reachability timeout days",
677 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it.",
685 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
688 key: :rewrite_policy,
689 type: [:module, {:list, :module}],
691 "A list of enabled MRF policies. Module names are shortened (removed leading `Pleroma.Web.ActivityPub.MRF.` part), but on adding custom module you need to use full name.",
693 Generator.list_modules_in_dir(
694 "lib/pleroma/web/activity_pub/mrf",
695 "Elixir.Pleroma.Web.ActivityPub.MRF."
702 "Makes the client API in authentificated mode-only except for user-profiles." <>
703 " Useful for disabling the Local Timeline and The Whole Known Network."
706 key: :quarantined_instances,
707 type: {:list, :string},
709 "List of ActivityPub instances where private (DMs, followers-only) activities will not be sent",
716 key: :managed_config,
719 "Whenether the config for pleroma-fe is configured in this config or in static/config.json"
724 description: "Instance static directory",
730 key: :allowed_post_formats,
731 type: {:list, :string},
732 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
741 key: :mrf_transparency,
742 label: "MRF transparency",
745 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
748 key: :mrf_transparency_exclusions,
749 label: "MRF transparency exclusions",
750 type: {:list, :string},
752 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value.",
758 key: :extended_nickname_format,
761 "Enable to use extended local nicknames format (allows underscores/dashes)." <>
762 " This will break federation with older software for theses nicknames."
765 key: :cleanup_attachments,
768 Enable to remove associated attachments when status is removed.
769 This will not affect duplicates and attachments without status.
770 Enabling this will increase load to database when deleting statuses on larger instances.
774 key: :max_pinned_statuses,
776 description: "The maximum number of pinned statuses. 0 will disable the feature.",
784 key: :autofollowed_nicknames,
785 type: {:list, :string},
787 "Set to nicknames of (local) users that every new user should automatically follow",
796 key: :attachment_links,
798 description: "Enable to automatically add attachment link text to statuses"
801 key: :welcome_message,
804 "A message that will be sent to a newly registered users as a direct message",
806 "Hi, @username! Welcome on board!"
810 key: :welcome_user_nickname,
812 description: "The nickname of the local user that sends the welcome message",
818 key: :max_report_comment_size,
820 description: "The maximum size of the report comment. Default: 1000.",
826 key: :safe_dm_mentions,
829 "If enabled, only mentions at the beginning of a post will be used to address people in direct messages." <>
830 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@admin please keep an eye on @bad_actor\")." <>
836 description: "If enabled, system data will be shown on `/api/pleroma/healthcheck`"
839 key: :remote_post_retention_days,
842 "The default amount of days to retain remote posts when pruning the database",
848 key: :user_bio_length,
850 description: "A user bio maximum length. Default: 5000.",
856 key: :user_name_length,
858 description: "A user name maximum length. Default: 100.",
864 key: :skip_thread_containment,
866 description: "Skip filtering out broken threads. Default: enabled"
869 key: :limit_to_local_content,
870 type: {:dropdown, :atom},
872 "Limit unauthenticated users to search for local statutes and users only. Default: `:unauthenticated`.",
880 key: :max_account_fields,
882 description: "The maximum number of custom fields in the user profile. Default: 10.",
888 key: :max_remote_account_fields,
891 "The maximum number of custom fields in the remote user profile. Default: 20.",
897 key: :account_field_name_length,
899 description: "An account field name maximum length. Default: 512.",
905 key: :account_field_value_length,
907 description: "An account field value maximum length. Default: 2048.",
913 key: :external_user_synchronization,
915 description: "Enabling following/followers counters synchronization for external users"
918 key: :multi_factor_authentication,
920 description: "Multi-factor authentication settings",
923 totp: [digits: 6, period: 30],
924 backup_codes: [number: 5, length: 16]
931 description: "TOTP settings",
932 suggestions: [digits: 6, period: 30],
939 "Determines the length of a one-time pass-code, in characters. Defaults to 6 characters."
946 "a period for which the TOTP code will be valid, in seconds. Defaults to 30 seconds."
953 description: "MFA backup codes settings",
954 suggestions: [number: 5, length: 16],
960 description: "number of backup codes to generate."
967 "Determines the length of backup one-time pass-codes, in characters. Defaults to 16 characters."
978 description: "Logger-related settings",
982 type: [:atom, :tuple, :module],
984 "Where logs will be sent, :console - send logs to stdout, { ExSyslogger, :ex_syslogger } - to syslog, Quack.Logger - to Slack.",
985 suggestions: [:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]
993 description: "ExSyslogger-related settings",
997 type: {:dropdown, :atom},
998 description: "Log level",
999 suggestions: [:debug, :info, :warn, :error]
1005 "A string that's prepended to every message, and is typically set to the app name",
1006 suggestions: ["pleroma"]
1011 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\".",
1012 suggestions: ["$metadata[$level] $message"]
1016 type: {:list, :atom},
1017 suggestions: [:request_id]
1025 description: "Console logger settings",
1029 type: {:dropdown, :atom},
1030 description: "Log level",
1031 suggestions: [:debug, :info, :warn, :error]
1036 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\".",
1037 suggestions: ["$metadata[$level] $message"]
1041 type: {:list, :atom},
1042 suggestions: [:request_id]
1049 description: "Quack-related settings",
1053 type: {:dropdown, :atom},
1054 description: "Log level",
1055 suggestions: [:debug, :info, :warn, :error]
1059 type: {:list, :atom},
1060 description: "Configure which metadata you want to report on",
1078 description: "Configure the Slack incoming webhook",
1079 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1085 key: :frontend_configurations,
1088 "This form can be used to configure a keyword list that keeps the configuration data for any " <>
1089 "kind of frontend. By default, settings for pleroma_fe and masto_fe are configured. If you want to " <>
1090 "add your own configuration your settings all fields must be complete.",
1094 label: "Pleroma FE",
1096 description: "Settings for Pleroma FE",
1099 alwaysShowSubjectInput: true,
1100 background: "/static/aurora_borealis.jpg",
1101 collapseMessageWithSubject: false,
1104 hideFilteredStatuses: false,
1105 hideMutedPosts: false,
1106 hidePostStats: false,
1107 hideSitename: false,
1108 hideUserStats: false,
1109 loginMethod: "password",
1110 logo: "/static/logo.png",
1113 minimalScopesMode: false,
1114 noAttachmentLinks: false,
1115 nsfwCensorImage: "",
1116 postContentType: "text/plain",
1117 redirectRootLogin: "/main/friends",
1118 redirectRootNoLogin: "/main/all",
1120 sidebarRight: false,
1121 showFeaturesPanel: true,
1122 showInstanceSpecificPanel: false,
1123 subjectLineBehavior: "email",
1124 theme: "pleroma-dark",
1125 webPushNotifications: false
1130 key: :alwaysShowSubjectInput,
1131 label: "Always show subject input",
1133 description: "When disabled, auto-hide the subject field if it's empty"
1139 "URL of the background, unless viewing a user profile with a background that is set",
1140 suggestions: ["/images/city.jpg"]
1143 key: :collapseMessageWithSubject,
1144 label: "Collapse message with subject",
1147 "When a message has a subject (aka Content Warning), collapse it by default"
1151 label: "PleromaFE Chat",
1153 description: "Disables PleromaFE Chat component"
1159 description: "Enables green text on lines prefixed with the > character."
1162 key: :hideFilteredStatuses,
1163 label: "Hide Filtered Statuses",
1165 description: "Hides filtered statuses from timelines."
1168 key: :hideMutedPosts,
1169 label: "Hide Muted Posts",
1171 description: "Hides muted statuses from timelines."
1174 key: :hidePostStats,
1175 label: "Hide post stats",
1177 description: "Hide notices statistics (repeats, favorites, ...)"
1181 label: "Hide Sitename",
1183 description: "Hides instance name from PleromaFE banner."
1186 key: :hideUserStats,
1187 label: "Hide user stats",
1190 "Hide profile statistics (posts, posts per day, followers, followings, ...)"
1195 description: "URL of the logo, defaults to Pleroma's logo",
1196 suggestions: ["/static/logo.png"]
1200 label: "Logo margin",
1203 "Allows you to adjust vertical margins between logo boundary and navbar borders. " <>
1204 "The idea is that to have logo's image without any extra margins and instead adjust them to your need in layout.",
1205 suggestions: [".1em"]
1212 "By default it assumes logo used will be monochrome with alpha channel to be compatible with both light and dark themes. " <>
1213 "If you want a colorful logo you must disable logoMask."
1216 key: :minimalScopesMode,
1217 label: "Minimal scopes mode",
1220 "Limit scope selection to Direct, User default, and Scope of post replying to. " <>
1221 "Also prevents replying to a DM with a public post from PleromaFE."
1224 key: :nsfwCensorImage,
1225 label: "NSFW Censor Image",
1228 "URL of the image to use for hiding NSFW media attachments in the timeline.",
1229 suggestions: ["/static/img/nsfw.png"]
1232 key: :postContentType,
1233 label: "Post Content Type",
1234 type: {:dropdown, :atom},
1235 description: "Default post formatting option.",
1236 suggestions: ["text/plain", "text/html", "text/markdown", "text/bbcode"]
1239 key: :redirectRootNoLogin,
1240 label: "Redirect root no login",
1243 "Relative URL which indicates where to redirect when a user isn't logged in",
1244 suggestions: ["/main/all"]
1247 key: :redirectRootLogin,
1248 label: "Redirect root login",
1251 "Relative URL which indicates where to redirect when a user is logged in",
1252 suggestions: ["/main/friends"]
1256 label: "Scope copy",
1258 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1262 label: "Sidebar on Right",
1264 description: "Change alignment of sidebar and panels to the right."
1267 key: :showFeaturesPanel,
1268 label: "Show instance features panel",
1271 "Enables panel displaying functionality of the instance on the About page."
1274 key: :showInstanceSpecificPanel,
1275 label: "Show instance specific panel",
1277 description: "Whether to show the instance's custom panel"
1280 key: :subjectLineBehavior,
1281 label: "Subject line behavior",
1283 description: "Allows changing the default behaviour of subject lines in replies.
1284 `email`: copy and preprend re:, as in email,
1285 `masto`: copy verbatim, as in Mastodon,
1286 `noop`: don't copy the subject.",
1287 suggestions: ["email", "masto", "noop"]
1292 description: "Which theme to use. Available themes are defined in styles.json",
1293 suggestions: ["pleroma-dark"]
1301 description: "Settings for Masto FE",
1304 showInstanceSpecificPanel: true
1309 key: :showInstanceSpecificPanel,
1310 label: "Show instance specific panel",
1312 description: "Whenether to show the instance's specific panel"
1323 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1327 type: {:keyword, :map},
1329 "Keyword of mascots, each element must contain both an url and a mime_type key",
1332 url: "/images/pleroma-fox-tan-smol.png",
1333 mime_type: "image/png"
1335 pleroma_fox_tan_shy: %{
1336 url: "/images/pleroma-fox-tan-shy.png",
1337 mime_type: "image/png"
1342 key: :default_mascot,
1345 "This will be used as the default mascot on MastoFE. Default: `:pleroma_fox_tan`",
1357 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE",
1361 type: {:list, :map},
1362 description: "Describe the icons of the app",
1365 src: "/static/logo.png"
1368 src: "/static/icon.png",
1372 src: "/static/icon.ico",
1373 sizes: "72x72 96x96 128x128 256x256"
1380 description: "Describe the theme color of the app",
1381 suggestions: ["#282c37", "mediumpurple"]
1384 key: :background_color,
1386 description: "Describe the background color of the app",
1387 suggestions: ["#191b22", "aliceblue"]
1394 label: "MRF simple",
1396 description: "Message Rewrite Facility",
1399 key: :media_removal,
1400 type: {:list, :string},
1401 description: "List of instances to strip media attachments from",
1402 suggestions: ["example.com", "*.example.com"]
1406 label: "Media NSFW",
1407 type: {:list, :string},
1408 description: "List of instances to tag all media as NSFW (sensitive) from",
1409 suggestions: ["example.com", "*.example.com"]
1412 key: :federated_timeline_removal,
1413 type: {:list, :string},
1415 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1416 suggestions: ["example.com", "*.example.com"]
1420 type: {:list, :string},
1421 description: "List of instances to reject activities from (except deletes)",
1422 suggestions: ["example.com", "*.example.com"]
1426 type: {:list, :string},
1427 description: "List of instances to only accept activities from (except deletes)",
1428 suggestions: ["example.com", "*.example.com"]
1431 key: :report_removal,
1432 type: {:list, :string},
1433 description: "List of instances to reject reports from",
1434 suggestions: ["example.com", "*.example.com"]
1437 key: :avatar_removal,
1438 type: {:list, :string},
1439 description: "List of instances to strip avatars from",
1440 suggestions: ["example.com", "*.example.com"]
1443 key: :banner_removal,
1444 type: {:list, :string},
1445 description: "List of instances to strip banners from",
1446 suggestions: ["example.com", "*.example.com"]
1449 key: :reject_deletes,
1450 type: {:list, :string},
1451 description: "List of instances to reject deletions from",
1452 suggestions: ["example.com", "*.example.com"]
1459 label: "MRF subchain",
1462 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1463 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1468 description: "Matches a series of regular expressions against the actor field",
1471 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1479 key: :mrf_rejectnonpublic,
1481 "MRF RejectNonPublic settings. RejectNonPublic drops posts with non-public visibility settings.",
1482 label: "MRF reject non public",
1486 key: :allow_followersonly,
1487 label: "Allow followers-only",
1489 description: "Whether to allow followers-only posts"
1494 description: "Whether to allow direct messages"
1500 key: :mrf_hellthread,
1501 label: "MRF hellthread",
1503 description: "Block messages with too much mentions",
1506 key: :delist_threshold,
1509 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1510 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable.",
1514 key: :reject_threshold,
1517 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable.",
1525 label: "MRF keyword",
1527 description: "Reject or Word-Replace messages with a keyword or regex",
1531 type: [:string, :regex],
1533 "A list of patterns which result in message being rejected. Each pattern can be a string or a regular expression.",
1534 suggestions: ["foo", ~r/foo/iu]
1537 key: :federated_timeline_removal,
1538 type: [:string, :regex],
1540 "A list of patterns which result in message being removed from federated timelines (a.k.a unlisted). Each pattern can be a string or a regular expression.",
1541 suggestions: ["foo", ~r/foo/iu]
1545 type: [{:tuple, :string, :string}, {:tuple, :regex, :string}],
1547 "A list of tuples containing {pattern, replacement}. Each pattern can be a string or a regular expression.",
1548 suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
1555 label: "MRF mention",
1557 description: "Block messages which mention a user",
1561 type: {:list, :string},
1562 description: "A list of actors for which any post mentioning them will be dropped.",
1563 suggestions: ["actor1", "actor2"]
1569 key: :mrf_vocabulary,
1570 label: "MRF vocabulary",
1572 description: "Filter messages which belong to certain activity vocabularies",
1576 type: {:list, :string},
1578 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1579 suggestions: ["Create", "Follow", "Mention", "Announce", "Like"]
1583 type: {:list, :string},
1585 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1586 suggestions: ["Create", "Follow", "Mention", "Announce", "Like"]
1592 # key: :mrf_user_allowlist,
1595 # "The keys in this section are the domain names that the policy should apply to." <>
1596 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1598 # ["example.org": ["https://example.org/users/admin"]],
1600 # ["example.org": ["https://example.org/users/admin"]]
1608 description: "Media proxy",
1613 description: "Enables proxying of remote media to the instance's proxy"
1619 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.",
1620 suggestions: ["https://example.com"]
1625 description: "Options for Pleroma.ReverseProxy",
1627 redirect_on_failure: false,
1628 max_body_length: 25 * 1_048_576,
1630 follow_redirect: true,
1636 key: :redirect_on_failure,
1639 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
1640 "Any error during body processing will not be redirected as the response is chunked."
1643 key: :max_body_length,
1646 "Limits the content length to be approximately the " <>
1647 "specified length. It is validated with the `content-length` header and also verified when proxying."
1652 description: "HTTP options",
1657 description: "Adapter specific options",
1662 label: "SSL Options",
1663 description: "SSL options for HTTP adapter",
1667 type: {:list, :atom},
1668 description: "List of TLS version to use",
1669 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
1678 type: [:string, :tuple],
1679 description: "Proxy URL",
1680 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
1688 type: {:list, :string},
1689 description: "List of domains to bypass the mediaproxy",
1690 suggestions: ["example.com"]
1698 description: "Gopher settings",
1703 description: "Enables the gopher interface"
1708 description: "IP address to bind to",
1709 suggestions: [{0, 0, 0, 0}]
1714 description: "Port to bind to",
1720 description: "Port advertised in urls (optional, defaults to port)",
1729 description: "ActivityPub-related settings",
1732 key: :unfollow_blocked,
1734 description: "Whether blocks result in people getting unfollowed"
1737 key: :outgoing_blocks,
1739 description: "Whether to federate blocks to other instances"
1742 key: :sign_object_fetches,
1744 description: "Sign object fetches with HTTP signatures"
1747 key: :note_replies_output_limit,
1750 "The number of Note replies' URIs to be included with outgoing federation (`5` to match Mastodon hardcoded value, `0` to disable the output)."
1753 key: :follow_handshake_timeout,
1755 description: "Following handshake timeout",
1762 key: :http_security,
1764 description: "HTTP security settings",
1769 description: "Whether the managed content security policy is enabled"
1775 description: "Whether to additionally send a Strict-Transport-Security header"
1779 label: "STS max age",
1781 description: "The maximum age for the Strict-Transport-Security header if sent",
1782 suggestions: [31_536_000]
1786 label: "CT max age",
1788 description: "The maximum age for the Expect-CT header if sent",
1789 suggestions: [2_592_000]
1792 key: :referrer_policy,
1794 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1795 suggestions: ["same-origin", "no-referrer"]
1799 label: "Report URI",
1801 description: "Adds the specified url to report-uri and report-to group in CSP header",
1802 suggestions: ["https://example.com/report-uri"]
1807 group: :web_push_encryption,
1808 key: :vapid_details,
1811 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1817 "A mailto link for the administrative contact." <>
1818 " It's best if this email is not a personal email address, but rather a group email to the instance moderation team.",
1819 suggestions: ["mailto:moderators@pleroma.com"]
1824 description: "VAPID public key",
1825 suggestions: ["Public key"]
1830 description: "VAPID private key",
1831 suggestions: ["Private key"]
1837 key: Pleroma.Captcha,
1839 description: "Captcha-related settings",
1844 description: "Whether the captcha should be shown on registration"
1849 description: "The method/service to use for captcha",
1850 suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
1853 key: :seconds_valid,
1855 description: "The time in seconds for which the captcha is valid",
1862 key: Pleroma.Captcha.Kocaptcha,
1865 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1866 " here: https://github.com/koto-bank/kocaptcha. The default endpoint (https://captcha.kotobank.ch) is hosted by the developer.",
1871 description: "The kocaptcha endpoint to use",
1872 suggestions: ["https://captcha.kotobank.ch"]
1880 "Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the `admin_token` parameter",
1885 description: "Token",
1886 suggestions: ["We recommend a secure random string or UUID"]
1895 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1897 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1898 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1899 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1900 (see https://github.com/sorentwo/oban/issues/52).
1905 type: {:dropdown, :atom},
1906 description: "Logs verbose mode",
1907 suggestions: [false, :error, :warn, :info, :debug]
1911 type: [:atom, :tuple],
1913 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1914 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1918 type: {:keyword, :integer},
1920 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1922 activity_expiration: 10,
1923 attachments_cleanup: 5,
1925 federator_incoming: 50,
1926 federator_outgoing: 50,
1928 scheduled_activities: 10,
1934 key: :activity_expiration,
1936 description: "Activity expiration queue",
1940 key: :attachments_cleanup,
1942 description: "Attachment deletion queue",
1948 description: "Background queue",
1952 key: :federator_incoming,
1954 description: "Incoming federation queue",
1958 key: :federator_outgoing,
1960 description: "Outgoing federation queue",
1966 description: "Email sender queue, see Pleroma.Emails.Mailer",
1970 key: :scheduled_activities,
1972 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1976 key: :transmogrifier,
1978 description: "Transmogrifier queue",
1984 description: "Web push notifications queue",
1991 type: {:list, :tuple},
1992 description: "Settings for cron background jobs",
1994 {"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker},
1995 {"0 * * * *", Pleroma.Workers.Cron.StatsWorker},
1996 {"* * * * *", Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker},
1997 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
1998 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
2007 description: "Includes custom worker options not interpretable directly by `Oban`",
2011 type: {:keyword, :integer},
2012 description: "Max retry attempts for failed jobs, per `Oban` queue",
2014 federator_incoming: 5,
2015 federator_outgoing: 5
2022 key: Pleroma.Web.Metadata,
2024 description: "Metadata-related settings",
2028 type: {:list, :module},
2029 description: "List of metadata providers to enable",
2031 Pleroma.Web.Metadata.Providers.OpenGraph,
2032 Pleroma.Web.Metadata.Providers.TwitterCard,
2033 Pleroma.Web.Metadata.Providers.RelMe,
2034 Pleroma.Web.Metadata.Providers.Feed
2039 label: "Unfurl NSFW",
2041 description: "When enabled NSFW attachments will be shown in previews"
2050 "If enabled the instance will parse metadata from attached links to generate link previews.",
2055 description: "Enables RichMedia parsing of URLs."
2059 type: {:list, :string},
2060 description: "List of hosts which will be ignored by the metadata parser.",
2061 suggestions: ["accounts.google.com", "xss.website"]
2065 label: "Ignore TLD",
2066 type: {:list, :string},
2067 description: "List TLDs (top-level domains) which will ignore for parse metadata.",
2068 suggestions: ["local", "localdomain", "lan"]
2072 type: {:list, :module},
2074 "List of Rich Media parsers. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parsers.` part), but on adding custom module you need to use full name.",
2076 Pleroma.Web.RichMedia.Parsers.MetaTagsParser,
2077 Pleroma.Web.RichMedia.Parsers.OEmbed,
2078 Pleroma.Web.RichMedia.Parsers.OGP,
2079 Pleroma.Web.RichMedia.Parsers.TwitterCard
2084 label: "TTL setters",
2085 type: {:list, :module},
2087 "List of rich media TTL setters. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parser.` part), but on adding custom module you need to use full name.",
2089 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl
2095 group: :auto_linker,
2098 description: "Configuration for the auto_linker library",
2102 type: [:string, false],
2103 description: "Specify the class to be added to the generated link. Disable to clear",
2104 suggestions: ["auto-linker", false]
2108 type: [:string, false],
2109 description: "Override the rel attribute. Disable to clear",
2110 suggestions: ["ugc", "noopener noreferrer", false]
2115 description: "Link urls will open in new window/tab"
2119 type: [:integer, false],
2121 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
2122 suggestions: [15, false]
2127 description: "Strip the scheme prefix"
2132 description: "Link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
2138 key: Pleroma.ScheduledActivity,
2140 description: "Scheduled activities settings",
2143 key: :daily_user_limit,
2146 "The number of scheduled activities a user is allowed to create in a single day. Default: 25.",
2150 key: :total_user_limit,
2153 "The number of scheduled activities a user is allowed to create in total. Default: 300.",
2159 description: "Whether scheduled activities are sent to the job queue to be executed"
2165 key: Pleroma.ActivityExpiration,
2167 description: "Expired activity settings",
2172 description: "Whether expired activities will be sent to the job queue to be deleted"
2179 description: "Authenticator",
2182 key: Pleroma.Web.Auth.Authenticator,
2184 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2193 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2194 " will be verified by trying to authenticate (bind) to a LDAP server." <>
2195 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2196 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2201 description: "Enables LDAP authentication"
2206 description: "LDAP server hostname",
2207 suggestions: ["localhosts"]
2212 description: "LDAP port, e.g. 389 or 636",
2213 suggestions: [389, 636]
2219 description: "Enable to use SSL, usually implies the port 636"
2223 label: "SSL options",
2225 description: "Additional SSL options",
2226 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2231 description: "Path to file with PEM encoded cacerts",
2232 suggestions: ["path/to/file/with/PEM/cacerts"]
2237 description: "Type of cert verification",
2238 suggestions: [:verify_peer]
2246 description: "Enable to use STARTTLS, usually implies the port 389"
2250 label: "TLS options",
2252 description: "Additional TLS options",
2253 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2258 description: "Path to file with PEM encoded cacerts",
2259 suggestions: ["path/to/file/with/PEM/cacerts"]
2264 description: "Type of cert verification",
2265 suggestions: [:verify_peer]
2272 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2273 suggestions: ["dc=example,dc=com"]
2279 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2288 description: "Authentication / authorization settings",
2291 key: :enforce_oauth_admin_scope_usage,
2294 "OAuth admin scope requirement toggle. " <>
2295 "If enabled, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token " <>
2296 "(client app must support admin scopes). If disabled and token doesn't have admin scope(s)," <>
2297 "`is_admin` user flag grants access to admin-specific actions."
2300 key: :auth_template,
2303 "Authentication form template. By default it's `show.html` which corresponds to `lib/pleroma/web/templates/o_auth/o_auth/show.html.ee`.",
2304 suggestions: ["show.html"]
2307 key: :oauth_consumer_template,
2310 "OAuth consumer mode authentication form template. By default it's `consumer.html` which corresponds to" <>
2311 " `lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex`.",
2312 suggestions: ["consumer.html"]
2315 key: :oauth_consumer_strategies,
2316 type: {:list, :string},
2318 "The list of enabled OAuth consumer strategies. By default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2319 " Each entry in this space-delimited string should be of format \"strategy\" or \"strategy:dependency\"" <>
2320 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2321 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2327 key: :email_notifications,
2329 description: "Email notifications settings",
2335 "emails of \"what you've missed\" for users who have been inactive for a while",
2339 schedule: "0 0 * * 0",
2341 inactivity_threshold: 7
2349 description: "Globally enable or disable digest emails"
2355 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\".",
2356 suggestions: ["0 0 * * 0"]
2361 description: "Minimum interval between digest emails to one user",
2365 key: :inactivity_threshold,
2367 description: "Minimum user inactivity threshold",
2376 key: Pleroma.Emails.UserEmail,
2378 description: "Email template settings",
2383 description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
2384 suggestions: ["some/path/logo.png"]
2389 description: "a map with color settings for email templates.",
2392 link_color: "#d8a070",
2393 background_color: "#2C3645",
2394 content_background_color: "#1B2635",
2395 header_color: "#d8a070",
2396 text_color: "#b9b9ba",
2397 text_muted_color: "#b9b9ba"
2404 suggestions: ["#d8a070"]
2407 key: :background_color,
2409 suggestions: ["#2C3645"]
2412 key: :content_background_color,
2414 suggestions: ["#1B2635"]
2419 suggestions: ["#d8a070"]
2424 suggestions: ["#b9b9ba"]
2427 key: :text_muted_color,
2429 suggestions: ["#b9b9ba"]
2437 key: Pleroma.Emails.NewUsersDigestEmail,
2439 description: "New users admin email digest",
2444 description: "enables new users admin digest email when `true`",
2445 suggestions: [false]
2453 description: "Configure OAuth 2 provider capabilities",
2456 key: :token_expires_in,
2458 description: "The lifetime in seconds of the access token",
2462 key: :issue_new_refresh_token,
2465 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2468 key: :clean_expired_tokens,
2470 description: "Enable a background job to clean expired oauth tokens. Default: disabled."
2480 key: :shortcode_globs,
2481 type: {:list, :string},
2482 description: "Location of custom emoji files. * can be used as a wildcard.",
2483 suggestions: ["/emoji/custom/**/*.png"]
2486 key: :pack_extensions,
2487 type: {:list, :string},
2489 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2490 suggestions: [".png", ".gif"]
2494 type: {:keyword, :string, {:list, :string}},
2496 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the group name" <>
2497 " and the value is the location or array of locations. * can be used as a wildcard.",
2499 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2503 key: :default_manifest,
2506 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2507 " Currently only one manifest can be added (no arrays).",
2508 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2511 key: :shared_pack_cache_seconds_per_file,
2512 label: "Shared pack cache s/file",
2515 "When an emoji pack is shared, the archive is created and cached in memory" <>
2516 " for this amount of seconds multiplied by the number of files.",
2526 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2530 type: [:tuple, {:list, :tuple}],
2531 description: "For the search requests (account & status search etc.)",
2532 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2536 type: [:tuple, {:list, :tuple}],
2537 description: "For requests to timelines (each timeline has it's own limiter)",
2538 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2541 key: :app_account_creation,
2542 type: [:tuple, {:list, :tuple}],
2543 description: "For registering user accounts from the same IP address",
2544 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2547 key: :relations_actions,
2548 type: [:tuple, {:list, :tuple}],
2549 description: "For actions on relationships with all users (follow, unfollow)",
2550 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2553 key: :relation_id_action,
2554 type: [:tuple, {:list, :tuple}],
2555 description: "For actions on relation with a specific user (follow, unfollow)",
2556 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2559 key: :statuses_actions,
2560 type: [:tuple, {:list, :tuple}],
2562 "For create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2563 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2566 key: :status_id_action,
2567 type: [:tuple, {:list, :tuple}],
2569 "For fav / unfav or reblog / unreblog actions on the same status by the same user",
2570 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2573 key: :authentication,
2574 type: [:tuple, {:list, :tuple}],
2575 description: "For authentication create / password check / user existence check requests",
2576 suggestions: [{60_000, 15}]
2584 "Before enabling this you must add :esshd to mix.exs as one of the extra_applications " <>
2585 "and generate host keys in your priv dir with ssh-keygen -m PEM -N \"\" -b 2048 -t rsa -f ssh_host_rsa_key",
2590 description: "Enables SSH"
2595 description: "Dir with SSH keys",
2596 suggestions: ["/some/path/ssh_keys"]
2601 description: "Handler module",
2602 suggestions: ["Pleroma.BBS.Handler"]
2607 description: "Port to connect",
2608 suggestions: [10_022]
2611 key: :password_authenticator,
2613 description: "Authenticator module",
2614 suggestions: ["Pleroma.BBS.Authenticator"]
2621 description: "Mime types",
2628 "application/xml" => ["xml"],
2629 "application/xrd+xml" => ["xrd+xml"],
2630 "application/jrd+json" => ["jrd+json"],
2631 "application/activity+json" => ["activity+json"],
2632 "application/ld+json" => ["activity+json"]
2637 key: "application/xml",
2638 type: {:list, :string},
2639 suggestions: ["xml"]
2642 key: "application/xrd+xml",
2643 type: {:list, :string},
2644 suggestions: ["xrd+xml"]
2647 key: "application/jrd+json",
2648 type: {:list, :string},
2649 suggestions: ["jrd+json"]
2652 key: "application/activity+json",
2653 type: {:list, :string},
2654 suggestions: ["activity+json"]
2657 key: "application/ld+json",
2658 type: {:list, :string},
2659 suggestions: ["activity+json"]
2669 description: "Pleroma chat settings",
2681 description: "HTTP settings",
2686 type: [:string, :tuple],
2687 description: "Proxy URL",
2688 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}]
2691 key: :send_user_agent,
2696 type: [:string, :atom],
2698 "What user agent to use. Must be a string or an atom `:default`. Default value is `:default`.",
2699 suggestions: ["Pleroma", :default]
2704 description: "Adapter specific options",
2710 label: "SSL Options",
2711 description: "SSL options for HTTP adapter",
2715 type: {:list, :atom},
2716 description: "List of TLS version to use",
2717 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
2731 key: :allow_inline_images,
2735 key: :allow_headings,
2748 type: {:list, :module},
2750 "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
2751 suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
2761 key: :deny_follow_blocked,
2768 key: :mrf_normalize_markup,
2769 label: "MRF normalize markup",
2770 description: "MRF NormalizeMarkup settings. Scrub configured hypertext markup.",
2776 suggestions: [Pleroma.HTML.Scrubber.Default]
2786 key: :restricted_nicknames,
2787 type: {:list, :string},
2806 "ostatus_subscribe",
2830 suggestions: [86_400]
2834 type: {:list, :string},
2835 suggestions: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]
2839 type: {:list, :string},
2842 "X-RateLimit-Reset",
2843 "X-RateLimit-Limit",
2844 "X-RateLimit-Remaining",
2855 type: {:list, :string},
2856 suggestions: ["Authorization", "Content-Type", "Idempotency-Key"]
2862 key: Pleroma.Plugs.RemoteIp,
2865 `Pleroma.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2866 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
2872 description: "Enable/disable the plug. Default: disabled."
2876 type: {:list, :string},
2878 "A list of strings naming the `req_headers` to use when deriving the `remote_ip`. Order does not matter. Default: `~w[forwarded x-forwarded-for x-client-ip x-real-ip]`."
2882 type: {:list, :string},
2884 "A list of strings in [CIDR](https://en.wikipedia.org/wiki/CIDR) notation specifying the IPs of known proxies. Default: `[]`."
2888 type: {:list, :string},
2890 "Defaults to [localhost](https://en.wikipedia.org/wiki/Localhost) and [private network](https://en.wikipedia.org/wiki/Private_network)."
2896 key: :web_cache_ttl,
2899 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2905 "Activity pub routes (except question activities). Default: `nil` (no expiration).",
2906 suggestions: [30_000, nil]
2909 key: :activity_pub_question,
2911 description: "Activity pub routes (question activities). Default: `30_000` (30 seconds).",
2912 suggestions: [30_000]
2921 "Render profiles and posts using server-generated HTML that is viewable without using JavaScript.",
2926 description: "Enables the rendering of static HTML. Default: disabled."
2934 description: "Configure feed rendering",
2939 description: "Configure title rendering.",
2944 description: "Maximum number of characters before truncating title.",
2950 description: "Replacement which will be used after truncating string.",
2951 suggestions: ["..."]
2959 key: :mrf_object_age,
2961 description: "Rejects or delists posts based on their age when received.",
2966 description: "Required age (in seconds) of a post before actions are taken.",
2967 suggestions: [172_800]
2971 type: {:list, :atom},
2973 "A list of actions to apply to the post. `:delist` removes the post from public timelines; " <>
2974 "`:strip_followers` removes followers from the ActivityPub recipient list, ensuring they won't be delivered to home timelines; " <>
2975 "`:reject` rejects the message entirely",
2976 suggestions: [:delist, :strip_followers, :reject]
2984 description: "Custom Runtime Modules",
2989 description: "A path to custom Elixir modules (such as MRF policies)."
2997 description: "Settings for notifications streamer",
3002 description: "Number of workers to send notifications.",
3006 key: :overflow_workers,
3008 description: "Maximum number of workers created if pool is empty.",
3015 key: :connections_pool,
3017 description: "Advanced settings for `gun` connections pool",
3020 key: :checkin_timeout,
3022 description: "Timeout to checkin connection from pool. Default: 250ms.",
3026 key: :max_connections,
3028 description: "Maximum number of connections in the pool. Default: 250 connections.",
3035 "Number of retries, while `gun` will try to reconnect if connection goes down. Default: 1.",
3039 key: :retry_timeout,
3042 "Time between retries when `gun` will try to reconnect in milliseconds. Default: 1000ms.",
3046 key: :await_up_timeout,
3048 description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.",
3057 description: "Advanced settings for `gun` workers pools",
3062 description: "Settings for federation pool.",
3067 description: "Number workers in the pool.",
3073 description: "Number of additional workers if pool is under load.",
3079 description: "Timeout while `gun` will wait for response.",
3080 suggestions: [150_000]
3087 description: "Settings for media pool.",
3092 description: "Number workers in the pool.",
3098 description: "Number of additional workers if pool is under load.",
3104 description: "Timeout while `gun` will wait for response.",
3105 suggestions: [150_000]
3112 description: "Settings for upload pool.",
3117 description: "Number workers in the pool.",
3123 description: "Number of additional workers if pool is under load.",
3129 description: "Timeout while `gun` will wait for response.",
3130 suggestions: [300_000]
3137 description: "Settings for default pool.",
3142 description: "Number workers in the pool.",
3148 description: "Number of additional workers if pool is under load.",
3154 description: "Timeout while `gun` will wait for response.",
3155 suggestions: [10_000]
3163 key: :hackney_pools,
3165 description: "Advanced settings for `hackney` connections pools",
3170 description: "Settings for federation pool.",
3173 key: :max_connections,
3175 description: "Number workers in the pool.",
3181 description: "Timeout while `hackney` will wait for response.",
3182 suggestions: [150_000]
3189 description: "Settings for media pool.",
3192 key: :max_connections,
3194 description: "Number workers in the pool.",
3200 description: "Timeout while `hackney` will wait for response.",
3201 suggestions: [150_000]
3208 description: "Settings for upload pool.",
3211 key: :max_connections,
3213 description: "Number workers in the pool.",
3219 description: "Timeout while `hackney` will wait for response.",
3220 suggestions: [300_000]
3228 key: :restrict_unauthenticated,
3231 "Disallow viewing timelines, user profiles and statuses for unauthenticated users.",
3236 description: "Settings for public and federated timelines.",
3241 description: "Disallow view public timeline."
3246 description: "Disallow view federated timeline."
3253 description: "Settings for user profiles.",
3258 description: "Disallow view local user profiles."
3263 description: "Disallow view remote user profiles."
3270 description: "Settings for statuses.",
3275 description: "Disallow view local statuses."
3280 description: "Disallow view remote statuses."
3288 key: Pleroma.Web.ApiSpec.CastAndValidate,
3295 "Enables strict input validation (useful in development, not recommended in production)",
3296 suggestions: [false]