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.",
683 key: :federation_publisher_modules,
684 type: {:list, :module},
686 "List of modules for federation publishing. Module names are shortened (removed leading `Pleroma.Web.` part), but on adding custom module you need to use full name.",
688 Pleroma.Web.ActivityPub.Publisher
694 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
697 key: :rewrite_policy,
698 type: [:module, {:list, :module}],
700 "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.",
702 Generator.list_modules_in_dir(
703 "lib/pleroma/web/activity_pub/mrf",
704 "Elixir.Pleroma.Web.ActivityPub.MRF."
711 "Makes the client API in authentificated mode-only except for user-profiles." <>
712 " Useful for disabling the Local Timeline and The Whole Known Network."
715 key: :quarantined_instances,
716 type: {:list, :string},
718 "List of ActivityPub instances where private (DMs, followers-only) activities will not be sent",
725 key: :managed_config,
728 "Whenether the config for pleroma-fe is configured in this config or in static/config.json"
733 description: "Instance static directory",
739 key: :allowed_post_formats,
740 type: {:list, :string},
741 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
750 key: :mrf_transparency,
751 label: "MRF transparency",
754 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
757 key: :mrf_transparency_exclusions,
758 label: "MRF transparency exclusions",
759 type: {:list, :string},
761 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value.",
767 key: :extended_nickname_format,
770 "Enable to use extended local nicknames format (allows underscores/dashes)." <>
771 " This will break federation with older software for theses nicknames."
774 key: :cleanup_attachments,
777 Enable to remove associated attachments when status is removed.
778 This will not affect duplicates and attachments without status.
779 Enabling this will increase load to database when deleting statuses on larger instances.
783 key: :max_pinned_statuses,
785 description: "The maximum number of pinned statuses. 0 will disable the feature.",
793 key: :autofollowed_nicknames,
794 type: {:list, :string},
796 "Set to nicknames of (local) users that every new user should automatically follow",
805 key: :attachment_links,
807 description: "Enable to automatically add attachment link text to statuses"
810 key: :welcome_message,
813 "A message that will be sent to a newly registered users as a direct message",
815 "Hi, @username! Welcome on board!"
819 key: :welcome_user_nickname,
821 description: "The nickname of the local user that sends the welcome message",
827 key: :max_report_comment_size,
829 description: "The maximum size of the report comment. Default: 1000.",
835 key: :safe_dm_mentions,
838 "If enabled, only mentions at the beginning of a post will be used to address people in direct messages." <>
839 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@admin please keep an eye on @bad_actor\")." <>
845 description: "If enabled, system data will be shown on `/api/pleroma/healthcheck`"
848 key: :remote_post_retention_days,
851 "The default amount of days to retain remote posts when pruning the database",
857 key: :user_bio_length,
859 description: "A user bio maximum length. Default: 5000.",
865 key: :user_name_length,
867 description: "A user name maximum length. Default: 100.",
873 key: :skip_thread_containment,
875 description: "Skip filtering out broken threads. Default: enabled"
878 key: :limit_to_local_content,
879 type: {:dropdown, :atom},
881 "Limit unauthenticated users to search for local statutes and users only. Default: `:unauthenticated`.",
889 key: :max_account_fields,
891 description: "The maximum number of custom fields in the user profile. Default: 10.",
897 key: :max_remote_account_fields,
900 "The maximum number of custom fields in the remote user profile. Default: 20.",
906 key: :account_field_name_length,
908 description: "An account field name maximum length. Default: 512.",
914 key: :account_field_value_length,
916 description: "An account field value maximum length. Default: 2048.",
922 key: :external_user_synchronization,
924 description: "Enabling following/followers counters synchronization for external users"
927 key: :multi_factor_authentication,
929 description: "Multi-factor authentication settings",
932 totp: [digits: 6, period: 30],
933 backup_codes: [number: 5, length: 16]
940 description: "TOTP settings",
941 suggestions: [digits: 6, period: 30],
948 "Determines the length of a one-time pass-code, in characters. Defaults to 6 characters."
955 "a period for which the TOTP code will be valid, in seconds. Defaults to 30 seconds."
962 description: "MFA backup codes settings",
963 suggestions: [number: 5, length: 16],
969 description: "number of backup codes to generate."
976 "Determines the length of backup one-time pass-codes, in characters. Defaults to 16 characters."
987 description: "Logger-related settings",
991 type: [:atom, :tuple, :module],
993 "Where logs will be sent, :console - send logs to stdout, { ExSyslogger, :ex_syslogger } - to syslog, Quack.Logger - to Slack.",
994 suggestions: [:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]
1002 description: "ExSyslogger-related settings",
1006 type: {:dropdown, :atom},
1007 description: "Log level",
1008 suggestions: [:debug, :info, :warn, :error]
1014 "A string that's prepended to every message, and is typically set to the app name",
1015 suggestions: ["pleroma"]
1020 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\".",
1021 suggestions: ["$metadata[$level] $message"]
1025 type: {:list, :atom},
1026 suggestions: [:request_id]
1034 description: "Console logger settings",
1038 type: {:dropdown, :atom},
1039 description: "Log level",
1040 suggestions: [:debug, :info, :warn, :error]
1045 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\".",
1046 suggestions: ["$metadata[$level] $message"]
1050 type: {:list, :atom},
1051 suggestions: [:request_id]
1058 description: "Quack-related settings",
1062 type: {:dropdown, :atom},
1063 description: "Log level",
1064 suggestions: [:debug, :info, :warn, :error]
1068 type: {:list, :atom},
1069 description: "Configure which metadata you want to report on",
1087 description: "Configure the Slack incoming webhook",
1088 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1094 key: :frontend_configurations,
1097 "This form can be used to configure a keyword list that keeps the configuration data for any " <>
1098 "kind of frontend. By default, settings for pleroma_fe and masto_fe are configured. If you want to " <>
1099 "add your own configuration your settings all fields must be complete.",
1103 label: "Pleroma FE",
1105 description: "Settings for Pleroma FE",
1108 alwaysShowSubjectInput: true,
1109 background: "/static/aurora_borealis.jpg",
1110 collapseMessageWithSubject: false,
1113 hideFilteredStatuses: false,
1114 hideMutedPosts: false,
1115 hidePostStats: false,
1116 hideSitename: false,
1117 hideUserStats: false,
1118 loginMethod: "password",
1119 logo: "/static/logo.png",
1122 minimalScopesMode: false,
1123 noAttachmentLinks: false,
1124 nsfwCensorImage: "",
1125 postContentType: "text/plain",
1126 redirectRootLogin: "/main/friends",
1127 redirectRootNoLogin: "/main/all",
1129 showFeaturesPanel: true,
1130 showInstanceSpecificPanel: false,
1131 subjectLineBehavior: "email",
1132 theme: "pleroma-dark",
1133 webPushNotifications: false
1138 key: :alwaysShowSubjectInput,
1139 label: "Always show subject input",
1141 description: "When disabled, auto-hide the subject field if it's empty"
1147 "URL of the background, unless viewing a user profile with a background that is set",
1148 suggestions: ["/images/city.jpg"]
1151 key: :collapseMessageWithSubject,
1152 label: "Collapse message with subject",
1155 "When a message has a subject (aka Content Warning), collapse it by default"
1159 label: "PleromaFE Chat",
1161 description: "Disables PleromaFE Chat component"
1167 description: "Enables green text on lines prefixed with the > character."
1170 key: :hideFilteredStatuses,
1171 label: "Hide Filtered Statuses",
1173 description: "Hides filtered statuses from timelines."
1176 key: :hideMutedPosts,
1177 label: "Hide Muted Posts",
1179 description: "Hides muted statuses from timelines."
1182 key: :hidePostStats,
1183 label: "Hide post stats",
1185 description: "Hide notices statistics (repeats, favorites, ...)"
1189 label: "Hide Sitename",
1191 description: "Hides instance name from PleromaFE banner."
1194 key: :hideUserStats,
1195 label: "Hide user stats",
1198 "Hide profile statistics (posts, posts per day, followers, followings, ...)"
1203 description: "URL of the logo, defaults to Pleroma's logo",
1204 suggestions: ["/static/logo.png"]
1208 label: "Logo margin",
1211 "Allows you to adjust vertical margins between logo boundary and navbar borders. " <>
1212 "The idea is that to have logo's image without any extra margins and instead adjust them to your need in layout.",
1213 suggestions: [".1em"]
1220 "By default it assumes logo used will be monochrome with alpha channel to be compatible with both light and dark themes. " <>
1221 "If you want a colorful logo you must disable logoMask."
1224 key: :minimalScopesMode,
1225 label: "Minimal scopes mode",
1227 description: "Limit scope selection to Direct, User default, and Scope of post replying to. " <>
1228 "Also prevents replying to a DM with a public post from PleromaFE."
1231 key: :nsfwCensorImage,
1232 label: "NSFW Censor Image",
1234 description: "URL of the image to use for hiding NSFW media attachments in the timeline.",
1235 suggestions: ["/static/img/nsfw.png"]
1238 key: :postContentType,
1239 label: "Post Content Type",
1240 type: {:dropdown, :atom},
1241 description: "Default post formatting option.",
1242 suggestions: [text/plain, text/html, text/markdown, text/bbcode]
1245 key: :redirectRootNoLogin,
1246 label: "Redirect root no login",
1249 "Relative URL which indicates where to redirect when a user isn't logged in",
1250 suggestions: ["/main/all"]
1253 key: :redirectRootLogin,
1254 label: "Redirect root login",
1257 "Relative URL which indicates where to redirect when a user is logged in",
1258 suggestions: ["/main/friends"]
1262 label: "Scope copy",
1264 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1267 key: :showInstanceSpecificPanel,
1268 label: "Show instance specific panel",
1270 description: "Whether to show the instance's custom panel"
1273 key: :subjectLineBehavior,
1274 label: "Subject line behavior",
1276 description: "Allows changing the default behaviour of subject lines in replies.
1277 `email`: copy and preprend re:, as in email,
1278 `masto`: copy verbatim, as in Mastodon,
1279 `noop`: don't copy the subject.",
1280 suggestions: ["email", "masto", "noop"]
1285 description: "Which theme to use. Available themes are defined in styles.json",
1286 suggestions: ["pleroma-dark"]
1294 description: "Settings for Masto FE",
1297 showInstanceSpecificPanel: true
1302 key: :showInstanceSpecificPanel,
1303 label: "Show instance specific panel",
1305 description: "Whenether to show the instance's specific panel"
1316 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1320 type: {:keyword, :map},
1322 "Keyword of mascots, each element must contain both an url and a mime_type key",
1325 url: "/images/pleroma-fox-tan-smol.png",
1326 mime_type: "image/png"
1328 pleroma_fox_tan_shy: %{
1329 url: "/images/pleroma-fox-tan-shy.png",
1330 mime_type: "image/png"
1335 key: :default_mascot,
1338 "This will be used as the default mascot on MastoFE. Default: `:pleroma_fox_tan`",
1350 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE",
1354 type: {:list, :map},
1355 description: "Describe the icons of the app",
1358 src: "/static/logo.png"
1361 src: "/static/icon.png",
1365 src: "/static/icon.ico",
1366 sizes: "72x72 96x96 128x128 256x256"
1373 description: "Describe the theme color of the app",
1374 suggestions: ["#282c37", "mediumpurple"]
1377 key: :background_color,
1379 description: "Describe the background color of the app",
1380 suggestions: ["#191b22", "aliceblue"]
1387 label: "MRF simple",
1389 description: "Message Rewrite Facility",
1392 key: :media_removal,
1393 type: {:list, :string},
1394 description: "List of instances to strip media attachments from",
1395 suggestions: ["example.com", "*.example.com"]
1399 label: "Media NSFW",
1400 type: {:list, :string},
1401 description: "List of instances to tag all media as NSFW (sensitive) from",
1402 suggestions: ["example.com", "*.example.com"]
1405 key: :federated_timeline_removal,
1406 type: {:list, :string},
1408 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1409 suggestions: ["example.com", "*.example.com"]
1413 type: {:list, :string},
1414 description: "List of instances to reject activities from (except deletes)",
1415 suggestions: ["example.com", "*.example.com"]
1419 type: {:list, :string},
1420 description: "List of instances to only accept activities from (except deletes)",
1421 suggestions: ["example.com", "*.example.com"]
1424 key: :report_removal,
1425 type: {:list, :string},
1426 description: "List of instances to reject reports from",
1427 suggestions: ["example.com", "*.example.com"]
1430 key: :avatar_removal,
1431 type: {:list, :string},
1432 description: "List of instances to strip avatars from",
1433 suggestions: ["example.com", "*.example.com"]
1436 key: :banner_removal,
1437 type: {:list, :string},
1438 description: "List of instances to strip banners from",
1439 suggestions: ["example.com", "*.example.com"]
1442 key: :reject_deletes,
1443 type: {:list, :string},
1444 description: "List of instances to reject deletions from",
1445 suggestions: ["example.com", "*.example.com"]
1452 label: "MRF subchain",
1455 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1456 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1461 description: "Matches a series of regular expressions against the actor field",
1464 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1472 key: :mrf_rejectnonpublic,
1474 "MRF RejectNonPublic settings. RejectNonPublic drops posts with non-public visibility settings.",
1475 label: "MRF reject non public",
1479 key: :allow_followersonly,
1480 label: "Allow followers-only",
1482 description: "Whether to allow followers-only posts"
1487 description: "Whether to allow direct messages"
1493 key: :mrf_hellthread,
1494 label: "MRF hellthread",
1496 description: "Block messages with too much mentions",
1499 key: :delist_threshold,
1502 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1503 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable.",
1507 key: :reject_threshold,
1510 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable.",
1518 label: "MRF keyword",
1520 description: "Reject or Word-Replace messages with a keyword or regex",
1524 type: [:string, :regex],
1526 "A list of patterns which result in message being rejected. Each pattern can be a string or a regular expression.",
1527 suggestions: ["foo", ~r/foo/iu]
1530 key: :federated_timeline_removal,
1531 type: [:string, :regex],
1533 "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.",
1534 suggestions: ["foo", ~r/foo/iu]
1538 type: [{:tuple, :string, :string}, {:tuple, :regex, :string}],
1540 "A list of tuples containing {pattern, replacement}. Each pattern can be a string or a regular expression.",
1541 suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
1548 label: "MRF mention",
1550 description: "Block messages which mention a user",
1554 type: {:list, :string},
1555 description: "A list of actors for which any post mentioning them will be dropped.",
1556 suggestions: ["actor1", "actor2"]
1562 key: :mrf_vocabulary,
1563 label: "MRF vocabulary",
1565 description: "Filter messages which belong to certain activity vocabularies",
1569 type: {:list, :string},
1571 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1572 suggestions: ["Create", "Follow", "Mention", "Announce", "Like"]
1576 type: {:list, :string},
1578 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1579 suggestions: ["Create", "Follow", "Mention", "Announce", "Like"]
1585 # key: :mrf_user_allowlist,
1588 # "The keys in this section are the domain names that the policy should apply to." <>
1589 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1591 # ["example.org": ["https://example.org/users/admin"]],
1593 # ["example.org": ["https://example.org/users/admin"]]
1601 description: "Media proxy",
1606 description: "Enables proxying of remote media to the instance's proxy"
1612 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.",
1613 suggestions: ["https://example.com"]
1618 description: "Options for Pleroma.ReverseProxy",
1620 redirect_on_failure: false,
1621 max_body_length: 25 * 1_048_576,
1623 follow_redirect: true,
1629 key: :redirect_on_failure,
1632 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
1633 "Any error during body processing will not be redirected as the response is chunked."
1636 key: :max_body_length,
1639 "Limits the content length to be approximately the " <>
1640 "specified length. It is validated with the `content-length` header and also verified when proxying."
1645 description: "HTTP options",
1650 description: "Adapter specific options",
1655 label: "SSL Options",
1656 description: "SSL options for HTTP adapter",
1660 type: {:list, :atom},
1661 description: "List of TLS version to use",
1662 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
1671 type: [:string, :tuple],
1672 description: "Proxy URL",
1673 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
1681 type: {:list, :string},
1682 description: "List of domains to bypass the mediaproxy",
1683 suggestions: ["example.com"]
1691 description: "Gopher settings",
1696 description: "Enables the gopher interface"
1701 description: "IP address to bind to",
1702 suggestions: [{0, 0, 0, 0}]
1707 description: "Port to bind to",
1713 description: "Port advertised in urls (optional, defaults to port)",
1722 description: "ActivityPub-related settings",
1725 key: :unfollow_blocked,
1727 description: "Whether blocks result in people getting unfollowed"
1730 key: :outgoing_blocks,
1732 description: "Whether to federate blocks to other instances"
1735 key: :sign_object_fetches,
1737 description: "Sign object fetches with HTTP signatures"
1740 key: :note_replies_output_limit,
1743 "The number of Note replies' URIs to be included with outgoing federation (`5` to match Mastodon hardcoded value, `0` to disable the output)."
1746 key: :follow_handshake_timeout,
1748 description: "Following handshake timeout",
1755 key: :http_security,
1757 description: "HTTP security settings",
1762 description: "Whether the managed content security policy is enabled"
1768 description: "Whether to additionally send a Strict-Transport-Security header"
1772 label: "STS max age",
1774 description: "The maximum age for the Strict-Transport-Security header if sent",
1775 suggestions: [31_536_000]
1779 label: "CT max age",
1781 description: "The maximum age for the Expect-CT header if sent",
1782 suggestions: [2_592_000]
1785 key: :referrer_policy,
1787 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1788 suggestions: ["same-origin", "no-referrer"]
1792 label: "Report URI",
1794 description: "Adds the specified url to report-uri and report-to group in CSP header",
1795 suggestions: ["https://example.com/report-uri"]
1800 group: :web_push_encryption,
1801 key: :vapid_details,
1804 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1810 "A mailto link for the administrative contact." <>
1811 " It's best if this email is not a personal email address, but rather a group email to the instance moderation team.",
1812 suggestions: ["mailto:moderators@pleroma.com"]
1817 description: "VAPID public key",
1818 suggestions: ["Public key"]
1823 description: "VAPID private key",
1824 suggestions: ["Private key"]
1830 key: Pleroma.Captcha,
1832 description: "Captcha-related settings",
1837 description: "Whether the captcha should be shown on registration"
1842 description: "The method/service to use for captcha",
1843 suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
1846 key: :seconds_valid,
1848 description: "The time in seconds for which the captcha is valid",
1855 key: Pleroma.Captcha.Kocaptcha,
1858 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1859 " here: https://github.com/koto-bank/kocaptcha. The default endpoint (https://captcha.kotobank.ch) is hosted by the developer.",
1864 description: "The kocaptcha endpoint to use",
1865 suggestions: ["https://captcha.kotobank.ch"]
1873 "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",
1878 description: "Token",
1879 suggestions: ["We recommend a secure random string or UUID"]
1888 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1890 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1891 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1892 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1893 (see https://github.com/sorentwo/oban/issues/52).
1899 description: "Application's Ecto repo",
1900 suggestions: [Pleroma.Repo]
1904 type: {:dropdown, :atom},
1905 description: "Logs verbose mode",
1906 suggestions: [false, :error, :warn, :info, :debug]
1910 type: [:atom, :tuple],
1912 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1913 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1917 type: {:keyword, :integer},
1919 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1921 activity_expiration: 10,
1922 attachments_cleanup: 5,
1924 federator_incoming: 50,
1925 federator_outgoing: 50,
1927 scheduled_activities: 10,
1933 key: :activity_expiration,
1935 description: "Activity expiration queue",
1939 key: :attachments_cleanup,
1941 description: "Attachment deletion queue",
1947 description: "Background queue",
1951 key: :federator_incoming,
1953 description: "Incoming federation queue",
1957 key: :federator_outgoing,
1959 description: "Outgoing federation queue",
1965 description: "Email sender queue, see Pleroma.Emails.Mailer",
1969 key: :scheduled_activities,
1971 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1975 key: :transmogrifier,
1977 description: "Transmogrifier queue",
1983 description: "Web push notifications queue",
1990 type: {:list, :tuple},
1991 description: "Settings for cron background jobs",
1993 {"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker},
1994 {"0 * * * *", Pleroma.Workers.Cron.StatsWorker},
1995 {"* * * * *", Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker},
1996 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
1997 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
2006 description: "Includes custom worker options not interpretable directly by `Oban`",
2010 type: {:keyword, :integer},
2011 description: "Max retry attempts for failed jobs, per `Oban` queue",
2013 federator_incoming: 5,
2014 federator_outgoing: 5
2021 key: Pleroma.Web.Metadata,
2023 description: "Metadata-related settings",
2027 type: {:list, :module},
2028 description: "List of metadata providers to enable",
2030 Pleroma.Web.Metadata.Providers.OpenGraph,
2031 Pleroma.Web.Metadata.Providers.TwitterCard,
2032 Pleroma.Web.Metadata.Providers.RelMe,
2033 Pleroma.Web.Metadata.Providers.Feed
2038 label: "Unfurl NSFW",
2040 description: "When enabled NSFW attachments will be shown in previews"
2049 "If enabled the instance will parse metadata from attached links to generate link previews.",
2054 description: "Enables RichMedia parsing of URLs."
2058 type: {:list, :string},
2059 description: "List of hosts which will be ignored by the metadata parser.",
2060 suggestions: ["accounts.google.com", "xss.website"]
2064 label: "Ignore TLD",
2065 type: {:list, :string},
2066 description: "List TLDs (top-level domains) which will ignore for parse metadata.",
2067 suggestions: ["local", "localdomain", "lan"]
2071 type: {:list, :module},
2073 "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.",
2075 Pleroma.Web.RichMedia.Parsers.MetaTagsParser,
2076 Pleroma.Web.RichMedia.Parsers.OEmbed,
2077 Pleroma.Web.RichMedia.Parsers.OGP,
2078 Pleroma.Web.RichMedia.Parsers.TwitterCard
2083 label: "TTL setters",
2084 type: {:list, :module},
2086 "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.",
2088 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl
2094 group: :auto_linker,
2097 description: "Configuration for the auto_linker library",
2101 type: [:string, false],
2102 description: "Specify the class to be added to the generated link. Disable to clear",
2103 suggestions: ["auto-linker", false]
2107 type: [:string, false],
2108 description: "Override the rel attribute. Disable to clear",
2109 suggestions: ["ugc", "noopener noreferrer", false]
2114 description: "Link urls will open in new window/tab"
2118 type: [:integer, false],
2120 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
2121 suggestions: [15, false]
2126 description: "Strip the scheme prefix"
2131 description: "Link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
2137 key: Pleroma.ScheduledActivity,
2139 description: "Scheduled activities settings",
2142 key: :daily_user_limit,
2145 "The number of scheduled activities a user is allowed to create in a single day. Default: 25.",
2149 key: :total_user_limit,
2152 "The number of scheduled activities a user is allowed to create in total. Default: 300.",
2158 description: "Whether scheduled activities are sent to the job queue to be executed"
2164 key: Pleroma.ActivityExpiration,
2166 description: "Expired activity settings",
2171 description: "Whether expired activities will be sent to the job queue to be deleted"
2178 description: "Authenticator",
2181 key: Pleroma.Web.Auth.Authenticator,
2183 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2192 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2193 " will be verified by trying to authenticate (bind) to a LDAP server." <>
2194 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2195 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2200 description: "Enables LDAP authentication"
2205 description: "LDAP server hostname",
2206 suggestions: ["localhosts"]
2211 description: "LDAP port, e.g. 389 or 636",
2212 suggestions: [389, 636]
2218 description: "Enable to use SSL, usually implies the port 636"
2222 label: "SSL options",
2224 description: "Additional SSL options",
2225 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2230 description: "Path to file with PEM encoded cacerts",
2231 suggestions: ["path/to/file/with/PEM/cacerts"]
2236 description: "Type of cert verification",
2237 suggestions: [:verify_peer]
2245 description: "Enable to use STARTTLS, usually implies the port 389"
2249 label: "TLS options",
2251 description: "Additional TLS options",
2252 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2257 description: "Path to file with PEM encoded cacerts",
2258 suggestions: ["path/to/file/with/PEM/cacerts"]
2263 description: "Type of cert verification",
2264 suggestions: [:verify_peer]
2271 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2272 suggestions: ["dc=example,dc=com"]
2278 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2287 description: "Authentication / authorization settings",
2290 key: :enforce_oauth_admin_scope_usage,
2293 "OAuth admin scope requirement toggle. " <>
2294 "If enabled, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token " <>
2295 "(client app must support admin scopes). If disabled and token doesn't have admin scope(s)," <>
2296 "`is_admin` user flag grants access to admin-specific actions."
2299 key: :auth_template,
2302 "Authentication form template. By default it's `show.html` which corresponds to `lib/pleroma/web/templates/o_auth/o_auth/show.html.ee`.",
2303 suggestions: ["show.html"]
2306 key: :oauth_consumer_template,
2309 "OAuth consumer mode authentication form template. By default it's `consumer.html` which corresponds to" <>
2310 " `lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex`.",
2311 suggestions: ["consumer.html"]
2314 key: :oauth_consumer_strategies,
2315 type: {:list, :string},
2317 "The list of enabled OAuth consumer strategies. By default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2318 " Each entry in this space-delimited string should be of format \"strategy\" or \"strategy:dependency\"" <>
2319 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2320 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2326 key: :email_notifications,
2328 description: "Email notifications settings",
2334 "emails of \"what you've missed\" for users who have been inactive for a while",
2338 schedule: "0 0 * * 0",
2340 inactivity_threshold: 7
2348 description: "Globally enable or disable digest emails"
2354 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\".",
2355 suggestions: ["0 0 * * 0"]
2360 description: "Minimum interval between digest emails to one user",
2364 key: :inactivity_threshold,
2366 description: "Minimum user inactivity threshold",
2375 key: Pleroma.Emails.UserEmail,
2377 description: "Email template settings",
2382 description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
2383 suggestions: ["some/path/logo.png"]
2388 description: "a map with color settings for email templates.",
2391 link_color: "#d8a070",
2392 background_color: "#2C3645",
2393 content_background_color: "#1B2635",
2394 header_color: "#d8a070",
2395 text_color: "#b9b9ba",
2396 text_muted_color: "#b9b9ba"
2403 suggestions: ["#d8a070"]
2406 key: :background_color,
2408 suggestions: ["#2C3645"]
2411 key: :content_background_color,
2413 suggestions: ["#1B2635"]
2418 suggestions: ["#d8a070"]
2423 suggestions: ["#b9b9ba"]
2426 key: :text_muted_color,
2428 suggestions: ["#b9b9ba"]
2436 key: Pleroma.Emails.NewUsersDigestEmail,
2438 description: "New users admin email digest",
2443 description: "enables new users admin digest email when `true`",
2444 suggestions: [false]
2452 description: "Configure OAuth 2 provider capabilities",
2455 key: :token_expires_in,
2457 description: "The lifetime in seconds of the access token",
2461 key: :issue_new_refresh_token,
2464 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2467 key: :clean_expired_tokens,
2469 description: "Enable a background job to clean expired oauth tokens. Default: disabled."
2479 key: :shortcode_globs,
2480 type: {:list, :string},
2481 description: "Location of custom emoji files. * can be used as a wildcard.",
2482 suggestions: ["/emoji/custom/**/*.png"]
2485 key: :pack_extensions,
2486 type: {:list, :string},
2488 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2489 suggestions: [".png", ".gif"]
2493 type: {:keyword, :string, {:list, :string}},
2495 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the group name" <>
2496 " and the value is the location or array of locations. * can be used as a wildcard.",
2498 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2502 key: :default_manifest,
2505 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2506 " Currently only one manifest can be added (no arrays).",
2507 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2510 key: :shared_pack_cache_seconds_per_file,
2511 label: "Shared pack cache s/file",
2514 "When an emoji pack is shared, the archive is created and cached in memory" <>
2515 " for this amount of seconds multiplied by the number of files.",
2525 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2529 type: [:tuple, {:list, :tuple}],
2530 description: "For the search requests (account & status search etc.)",
2531 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2535 type: [:tuple, {:list, :tuple}],
2536 description: "For requests to timelines (each timeline has it's own limiter)",
2537 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2540 key: :app_account_creation,
2541 type: [:tuple, {:list, :tuple}],
2542 description: "For registering user accounts from the same IP address",
2543 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2546 key: :relations_actions,
2547 type: [:tuple, {:list, :tuple}],
2548 description: "For actions on relationships with all users (follow, unfollow)",
2549 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2552 key: :relation_id_action,
2553 type: [:tuple, {:list, :tuple}],
2554 description: "For actions on relation with a specific user (follow, unfollow)",
2555 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2558 key: :statuses_actions,
2559 type: [:tuple, {:list, :tuple}],
2561 "For create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2562 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2565 key: :status_id_action,
2566 type: [:tuple, {:list, :tuple}],
2568 "For fav / unfav or reblog / unreblog actions on the same status by the same user",
2569 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2572 key: :authentication,
2573 type: [:tuple, {:list, :tuple}],
2574 description: "For authentication create / password check / user existence check requests",
2575 suggestions: [{60_000, 15}]
2583 "Before enabling this you must add :esshd to mix.exs as one of the extra_applications " <>
2584 "and generate host keys in your priv dir with ssh-keygen -m PEM -N \"\" -b 2048 -t rsa -f ssh_host_rsa_key",
2589 description: "Enables SSH"
2594 description: "Dir with SSH keys",
2595 suggestions: ["/some/path/ssh_keys"]
2600 description: "Handler module",
2601 suggestions: ["Pleroma.BBS.Handler"]
2606 description: "Port to connect",
2607 suggestions: [10_022]
2610 key: :password_authenticator,
2612 description: "Authenticator module",
2613 suggestions: ["Pleroma.BBS.Authenticator"]
2620 description: "Mime types",
2627 "application/xml" => ["xml"],
2628 "application/xrd+xml" => ["xrd+xml"],
2629 "application/jrd+json" => ["jrd+json"],
2630 "application/activity+json" => ["activity+json"],
2631 "application/ld+json" => ["activity+json"]
2636 key: "application/xml",
2637 type: {:list, :string},
2638 suggestions: ["xml"]
2641 key: "application/xrd+xml",
2642 type: {:list, :string},
2643 suggestions: ["xrd+xml"]
2646 key: "application/jrd+json",
2647 type: {:list, :string},
2648 suggestions: ["jrd+json"]
2651 key: "application/activity+json",
2652 type: {:list, :string},
2653 suggestions: ["activity+json"]
2656 key: "application/ld+json",
2657 type: {:list, :string},
2658 suggestions: ["activity+json"]
2668 description: "Pleroma chat settings",
2677 group: :http_signatures,
2679 description: "HTTP Signatures settings",
2684 suggestions: [Pleroma.Signature]
2692 description: "HTTP settings",
2697 type: [:string, :tuple],
2698 description: "Proxy URL",
2699 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}]
2702 key: :send_user_agent,
2707 type: [:string, :atom],
2709 "What user agent to use. Must be a string or an atom `:default`. Default value is `:default`.",
2710 suggestions: ["Pleroma", :default]
2715 description: "Adapter specific options",
2721 label: "SSL Options",
2722 description: "SSL options for HTTP adapter",
2726 type: {:list, :atom},
2727 description: "List of TLS version to use",
2728 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
2742 key: :allow_inline_images,
2746 key: :allow_headings,
2759 type: {:list, :module},
2761 "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
2762 suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
2772 key: :deny_follow_blocked,
2779 key: :mrf_normalize_markup,
2780 label: "MRF normalize markup",
2781 description: "MRF NormalizeMarkup settings. Scrub configured hypertext markup.",
2787 suggestions: [Pleroma.HTML.Scrubber.Default]
2797 key: :restricted_nicknames,
2798 type: {:list, :string},
2817 "ostatus_subscribe",
2841 suggestions: [86_400]
2845 type: {:list, :string},
2846 suggestions: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]
2850 type: {:list, :string},
2853 "X-RateLimit-Reset",
2854 "X-RateLimit-Limit",
2855 "X-RateLimit-Remaining",
2866 type: {:list, :string},
2867 suggestions: ["Authorization", "Content-Type", "Idempotency-Key"]
2873 key: Pleroma.Plugs.RemoteIp,
2876 `Pleroma.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2877 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
2883 description: "Enable/disable the plug. Default: disabled."
2887 type: {:list, :string},
2889 "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]`."
2893 type: {:list, :string},
2895 "A list of strings in [CIDR](https://en.wikipedia.org/wiki/CIDR) notation specifying the IPs of known proxies. Default: `[]`."
2899 type: {:list, :string},
2901 "Defaults to [localhost](https://en.wikipedia.org/wiki/Localhost) and [private network](https://en.wikipedia.org/wiki/Private_network)."
2907 key: :web_cache_ttl,
2910 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2916 "Activity pub routes (except question activities). Default: `nil` (no expiration).",
2917 suggestions: [30_000, nil]
2920 key: :activity_pub_question,
2922 description: "Activity pub routes (question activities). Default: `30_000` (30 seconds).",
2923 suggestions: [30_000]
2932 "Render profiles and posts using server-generated HTML that is viewable without using JavaScript.",
2937 description: "Enables the rendering of static HTML. Default: disabled."
2945 description: "Configure feed rendering",
2950 description: "Configure title rendering.",
2955 description: "Maximum number of characters before truncating title.",
2961 description: "Replacement which will be used after truncating string.",
2962 suggestions: ["..."]
2970 key: :mrf_object_age,
2972 description: "Rejects or delists posts based on their age when received.",
2977 description: "Required age (in seconds) of a post before actions are taken.",
2978 suggestions: [172_800]
2982 type: {:list, :atom},
2984 "A list of actions to apply to the post. `:delist` removes the post from public timelines; " <>
2985 "`:strip_followers` removes followers from the ActivityPub recipient list, ensuring they won't be delivered to home timelines; " <>
2986 "`:reject` rejects the message entirely",
2987 suggestions: [:delist, :strip_followers, :reject]
2995 description: "Custom Runtime Modules",
3000 description: "A path to custom Elixir modules (such as MRF policies)."
3008 description: "Settings for notifications streamer",
3013 description: "Number of workers to send notifications.",
3017 key: :overflow_workers,
3019 description: "Maximum number of workers created if pool is empty.",
3026 key: :connections_pool,
3028 description: "Advanced settings for `gun` connections pool",
3031 key: :checkin_timeout,
3033 description: "Timeout to checkin connection from pool. Default: 250ms.",
3037 key: :max_connections,
3039 description: "Maximum number of connections in the pool. Default: 250 connections.",
3046 "Number of retries, while `gun` will try to reconnect if connection goes down. Default: 1.",
3050 key: :retry_timeout,
3053 "Time between retries when `gun` will try to reconnect in milliseconds. Default: 1000ms.",
3057 key: :await_up_timeout,
3059 description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.",
3068 description: "Advanced settings for `gun` workers pools",
3073 description: "Settings for federation pool.",
3078 description: "Number workers in the pool.",
3084 description: "Number of additional workers if pool is under load.",
3090 description: "Timeout while `gun` will wait for response.",
3091 suggestions: [150_000]
3098 description: "Settings for media pool.",
3103 description: "Number workers in the pool.",
3109 description: "Number of additional workers if pool is under load.",
3115 description: "Timeout while `gun` will wait for response.",
3116 suggestions: [150_000]
3123 description: "Settings for upload pool.",
3128 description: "Number workers in the pool.",
3134 description: "Number of additional workers if pool is under load.",
3140 description: "Timeout while `gun` will wait for response.",
3141 suggestions: [300_000]
3148 description: "Settings for default pool.",
3153 description: "Number workers in the pool.",
3159 description: "Number of additional workers if pool is under load.",
3165 description: "Timeout while `gun` will wait for response.",
3166 suggestions: [10_000]
3174 key: :hackney_pools,
3176 description: "Advanced settings for `hackney` connections pools",
3181 description: "Settings for federation pool.",
3184 key: :max_connections,
3186 description: "Number workers in the pool.",
3192 description: "Timeout while `hackney` will wait for response.",
3193 suggestions: [150_000]
3200 description: "Settings for media pool.",
3203 key: :max_connections,
3205 description: "Number workers in the pool.",
3211 description: "Timeout while `hackney` will wait for response.",
3212 suggestions: [150_000]
3219 description: "Settings for upload pool.",
3222 key: :max_connections,
3224 description: "Number workers in the pool.",
3230 description: "Timeout while `hackney` will wait for response.",
3231 suggestions: [300_000]
3239 key: :restrict_unauthenticated,
3242 "Disallow viewing timelines, user profiles and statuses for unauthenticated users.",
3247 description: "Settings for public and federated timelines.",
3252 description: "Disallow view public timeline."
3257 description: "Disallow view federated timeline."
3264 description: "Settings for user profiles.",
3269 description: "Disallow view local user profiles."
3274 description: "Disallow view remote user profiles."
3281 description: "Settings for statuses.",
3286 description: "Disallow view local statuses."
3291 description: "Disallow view remote statuses."
3299 key: Pleroma.Web.ApiSpec.CastAndValidate,
3306 "Enables strict input validation (useful in development, not recommended in production)",
3307 suggestions: [false]