6 {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
7 {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
14 installed_frontend_options = [
20 "Name of the installed frontend. Valid config must include both `Name` and `Reference` values."
27 "Reference of the installed frontend to be used. Valid config must include both `Name` and `Reference` values."
36 description: "Name of the frontend."
42 description: "Reference of the frontend to be used."
46 label: "Git Repository URL",
48 description: "URL of the git repository of the frontend"
55 "Either an url to a zip file containing the frontend or a template to build it by inserting the `ref`. The string `${ref}` will be replaced by the configured `ref`.",
56 example: "https://some.url/builds/${ref}.zip"
60 label: "Build directory",
62 description: "The directory inside the zip file "
66 config :pleroma, :config_description, [
71 description: "Upload general settings",
76 description: "Module which will be used for uploads",
77 suggestions: {:list_behaviour_implementations, Pleroma.Uploaders.Uploader}
81 type: {:list, :module},
83 "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.",
84 suggestions: {:list_behaviour_implementations, Pleroma.Upload.Filter}
90 "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`."
96 description: "Base URL for the uploads, needed if you use CDN",
98 "https://cdn-host.com"
105 "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected"
109 label: "Proxy Options",
111 description: "Options for Pleroma.ReverseProxy",
113 redirect_on_failure: false,
114 max_body_length: 25 * 1_048_576,
116 follow_redirect: true,
122 key: :redirect_on_failure,
125 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
126 "Any error during body processing will not be redirected as the response is chunked."
129 key: :max_body_length,
132 "Limits the content length to be approximately the " <>
133 "specified length. It is validated with the `content-length` header and also verified when proxying."
139 description: "HTTP options",
144 description: "Adapter specific options",
149 label: "SSL Options",
150 description: "SSL options for HTTP adapter",
154 type: {:list, :atom},
155 description: "List of TLS versions to use",
156 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
165 type: [:string, :tuple],
166 description: "Proxy URL",
167 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
174 key: :filename_display_max_length,
176 description: "Set max length of a filename to display. 0 = no limit. Default: 30"
182 key: Pleroma.Uploaders.Local,
184 description: "Local uploader-related settings",
189 description: "Path where user's uploads will be saved",
198 key: Pleroma.Uploaders.S3,
200 description: "S3 uploader-related settings",
205 description: "S3 bucket",
211 key: :bucket_namespace,
213 description: "S3 bucket namespace",
214 suggestions: ["pleroma"]
217 key: :public_endpoint,
219 description: "S3 endpoint",
220 suggestions: ["https://s3.amazonaws.com"]
223 key: :truncated_namespace,
226 "If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
227 " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in public_endpoint."
230 key: :streaming_enabled,
233 "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."
239 key: Pleroma.Upload.Filter.Mogrify,
241 description: "Uploads mogrify filter settings",
245 type: [:string, {:list, :string}, {:list, :tuple}],
247 "List of actions for the mogrify command. It's possible to add self-written settings as string. " <>
248 "For example `auto-orient, strip, {\"resize\", \"3840x1080>\"}` value will be parsed into valid list of the settings.",
259 key: Pleroma.Upload.Filter.AnonymizeFilename,
261 description: "Filter replaces the filename of the upload",
267 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
268 " filename extension by using {extension}, for example custom-file-name.{extension}.",
270 "custom-file-name.{extension}"
277 key: Pleroma.Emails.Mailer,
279 description: "Mailer-related settings",
285 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
286 " or Swoosh.Adapters.Local for in-memory mailbox",
288 Swoosh.Adapters.SMTP,
289 Swoosh.Adapters.Sendgrid,
290 Swoosh.Adapters.Sendmail,
291 Swoosh.Adapters.Mandrill,
292 Swoosh.Adapters.Mailgun,
293 Swoosh.Adapters.Mailjet,
294 Swoosh.Adapters.Postmark,
295 Swoosh.Adapters.SparkPost,
296 Swoosh.Adapters.AmazonSES,
298 Swoosh.Adapters.SocketLabs,
299 Swoosh.Adapters.Gmail,
300 Swoosh.Adapters.Local
306 description: "Allow/disallow send emails"
309 group: {:subgroup, Swoosh.Adapters.SMTP},
312 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
313 suggestions: ["smtp.gmail.com"]
316 group: {:subgroup, Swoosh.Adapters.SMTP},
319 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
320 suggestions: ["pleroma"]
323 group: {:subgroup, Swoosh.Adapters.SMTP},
326 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
327 suggestions: ["password"]
330 group: {:subgroup, Swoosh.Adapters.SMTP},
334 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
337 group: {:subgroup, Swoosh.Adapters.SMTP},
341 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
342 suggestions: [:always, :never, :if_available]
345 group: {:subgroup, Swoosh.Adapters.SMTP},
348 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
349 suggestions: [:always, :never, :if_available]
352 group: {:subgroup, Swoosh.Adapters.SMTP},
355 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
359 group: {:subgroup, Swoosh.Adapters.SMTP},
362 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
366 group: {:subgroup, Swoosh.Adapters.SMTP},
368 label: "No MX lookups",
370 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
373 group: {:subgroup, Swoosh.Adapters.Sendgrid},
377 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
378 suggestions: ["my-api-key"]
381 group: {:subgroup, Swoosh.Adapters.Sendmail},
384 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
385 suggestions: ["/usr/bin/sendmail"]
388 group: {:subgroup, Swoosh.Adapters.Sendmail},
391 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
392 suggestions: ["-N delay,failure,success"]
395 group: {:subgroup, Swoosh.Adapters.Sendmail},
398 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
401 group: {:subgroup, Swoosh.Adapters.Mandrill},
405 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
406 suggestions: ["my-api-key"]
409 group: {:subgroup, Swoosh.Adapters.Mailgun},
413 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
414 suggestions: ["my-api-key"]
417 group: {:subgroup, Swoosh.Adapters.Mailgun},
420 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
421 suggestions: ["pleroma.com"]
424 group: {:subgroup, Swoosh.Adapters.Mailjet},
428 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
429 suggestions: ["my-api-key"]
432 group: {:subgroup, Swoosh.Adapters.Mailjet},
435 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
436 suggestions: ["my-secret-key"]
439 group: {:subgroup, Swoosh.Adapters.Postmark},
443 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
444 suggestions: ["my-api-key"]
447 group: {:subgroup, Swoosh.Adapters.SparkPost},
451 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
452 suggestions: ["my-api-key"]
455 group: {:subgroup, Swoosh.Adapters.SparkPost},
458 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
459 suggestions: ["https://api.sparkpost.com/api/v1"]
462 group: {:subgroup, Swoosh.Adapters.AmazonSES},
465 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
466 suggestions: ["us-east-1", "us-east-2"]
469 group: {:subgroup, Swoosh.Adapters.AmazonSES},
472 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
473 suggestions: ["aws-access-key"]
476 group: {:subgroup, Swoosh.Adapters.AmazonSES},
479 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
480 suggestions: ["aws-secret-key"]
483 group: {:subgroup, Swoosh.Adapters.Dyn},
487 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
488 suggestions: ["my-api-key"]
491 group: {:subgroup, Swoosh.Adapters.SocketLabs},
494 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
497 group: {:subgroup, Swoosh.Adapters.SocketLabs},
501 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
504 group: {:subgroup, Swoosh.Adapters.Gmail},
507 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
514 description: "`Swoosh.Adapters.Local` adapter specific settings",
517 group: {:subgroup, Swoosh.Adapters.Local},
520 description: "Run the preview server together as part of your app"
523 group: {:subgroup, Swoosh.Adapters.Local},
526 description: "The preview server port",
534 label: "URI Schemes",
536 description: "URI schemes related settings",
540 type: {:list, :string},
541 description: "List of the scheme part that is considered valid to be an URL",
566 description: "Instance-related settings",
571 description: "Name of the instance",
578 label: "Admin Email Address",
580 description: "Email used to reach an Administrator/Moderator of the instance",
587 label: "Sender Email Address",
589 description: "Envelope FROM address for mail sent via Pleroma",
598 "The instance's description. It can be seen in nodeinfo and `/api/v1/instance`",
606 description: "Posts character limit (CW/Subject included in the counter)",
614 description: "Character limit of the instance chat messages",
622 description: "Hard character limit beyond which remote posts will be dropped",
630 description: "File size limit of uploads (except for avatar, background, banner)",
636 key: :avatar_upload_limit,
638 description: "File size limit of user's profile avatars",
644 key: :background_upload_limit,
646 description: "File size limit of user's profile backgrounds",
652 key: :banner_upload_limit,
654 description: "File size limit of user's profile banners",
662 description: "A map with poll limits for local polls",
666 max_option_chars: 200,
668 max_expiration: 31_536_000
675 description: "Maximum number of options",
679 key: :max_option_chars,
681 description: "Maximum number of characters per option",
685 key: :min_expiration,
687 description: "Minimum expiration time (in seconds)",
691 key: :max_expiration,
693 description: "Maximum expiration time (in seconds)",
699 key: :registrations_open,
702 "Enable registrations for anyone. Invitations require this setting to be disabled."
705 key: :invites_enabled,
708 "Enable user invitations for admins (depends on `registrations_open` being disabled)"
711 key: :account_activation_required,
713 description: "Require users to confirm their emails before signing in"
716 key: :account_approval_required,
718 description: "Require users to be manually approved by an admin before signing in"
723 description: "Enable federation with other instances"
726 key: :federation_incoming_replies_max_depth,
727 label: "Fed. incoming replies max depth",
730 "Max. depth of reply-to and reply activities fetching on incoming federation, to prevent out-of-memory situations while" <>
731 " 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.",
737 key: :federation_reachability_timeout_days,
738 label: "Fed. reachability timeout days",
741 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
749 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
755 "Makes the client API in authenticated mode-only except for user-profiles." <>
756 " Useful for disabling the Local Timeline and The Whole Known Network. " <>
757 " Note: when setting to `false`, please also check `:restrict_unauthenticated` setting."
760 key: :quarantined_instances,
761 type: {:list, :string},
763 "List of ActivityPub instances where private (DMs, followers-only) activities will not be sent",
772 description: "Instance static directory",
778 key: :allowed_post_formats,
779 type: {:list, :string},
780 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
789 key: :extended_nickname_format,
792 "Enable to use extended local nicknames format (allows underscores/dashes)." <>
793 " This will break federation with older software for theses nicknames."
796 key: :cleanup_attachments,
799 Enable to remove associated attachments when status is removed.
800 This will not affect duplicates and attachments without status.
801 Enabling this will increase load to database when deleting statuses on larger instances.
805 key: :max_pinned_statuses,
807 description: "The maximum number of pinned statuses. 0 will disable the feature.",
815 key: :autofollowed_nicknames,
816 type: {:list, :string},
818 "Set to nicknames of (local) users that every new user should automatically follow"
821 key: :autofollowing_nicknames,
822 type: {:list, :string},
824 "Set to nicknames of (local) users that automatically follows every newly registered user"
827 key: :attachment_links,
829 description: "Enable to automatically add attachment link text to statuses"
832 key: :max_report_comment_size,
834 description: "The maximum size of the report comment. Default: 1000.",
840 key: :safe_dm_mentions,
841 label: "Safe DM mentions",
844 "If enabled, only mentions at the beginning of a post will be used to address people in direct messages." <>
845 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@admin please keep an eye on @bad_actor\")." <>
851 description: "If enabled, system data will be shown on `/api/pleroma/healthcheck`"
854 key: :remote_post_retention_days,
857 "The default amount of days to retain remote posts when pruning the database",
863 key: :user_bio_length,
865 description: "A user bio maximum length. Default: 5000.",
871 key: :user_name_length,
873 description: "A user name maximum length. Default: 100.",
879 key: :skip_thread_containment,
881 description: "Skip filtering out broken threads. Default: enabled."
884 key: :limit_to_local_content,
885 type: {:dropdown, :atom},
887 "Limit unauthenticated users to search for local statutes and users only. Default: `:unauthenticated`.",
895 key: :max_account_fields,
897 description: "The maximum number of custom fields in the user profile. Default: 10.",
903 key: :max_remote_account_fields,
906 "The maximum number of custom fields in the remote user profile. Default: 20.",
912 key: :account_field_name_length,
914 description: "An account field name maximum length. Default: 512.",
920 key: :account_field_value_length,
922 description: "An account field value maximum length. Default: 2048.",
928 key: :registration_reason_length,
930 description: "Maximum registration reason length. Default: 500.",
936 key: :external_user_synchronization,
938 description: "Enabling following/followers counters synchronization for external users"
941 key: :multi_factor_authentication,
943 description: "Multi-factor authentication settings",
946 totp: [digits: 6, period: 30],
947 backup_codes: [number: 5, length: 16]
953 label: "TOTP settings",
955 description: "TOTP settings",
956 suggestions: [digits: 6, period: 30],
963 "Determines the length of a one-time pass-code, in characters. Defaults to 6 characters."
970 "A period for which the TOTP code will be valid, in seconds. Defaults to 30 seconds."
977 description: "MFA backup codes settings",
978 suggestions: [number: 5, length: 16],
984 description: "Number of backup codes to generate."
991 "Determines the length of backup one-time pass-codes, in characters. Defaults to 16 characters."
998 key: :instance_thumbnail,
999 type: {:string, :image},
1001 "The instance thumbnail can be any image that represents your instance and is used by some apps or services when they display information about your instance.",
1002 suggestions: ["/instance/thumbnail.jpeg"]
1005 key: :show_reactions,
1007 description: "Let favourites and emoji reactions be viewed through the API."
1015 description: "Welcome messages settings",
1018 key: :direct_message,
1020 descpiption: "Direct message settings",
1025 description: "Enables sending a direct message to newly registered users"
1030 description: "A message that will be sent to newly registered users",
1032 "Hi, @username! Welcome on board!"
1036 key: :sender_nickname,
1038 description: "The nickname of the local user that sends a welcome message",
1048 descpiption: "Chat message settings",
1053 description: "Enables sending a chat message to newly registered users"
1059 "A message that will be sent to newly registered users as a chat message",
1061 "Hello, welcome on board!"
1065 key: :sender_nickname,
1067 description: "The nickname of the local user that sends a welcome chat message",
1077 descpiption: "Email message settings",
1082 description: "Enables sending an email to newly registered users"
1086 type: [:string, :tuple],
1088 "Email address and/or nickname that will be used to send the welcome email.",
1090 {"Pleroma App", "welcome@pleroma.app"}
1097 "Subject of the welcome email. EEX template with user and instance_name variables can be used.",
1098 suggestions: ["Welcome to <%= instance_name%>"]
1104 "HTML content of the welcome email. EEX template with user and instance_name variables can be used.",
1105 suggestions: ["<h1>Hello <%= user.name%>. Welcome to <%= instance_name%></h1>"]
1111 "Text content of the welcome email. EEX template with user and instance_name variables can be used.",
1112 suggestions: ["Hello <%= user.name%>. \n Welcome to <%= instance_name%>\n"]
1121 description: "Logger-related settings",
1125 type: [:atom, :tuple, :module],
1127 "Where logs will be sent, :console - send logs to stdout, { ExSyslogger, :ex_syslogger } - to syslog, Quack.Logger - to Slack.",
1128 suggestions: [:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]
1136 label: "ExSyslogger",
1137 description: "ExSyslogger-related settings",
1141 type: {:dropdown, :atom},
1142 description: "Log level",
1143 suggestions: [:debug, :info, :warn, :error]
1149 "A string that's prepended to every message, and is typically set to the app name",
1150 suggestions: ["pleroma"]
1155 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1156 suggestions: ["$metadata[$level] $message"]
1160 type: {:list, :atom},
1161 suggestions: [:request_id]
1169 label: "Console Logger",
1170 description: "Console logger settings",
1174 type: {:dropdown, :atom},
1175 description: "Log level",
1176 suggestions: [:debug, :info, :warn, :error]
1181 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1182 suggestions: ["$metadata[$level] $message"]
1186 type: {:list, :atom},
1187 suggestions: [:request_id]
1194 label: "Quack Logger",
1195 description: "Quack-related settings",
1199 type: {:dropdown, :atom},
1200 description: "Log level",
1201 suggestions: [:debug, :info, :warn, :error]
1205 type: {:list, :atom},
1206 description: "Configure which metadata you want to report on",
1223 label: "Webhook URL",
1225 description: "Configure the Slack incoming webhook",
1226 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1232 key: :frontend_configurations,
1235 "This form can be used to configure a keyword list that keeps the configuration data for any " <>
1236 "kind of frontend. By default, settings for pleroma_fe and masto_fe are configured. If you want to " <>
1237 "add your own configuration your settings all fields must be complete.",
1241 label: "Pleroma FE",
1243 description: "Settings for Pleroma FE",
1246 alwaysShowSubjectInput: true,
1247 background: "/static/aurora_borealis.jpg",
1248 collapseMessageWithSubject: false,
1251 hideFilteredStatuses: false,
1252 hideMutedPosts: false,
1253 hidePostStats: false,
1254 hideSitename: false,
1255 hideUserStats: false,
1256 loginMethod: "password",
1257 logo: "/static/logo.png",
1260 minimalScopesMode: false,
1261 noAttachmentLinks: false,
1262 nsfwCensorImage: "/static/img/nsfw.74818f9.png",
1263 postContentType: "text/plain",
1264 redirectRootLogin: "/main/friends",
1265 redirectRootNoLogin: "/main/all",
1267 sidebarRight: false,
1268 showFeaturesPanel: true,
1269 showInstanceSpecificPanel: false,
1270 subjectLineBehavior: "email",
1271 theme: "pleroma-dark",
1272 webPushNotifications: false
1277 key: :alwaysShowSubjectInput,
1278 label: "Always show subject input",
1280 description: "When disabled, auto-hide the subject field if it's empty"
1284 type: {:string, :image},
1286 "URL of the background, unless viewing a user profile with a background that is set",
1287 suggestions: ["/images/city.jpg"]
1290 key: :collapseMessageWithSubject,
1291 label: "Collapse message with subject",
1294 "When a message has a subject (aka Content Warning), collapse it by default"
1298 label: "PleromaFE Chat",
1300 description: "Disables PleromaFE Chat component"
1306 description: "Enables green text on lines prefixed with the > character"
1309 key: :hideFilteredStatuses,
1310 label: "Hide Filtered Statuses",
1312 description: "Hides filtered statuses from timelines"
1315 key: :hideMutedPosts,
1316 label: "Hide Muted Posts",
1318 description: "Hides muted statuses from timelines"
1321 key: :hidePostStats,
1322 label: "Hide post stats",
1324 description: "Hide notices statistics (repeats, favorites, ...)"
1328 label: "Hide Sitename",
1330 description: "Hides instance name from PleromaFE banner"
1333 key: :hideUserStats,
1334 label: "Hide user stats",
1337 "Hide profile statistics (posts, posts per day, followers, followings, ...)"
1341 type: {:string, :image},
1342 description: "URL of the logo, defaults to Pleroma's logo",
1343 suggestions: ["/static/logo.png"]
1347 label: "Logo margin",
1350 "Allows you to adjust vertical margins between logo boundary and navbar borders. " <>
1351 "The idea is that to have logo's image without any extra margins and instead adjust them to your need in layout.",
1352 suggestions: [".1em"]
1359 "By default it assumes logo used will be monochrome with alpha channel to be compatible with both light and dark themes. " <>
1360 "If you want a colorful logo you must disable logoMask."
1363 key: :minimalScopesMode,
1364 label: "Minimal scopes mode",
1367 "Limit scope selection to Direct, User default, and Scope of post replying to. " <>
1368 "Also prevents replying to a DM with a public post from PleromaFE."
1371 key: :nsfwCensorImage,
1372 label: "NSFW Censor Image",
1373 type: {:string, :image},
1375 "URL of the image to use for hiding NSFW media attachments in the timeline",
1376 suggestions: ["/static/img/nsfw.74818f9.png"]
1379 key: :postContentType,
1380 label: "Post Content Type",
1381 type: {:dropdown, :atom},
1382 description: "Default post formatting option",
1383 suggestions: ["text/plain", "text/html", "text/markdown", "text/bbcode"]
1386 key: :redirectRootNoLogin,
1387 label: "Redirect root no login",
1390 "Relative URL which indicates where to redirect when a user isn't logged in",
1391 suggestions: ["/main/all"]
1394 key: :redirectRootLogin,
1395 label: "Redirect root login",
1398 "Relative URL which indicates where to redirect when a user is logged in",
1399 suggestions: ["/main/friends"]
1403 label: "Scope copy",
1405 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1409 label: "Sidebar on Right",
1411 description: "Change alignment of sidebar and panels to the right"
1414 key: :showFeaturesPanel,
1415 label: "Show instance features panel",
1418 "Enables panel displaying functionality of the instance on the About page"
1421 key: :showInstanceSpecificPanel,
1422 label: "Show instance specific panel",
1424 description: "Whether to show the instance's custom panel"
1427 key: :subjectLineBehavior,
1428 label: "Subject line behavior",
1430 description: "Allows changing the default behaviour of subject lines in replies.
1431 `email`: copy and preprend re:, as in email,
1432 `masto`: copy verbatim, as in Mastodon,
1433 `noop`: don't copy the subject.",
1434 suggestions: ["email", "masto", "noop"]
1439 description: "Which theme to use. Available themes are defined in styles.json",
1440 suggestions: ["pleroma-dark"]
1448 description: "Settings for Masto FE",
1451 showInstanceSpecificPanel: true
1456 key: :showInstanceSpecificPanel,
1457 label: "Show instance specific panel",
1459 description: "Whenether to show the instance's specific panel"
1470 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1474 type: {:keyword, :map},
1476 "Keyword of mascots, each element must contain both an URL and a mime_type key",
1479 url: "/images/pleroma-fox-tan-smol.png",
1480 mime_type: "image/png"
1482 pleroma_fox_tan_shy: %{
1483 url: "/images/pleroma-fox-tan-shy.png",
1484 mime_type: "image/png"
1489 key: :default_mascot,
1492 "This will be used as the default mascot on MastoFE. Default: `:pleroma_fox_tan`",
1498 key: :default_user_avatar,
1499 type: {:string, :image},
1500 description: "URL of the default user avatar",
1501 suggestions: ["/images/avi.png"]
1510 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE.",
1514 type: {:list, :map},
1515 description: "Describe the icons of the app",
1518 src: "/static/logo.png"
1521 src: "/static/icon.png",
1525 src: "/static/icon.ico",
1526 sizes: "72x72 96x96 128x128 256x256"
1533 description: "Describe the theme color of the app",
1534 suggestions: ["#282c37", "mediumpurple"]
1537 key: :background_color,
1539 description: "Describe the background color of the app",
1540 suggestions: ["#191b22", "aliceblue"]
1548 description: "Media proxy",
1553 description: "Enables proxying of remote media to the instance's proxy"
1560 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.",
1561 suggestions: ["https://example.com"]
1569 provider: Pleroma.Web.MediaProxy.Invalidation.Script
1575 description: "Enables media cache object invalidation."
1580 description: "Module which will be used to purge objects from the cache.",
1582 Pleroma.Web.MediaProxy.Invalidation.Script,
1583 Pleroma.Web.MediaProxy.Invalidation.Http
1590 label: "Proxy Options",
1592 description: "Options for Pleroma.ReverseProxy",
1594 redirect_on_failure: false,
1595 max_body_length: 25 * 1_048_576,
1596 max_read_duration: 30_000,
1598 follow_redirect: true,
1604 key: :redirect_on_failure,
1607 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
1608 "Any error during body processing will not be redirected as the response is chunked."
1611 key: :max_body_length,
1614 "Limits the content length to be approximately the " <>
1615 "specified length. It is validated with the `content-length` header and also verified when proxying."
1618 key: :max_read_duration,
1620 description: "Timeout (in milliseconds) of GET request to remote URI."
1626 description: "HTTP options",
1631 description: "Adapter specific options",
1636 label: "SSL Options",
1637 description: "SSL options for HTTP adapter",
1641 type: {:list, :atom},
1642 description: "List of TLS version to use",
1643 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
1652 type: [:string, :tuple],
1653 description: "Proxy URL",
1654 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
1662 type: {:list, :string},
1663 description: "List of hosts with scheme to bypass the mediaproxy",
1664 suggestions: ["http://example.com"]
1670 key: :media_preview_proxy,
1672 description: "Media preview proxy",
1678 "Enables proxying of remote media preview to the instance's proxy. Requires enabled media proxy."
1681 key: :thumbnail_max_width,
1684 "Max width of preview thumbnail for images (video preview always has original dimensions)."
1687 key: :thumbnail_max_height,
1690 "Max height of preview thumbnail for images (video preview always has original dimensions)."
1693 key: :image_quality,
1695 description: "Quality of the output. Ranges from 0 (min quality) to 100 (max quality)."
1698 key: :min_content_length,
1701 "Min content length to perform preview, in bytes. If greater than 0, media smaller in size will be served as is, without thumbnailing."
1707 key: Pleroma.Web.MediaProxy.Invalidation.Http,
1709 description: "HTTP invalidate settings",
1714 description: "HTTP method of request. Default: :purge"
1718 type: {:keyword, :string},
1719 description: "HTTP headers of request",
1720 suggestions: [{"x-refresh", 1}]
1725 description: "Request options",
1729 type: {:map, :string}
1737 key: Pleroma.Web.MediaProxy.Invalidation.Script,
1739 description: "Script invalidate settings",
1744 description: "Path to shell script. Which will run purge cache.",
1745 suggestions: ["./installation/nginx-cache-purge.sh.example"]
1753 description: "Gopher settings",
1758 description: "Enables the gopher interface"
1764 description: "IP address to bind to",
1765 suggestions: [{0, 0, 0, 0}]
1770 description: "Port to bind to",
1776 description: "Port advertised in URLs (optional, defaults to port)",
1784 label: "ActivityPub",
1786 description: "ActivityPub-related settings",
1789 key: :unfollow_blocked,
1791 description: "Whether blocks result in people getting unfollowed"
1794 key: :outgoing_blocks,
1796 description: "Whether to federate blocks to other instances"
1799 key: :sign_object_fetches,
1801 description: "Sign object fetches with HTTP signatures"
1804 key: :note_replies_output_limit,
1807 "The number of Note replies' URIs to be included with outgoing federation (`5` to match Mastodon hardcoded value, `0` to disable the output)"
1810 key: :follow_handshake_timeout,
1812 description: "Following handshake timeout",
1819 key: :http_security,
1820 label: "HTTP security",
1822 description: "HTTP security settings",
1827 description: "Whether the managed content security policy is enabled"
1833 description: "Whether to additionally send a Strict-Transport-Security header"
1837 label: "STS max age",
1839 description: "The maximum age for the Strict-Transport-Security header if sent",
1840 suggestions: [31_536_000]
1844 label: "CT max age",
1846 description: "The maximum age for the Expect-CT header if sent",
1847 suggestions: [2_592_000]
1850 key: :referrer_policy,
1852 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1853 suggestions: ["same-origin", "no-referrer"]
1857 label: "Report URI",
1859 description: "Adds the specified URL to report-uri and report-to group in CSP header",
1860 suggestions: ["https://example.com/report-uri"]
1865 group: :web_push_encryption,
1866 key: :vapid_details,
1867 label: "Vapid Details",
1870 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it.",
1876 "A mailto link for the administrative contact." <>
1877 " It's best if this email is not a personal email address, but rather a group email to the instance moderation team.",
1878 suggestions: ["mailto:moderators@pleroma.com"]
1883 description: "VAPID public key",
1884 suggestions: ["Public key"]
1889 description: "VAPID private key",
1890 suggestions: ["Private key"]
1896 key: Pleroma.Captcha,
1898 description: "Captcha-related settings",
1903 description: "Whether the captcha should be shown on registration"
1908 description: "The method/service to use for captcha",
1909 suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
1912 key: :seconds_valid,
1914 description: "The time in seconds for which the captcha is valid",
1921 key: Pleroma.Captcha.Kocaptcha,
1924 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1925 " here: https://github.com/koto-bank/kocaptcha. The default endpoint (https://captcha.kotobank.ch) is hosted by the developer.",
1930 description: "The kocaptcha endpoint to use",
1931 suggestions: ["https://captcha.kotobank.ch"]
1937 label: "Pleroma Admin Token",
1940 "Allows setting a token that can be used to authenticate requests with admin privileges without a normal user account token. Append the `admin_token` parameter to requests to utilize it. (Please reconsider using HTTP Basic Auth or OAuth-based authentication if possible)",
1945 description: "Admin token",
1947 "Please use a high entropy string or UUID"
1957 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1959 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1960 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1961 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1962 (see https://github.com/sorentwo/oban/issues/52).
1967 type: {:dropdown, :atom},
1968 description: "Logs verbose mode",
1969 suggestions: [false, :error, :warn, :info, :debug]
1973 type: {:keyword, :integer},
1975 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1977 activity_expiration: 10,
1978 attachments_cleanup: 5,
1980 federator_incoming: 50,
1981 federator_outgoing: 50,
1983 scheduled_activities: 10,
1989 key: :activity_expiration,
1991 description: "Activity expiration queue",
1997 description: "Backup queue",
2001 key: :attachments_cleanup,
2003 description: "Attachment deletion queue",
2009 description: "Background queue",
2013 key: :federator_incoming,
2015 description: "Incoming federation queue",
2019 key: :federator_outgoing,
2021 description: "Outgoing federation queue",
2027 description: "Email sender queue, see Pleroma.Emails.Mailer",
2031 key: :scheduled_activities,
2033 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
2037 key: :transmogrifier,
2039 description: "Transmogrifier queue",
2045 description: "Web push notifications queue",
2052 type: {:list, :tuple},
2053 description: "Settings for cron background jobs",
2055 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
2056 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
2065 description: "Includes custom worker options not interpretable directly by `Oban`",
2069 type: {:keyword, :integer},
2070 description: "Max retry attempts for failed jobs, per `Oban` queue",
2072 federator_incoming: 5,
2073 federator_outgoing: 5
2080 key: Pleroma.Web.Metadata,
2082 description: "Metadata-related settings",
2086 type: {:list, :module},
2087 description: "List of metadata providers to enable",
2089 Pleroma.Web.Metadata.Providers.OpenGraph,
2090 Pleroma.Web.Metadata.Providers.TwitterCard,
2091 Pleroma.Web.Metadata.Providers.RelMe,
2092 Pleroma.Web.Metadata.Providers.Feed
2097 label: "Unfurl NSFW",
2099 description: "When enabled NSFW attachments will be shown in previews"
2108 "If enabled the instance will parse metadata from attached links to generate link previews",
2113 description: "Enables RichMedia parsing of URLs"
2117 type: {:list, :string},
2118 description: "List of hosts which will be ignored by the metadata parser",
2119 suggestions: ["accounts.google.com", "xss.website"]
2123 label: "Ignore TLD",
2124 type: {:list, :string},
2125 description: "List TLDs (top-level domains) which will ignore for parse metadata",
2126 suggestions: ["local", "localdomain", "lan"]
2130 type: {:list, :module},
2132 "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.",
2134 Pleroma.Web.RichMedia.Parsers.OEmbed,
2135 Pleroma.Web.RichMedia.Parsers.TwitterCard
2140 label: "TTL setters",
2141 type: {:list, :module},
2143 "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.",
2145 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl
2149 key: :failure_backoff,
2152 "Amount of milliseconds after request failure, during which the request will not be retried.",
2153 suggestions: [60_000]
2159 key: Pleroma.Formatter,
2163 "Configuration for Pleroma's link formatter which parses mentions, hashtags, and URLs.",
2167 type: [:string, :boolean],
2168 description: "Specify the class to be added to the generated link. Disable to clear.",
2169 suggestions: ["auto-linker", false]
2173 type: [:string, :boolean],
2174 description: "Override the rel attribute. Disable to clear.",
2175 suggestions: ["ugc", "noopener noreferrer", false]
2180 description: "Link URLs will open in a new window/tab."
2184 type: [:integer, :boolean],
2186 "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
2187 suggestions: [15, false]
2192 description: "Strip the scheme prefix."
2197 description: "Link URLs with rarely used schemes (magnet, ipfs, irc, etc.)"
2201 type: [:atom, :boolean],
2203 "Set to false to disable TLD validation for URLs/emails. Can be set to :no_scheme to validate TLDs only for URLs without a scheme (e.g `example.com` will be validated, but `http://example.loki` won't)",
2204 suggestions: [:no_scheme, true]
2210 key: Pleroma.ScheduledActivity,
2212 description: "Scheduled activities settings",
2215 key: :daily_user_limit,
2218 "The number of scheduled activities a user is allowed to create in a single day. Default: 25.",
2222 key: :total_user_limit,
2225 "The number of scheduled activities a user is allowed to create in total. Default: 300.",
2231 description: "Whether scheduled activities are sent to the job queue to be executed"
2237 key: Pleroma.Workers.PurgeExpiredActivity,
2239 description: "Expired activities settings",
2244 description: "Enables expired activities addition & deletion"
2249 description: "Minimum lifetime for ephemeral activity (in seconds)",
2256 label: "Pleroma Authenticator",
2258 description: "Authenticator",
2261 key: Pleroma.Web.Auth.Authenticator,
2263 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2273 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2274 " will be verified by trying to authenticate (bind) to a LDAP server." <>
2275 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2276 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2281 description: "Enables LDAP authentication"
2286 description: "LDAP server hostname",
2287 suggestions: ["localhosts"]
2292 description: "LDAP port, e.g. 389 or 636",
2293 suggestions: [389, 636]
2299 description: "Enable to use SSL, usually implies the port 636"
2303 label: "SSL options",
2305 description: "Additional SSL options",
2306 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2311 description: "Path to file with PEM encoded cacerts",
2312 suggestions: ["path/to/file/with/PEM/cacerts"]
2317 description: "Type of cert verification",
2318 suggestions: [:verify_peer]
2326 description: "Enable to use STARTTLS, usually implies the port 389"
2330 label: "TLS options",
2332 description: "Additional TLS options",
2333 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2338 description: "Path to file with PEM encoded cacerts",
2339 suggestions: ["path/to/file/with/PEM/cacerts"]
2344 description: "Type of cert verification",
2345 suggestions: [:verify_peer]
2352 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2353 suggestions: ["dc=example,dc=com"]
2360 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2369 description: "Authentication / authorization settings",
2372 key: :enforce_oauth_admin_scope_usage,
2373 label: "Enforce OAuth admin scope usage",
2376 "OAuth admin scope requirement toggle. " <>
2377 "If enabled, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token " <>
2378 "(client app must support admin scopes). If disabled and token doesn't have admin scope(s), " <>
2379 "`is_admin` user flag grants access to admin-specific actions."
2382 key: :auth_template,
2385 "Authentication form template. By default it's `show.html` which corresponds to `lib/pleroma/web/templates/o_auth/o_auth/show.html.ee`.",
2386 suggestions: ["show.html"]
2389 key: :oauth_consumer_template,
2390 label: "OAuth consumer template",
2393 "OAuth consumer mode authentication form template. By default it's `consumer.html` which corresponds to" <>
2394 " `lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex`.",
2395 suggestions: ["consumer.html"]
2398 key: :oauth_consumer_strategies,
2399 label: "OAuth consumer strategies",
2400 type: {:list, :string},
2402 "The list of enabled OAuth consumer strategies. By default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2403 " Each entry in this space-delimited string should be of format \"strategy\" or \"strategy:dependency\"" <>
2404 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2405 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2411 key: :email_notifications,
2413 description: "Email notifications settings",
2419 "emails of \"what you've missed\" for users who have been inactive for a while",
2423 schedule: "0 0 * * 0",
2425 inactivity_threshold: 7
2433 description: "Globally enable or disable digest emails"
2439 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\".",
2440 suggestions: ["0 0 * * 0"]
2445 description: "Minimum interval between digest emails to one user",
2449 key: :inactivity_threshold,
2451 description: "Minimum user inactivity threshold",
2460 key: Pleroma.Emails.UserEmail,
2462 description: "Email template settings",
2466 type: {:string, :image},
2467 description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
2468 suggestions: ["some/path/logo.png"]
2473 description: "A map with color settings for email templates.",
2476 link_color: "#d8a070",
2477 background_color: "#2C3645",
2478 content_background_color: "#1B2635",
2479 header_color: "#d8a070",
2480 text_color: "#b9b9ba",
2481 text_muted_color: "#b9b9ba"
2488 suggestions: ["#d8a070"]
2491 key: :background_color,
2493 suggestions: ["#2C3645"]
2496 key: :content_background_color,
2498 suggestions: ["#1B2635"]
2503 suggestions: ["#d8a070"]
2508 suggestions: ["#b9b9ba"]
2511 key: :text_muted_color,
2513 suggestions: ["#b9b9ba"]
2521 key: Pleroma.Emails.NewUsersDigestEmail,
2523 description: "New users admin email digest",
2528 description: "Enables new users admin digest email when `true`"
2537 description: "Configure OAuth 2 provider capabilities",
2540 key: :token_expires_in,
2542 description: "The lifetime in seconds of the access token",
2546 key: :issue_new_refresh_token,
2549 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2552 key: :clean_expired_tokens,
2554 description: "Enable a background job to clean expired OAuth tokens. Default: disabled."
2564 key: :shortcode_globs,
2565 type: {:list, :string},
2566 description: "Location of custom emoji files. * can be used as a wildcard.",
2567 suggestions: ["/emoji/custom/**/*.png"]
2570 key: :pack_extensions,
2571 type: {:list, :string},
2573 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2574 suggestions: [".png", ".gif"]
2578 type: {:keyword, {:list, :string}},
2580 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the group name" <>
2581 " and the value is the location or array of locations. * can be used as a wildcard.",
2583 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2587 key: :default_manifest,
2590 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2591 " Currently only one manifest can be added (no arrays).",
2592 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2595 key: :shared_pack_cache_seconds_per_file,
2596 label: "Shared pack cache s/file",
2599 "When an emoji pack is shared, the archive is created and cached in memory" <>
2600 " for this amount of seconds multiplied by the number of files.",
2610 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2614 type: [:tuple, {:list, :tuple}],
2615 description: "For the search requests (account & status search etc.)",
2616 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2620 type: [:tuple, {:list, :tuple}],
2621 description: "For requests to timelines (each timeline has it's own limiter)",
2622 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2625 key: :app_account_creation,
2626 type: [:tuple, {:list, :tuple}],
2627 description: "For registering user accounts from the same IP address",
2628 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2631 key: :relations_actions,
2632 type: [:tuple, {:list, :tuple}],
2633 description: "For actions on relationships with all users (follow, unfollow)",
2634 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2637 key: :relation_id_action,
2638 label: "Relation ID action",
2639 type: [:tuple, {:list, :tuple}],
2640 description: "For actions on relation with a specific user (follow, unfollow)",
2641 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2644 key: :statuses_actions,
2645 type: [:tuple, {:list, :tuple}],
2647 "For create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2648 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2651 key: :status_id_action,
2652 label: "Status ID action",
2653 type: [:tuple, {:list, :tuple}],
2655 "For fav / unfav or reblog / unreblog actions on the same status by the same user",
2656 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2659 key: :authentication,
2660 type: [:tuple, {:list, :tuple}],
2661 description: "For authentication create / password check / user existence check requests",
2662 suggestions: [{60_000, 15}]
2671 "Before enabling this you must add :esshd to mix.exs as one of the extra_applications " <>
2672 "and generate host keys in your priv dir with ssh-keygen -m PEM -N \"\" -b 2048 -t rsa -f ssh_host_rsa_key",
2677 description: "Enables SSH"
2682 description: "Dir with SSH keys",
2683 suggestions: ["/some/path/ssh_keys"]
2688 description: "Handler module",
2689 suggestions: ["Pleroma.BBS.Handler"]
2694 description: "Port to connect",
2695 suggestions: [10_022]
2698 key: :password_authenticator,
2700 description: "Authenticator module",
2701 suggestions: ["Pleroma.BBS.Authenticator"]
2707 label: "Mime Types",
2709 description: "Mime Types settings",
2716 "application/xml" => ["xml"],
2717 "application/xrd+xml" => ["xrd+xml"],
2718 "application/jrd+json" => ["jrd+json"],
2719 "application/activity+json" => ["activity+json"],
2720 "application/ld+json" => ["activity+json"]
2725 key: "application/xml",
2726 type: {:list, :string},
2727 suggestions: ["xml"]
2730 key: "application/xrd+xml",
2731 type: {:list, :string},
2732 suggestions: ["xrd+xml"]
2735 key: "application/jrd+json",
2736 type: {:list, :string},
2737 suggestions: ["jrd+json"]
2740 key: "application/activity+json",
2741 type: {:list, :string},
2742 suggestions: ["activity+json"]
2745 key: "application/ld+json",
2746 type: {:list, :string},
2747 suggestions: ["activity+json"]
2757 description: "Pleroma chat settings",
2770 description: "HTTP settings",
2775 type: [:string, :tuple],
2776 description: "Proxy URL",
2777 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}]
2780 key: :send_user_agent,
2785 type: [:string, :atom],
2787 "What user agent to use. Must be a string or an atom `:default`. Default value is `:default`.",
2788 suggestions: ["Pleroma", :default]
2793 description: "Adapter specific options",
2799 label: "SSL Options",
2800 description: "SSL options for HTTP adapter",
2804 type: {:list, :atom},
2805 description: "List of TLS version to use",
2806 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
2817 label: "Markup Settings",
2821 key: :allow_inline_images,
2825 key: :allow_headings,
2838 type: {:list, :module},
2840 "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
2841 suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
2851 key: :deny_follow_blocked,
2862 key: :restricted_nicknames,
2863 type: {:list, :string},
2864 description: "List of nicknames users may not register with.",
2883 "ostatus_subscribe",
2899 key: :email_blacklist,
2900 type: {:list, :string},
2901 description: "List of email domains users may not register with.",
2902 suggestions: ["mailinator.com", "maildrop.cc"]
2908 label: "CORS plug config",
2914 suggestions: [86_400]
2918 type: {:list, :string},
2919 suggestions: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]
2923 type: {:list, :string},
2926 "X-RateLimit-Reset",
2927 "X-RateLimit-Limit",
2928 "X-RateLimit-Remaining",
2939 type: {:list, :string},
2940 suggestions: ["Authorization", "Content-Type", "Idempotency-Key"]
2946 key: Pleroma.Web.Plugs.RemoteIp,
2949 `Pleroma.Web.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2950 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
2956 description: "Enable/disable the plug. Default: disabled."
2960 type: {:list, :string},
2962 A list of strings naming the HTTP headers to use when deriving the true client IP. Default: `["x-forwarded-for"]`.
2967 type: {:list, :string},
2969 "A list of upstream proxy IP subnets in CIDR notation from which we will parse the content of `headers`. Defaults to `[]`. IPv4 entries without a bitmask will be assumed to be /32 and IPv6 /128."
2973 type: {:list, :string},
2975 A list of reserved IP subnets in CIDR notation which should be ignored if found in `headers`. Defaults to `["127.0.0.0/8", "::1/128", "fc00::/7", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]`
2982 key: :web_cache_ttl,
2983 label: "Web cache TTL",
2986 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2992 "Activity pub routes (except question activities). Default: `nil` (no expiration).",
2993 suggestions: [30_000, nil]
2996 key: :activity_pub_question,
2998 description: "Activity pub routes (question activities). Default: `30_000` (30 seconds).",
2999 suggestions: [30_000]
3009 "Render profiles and posts using server-generated HTML that is viewable without using JavaScript",
3014 description: "Enables the rendering of static HTML. Default: disabled."
3022 description: "Configure feed rendering",
3027 description: "Configure title rendering",
3032 description: "Maximum number of characters before truncating title",
3038 description: "Replacement which will be used after truncating string",
3039 suggestions: ["..."]
3049 description: "Custom Runtime Modules",
3054 description: "A path to custom Elixir modules (such as MRF policies)."
3062 description: "Settings for notifications streamer",
3067 description: "Number of workers to send notifications",
3071 key: :overflow_workers,
3073 description: "Maximum number of workers created if pool is empty",
3080 key: :connections_pool,
3082 description: "Advanced settings for `Gun` connections pool",
3085 key: :connection_acquisition_wait,
3088 "Timeout to acquire a connection from pool. The total max time is this value multiplied by the number of retries. Default: 250ms.",
3092 key: :connection_acquisition_retries,
3095 "Number of attempts to acquire the connection from the pool if it is overloaded. Default: 5",
3099 key: :max_connections,
3101 description: "Maximum number of connections in the pool. Default: 250 connections.",
3105 key: :connect_timeout,
3107 description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.",
3111 key: :reclaim_multiplier,
3114 "Multiplier for the number of idle connection to be reclaimed if the pool is full. For example if the pool maxes out at 250 connections and this setting is set to 0.3, the pool will reclaim at most 75 idle connections if it's overloaded. Default: 0.1",
3123 description: "Advanced settings for `Gun` workers pools",
3125 Enum.map([:federation, :media, :upload, :default], fn pool_name ->
3129 description: "Settings for #{pool_name} pool.",
3134 description: "Maximum number of concurrent requests in the pool.",
3141 "Maximum number of requests waiting for other requests to finish. After this number is reached, the pool will start returning errrors when a new request is made",
3147 description: "Timeout for the pool while gun will wait for response",
3148 suggestions: [10_000]
3156 key: :hackney_pools,
3158 description: "Advanced settings for `Hackney` connections pools",
3163 description: "Settings for federation pool.",
3166 key: :max_connections,
3168 description: "Number workers in the pool.",
3174 description: "Timeout while `hackney` will wait for response.",
3175 suggestions: [150_000]
3182 description: "Settings for media pool.",
3185 key: :max_connections,
3187 description: "Number workers in the pool.",
3193 description: "Timeout while `hackney` will wait for response.",
3194 suggestions: [150_000]
3201 description: "Settings for upload pool.",
3204 key: :max_connections,
3206 description: "Number workers in the pool.",
3212 description: "Timeout while `hackney` will wait for response.",
3213 suggestions: [300_000]
3221 key: :restrict_unauthenticated,
3222 label: "Restrict Unauthenticated",
3225 "Disallow viewing timelines, user profiles and statuses for unauthenticated users.",
3230 description: "Settings for public and federated timelines.",
3235 description: "Disallow view public timeline."
3240 description: "Disallow view federated timeline."
3247 description: "Settings for user profiles.",
3252 description: "Disallow view local user profiles."
3257 description: "Disallow view remote user profiles."
3264 description: "Settings for statuses.",
3269 description: "Disallow view local statuses."
3274 description: "Disallow view remote statuses."
3282 key: Pleroma.Web.ApiSpec.CastAndValidate,
3289 "Enables strict input validation (useful in development, not recommended in production)"
3295 key: :instances_favicons,
3297 description: "Control favicons for instances",
3302 description: "Allow/disallow displaying and getting instances favicons"
3310 descriptions: "S3 service related settings",
3313 key: :access_key_id,
3315 description: "S3 access key ID",
3316 suggestions: ["AKIAQ8UKHTGIYN7DMWWJ"]
3319 key: :secret_access_key,
3321 description: "Secret access key",
3322 suggestions: ["JFGt+fgH1UQ7vLUQjpW+WvjTdV/UNzVxcwn7DkaeFKtBS5LvoXvIiME4NQBsT6ZZ"]
3327 description: "S3 host",
3328 suggestions: ["s3.eu-central-1.amazonaws.com"]
3336 description: "Installed frontends management",
3341 description: "Primary frontend, the one that is served for all pages by default",
3342 children: installed_frontend_options
3347 description: "Admin frontend",
3348 children: installed_frontend_options
3354 "A map containing available frontends and parameters for their installation.",
3355 children: frontend_options
3361 key: Pleroma.Web.Preload,
3363 description: "Preload-related settings",
3367 type: {:list, :module},
3368 description: "List of preload providers to enable",
3370 Pleroma.Web.Preload.Providers.Instance,
3371 Pleroma.Web.Preload.Providers.User,
3372 Pleroma.Web.Preload.Providers.Timelines,
3373 Pleroma.Web.Preload.Providers.StatusNet
3382 description: "Majic/libmagic configuration",
3387 description: "Number of majic workers to start.",
3394 key: Pleroma.User.Backup,
3396 description: "Account Backup",
3399 key: :purge_after_days,
3401 description: "Remove backup achives after N days",
3407 description: "Limit user to export not more often than once per N days",
3414 key: Pleroma.Web.Endpoint.MetricsExporter,
3416 description: "Prometheus app metrics endpoint configuration",
3421 description: "[Pleroma extension] Enables app metrics endpoint."
3425 type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
3427 "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
3431 type: [:boolean, :tuple],
3432 description: "Enables HTTP Basic Auth for app metrics endpoint.",
3433 suggestion: [false, {:basic, "myusername", "mypassword"}]
3438 description: "App metrics endpoint URI path.",
3439 suggestions: ["/api/pleroma/app_metrics"]
3444 description: "App metrics endpoint output format.",
3445 suggestions: [:text, :protobuf]