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}"
279 description: "Websocket based federation",
284 description: "Enable FedSockets"
290 key: Pleroma.Emails.Mailer,
292 description: "Mailer-related settings",
298 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
299 " or Swoosh.Adapters.Local for in-memory mailbox",
301 Swoosh.Adapters.SMTP,
302 Swoosh.Adapters.Sendgrid,
303 Swoosh.Adapters.Sendmail,
304 Swoosh.Adapters.Mandrill,
305 Swoosh.Adapters.Mailgun,
306 Swoosh.Adapters.Mailjet,
307 Swoosh.Adapters.Postmark,
308 Swoosh.Adapters.SparkPost,
309 Swoosh.Adapters.AmazonSES,
311 Swoosh.Adapters.SocketLabs,
312 Swoosh.Adapters.Gmail,
313 Swoosh.Adapters.Local
319 description: "Allow/disallow send emails"
322 group: {:subgroup, Swoosh.Adapters.SMTP},
325 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
326 suggestions: ["smtp.gmail.com"]
329 group: {:subgroup, Swoosh.Adapters.SMTP},
332 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
333 suggestions: ["pleroma"]
336 group: {:subgroup, Swoosh.Adapters.SMTP},
339 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
340 suggestions: ["password"]
343 group: {:subgroup, Swoosh.Adapters.SMTP},
347 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
350 group: {:subgroup, Swoosh.Adapters.SMTP},
354 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
355 suggestions: [:always, :never, :if_available]
358 group: {:subgroup, Swoosh.Adapters.SMTP},
361 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
362 suggestions: [:always, :never, :if_available]
365 group: {:subgroup, Swoosh.Adapters.SMTP},
368 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
372 group: {:subgroup, Swoosh.Adapters.SMTP},
375 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
379 group: {:subgroup, Swoosh.Adapters.SMTP},
381 label: "No MX lookups",
383 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
386 group: {:subgroup, Swoosh.Adapters.Sendgrid},
390 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
391 suggestions: ["my-api-key"]
394 group: {:subgroup, Swoosh.Adapters.Sendmail},
397 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
398 suggestions: ["/usr/bin/sendmail"]
401 group: {:subgroup, Swoosh.Adapters.Sendmail},
404 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
405 suggestions: ["-N delay,failure,success"]
408 group: {:subgroup, Swoosh.Adapters.Sendmail},
411 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
414 group: {:subgroup, Swoosh.Adapters.Mandrill},
418 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
419 suggestions: ["my-api-key"]
422 group: {:subgroup, Swoosh.Adapters.Mailgun},
426 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
427 suggestions: ["my-api-key"]
430 group: {:subgroup, Swoosh.Adapters.Mailgun},
433 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
434 suggestions: ["pleroma.com"]
437 group: {:subgroup, Swoosh.Adapters.Mailjet},
441 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
442 suggestions: ["my-api-key"]
445 group: {:subgroup, Swoosh.Adapters.Mailjet},
448 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
449 suggestions: ["my-secret-key"]
452 group: {:subgroup, Swoosh.Adapters.Postmark},
456 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
457 suggestions: ["my-api-key"]
460 group: {:subgroup, Swoosh.Adapters.SparkPost},
464 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
465 suggestions: ["my-api-key"]
468 group: {:subgroup, Swoosh.Adapters.SparkPost},
471 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
472 suggestions: ["https://api.sparkpost.com/api/v1"]
475 group: {:subgroup, Swoosh.Adapters.AmazonSES},
478 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
479 suggestions: ["us-east-1", "us-east-2"]
482 group: {:subgroup, Swoosh.Adapters.AmazonSES},
485 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
486 suggestions: ["aws-access-key"]
489 group: {:subgroup, Swoosh.Adapters.AmazonSES},
492 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
493 suggestions: ["aws-secret-key"]
496 group: {:subgroup, Swoosh.Adapters.Dyn},
500 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
501 suggestions: ["my-api-key"]
504 group: {:subgroup, Swoosh.Adapters.SocketLabs},
507 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
510 group: {:subgroup, Swoosh.Adapters.SocketLabs},
514 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
517 group: {:subgroup, Swoosh.Adapters.Gmail},
520 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
527 description: "`Swoosh.Adapters.Local` adapter specific settings",
530 group: {:subgroup, Swoosh.Adapters.Local},
533 description: "Run the preview server together as part of your app"
536 group: {:subgroup, Swoosh.Adapters.Local},
539 description: "The preview server port",
547 label: "URI Schemes",
549 description: "URI schemes related settings",
553 type: {:list, :string},
554 description: "List of the scheme part that is considered valid to be an URL",
579 description: "Instance-related settings",
584 description: "Name of the instance",
591 label: "Admin Email Address",
593 description: "Email used to reach an Administrator/Moderator of the instance",
600 label: "Sender Email Address",
602 description: "Envelope FROM address for mail sent via Pleroma",
611 "The instance's description. It can be seen in nodeinfo and `/api/v1/instance`",
619 description: "Posts character limit (CW/Subject included in the counter)",
627 description: "Character limit of the instance chat messages",
635 description: "Hard character limit beyond which remote posts will be dropped",
643 description: "File size limit of uploads (except for avatar, background, banner)",
649 key: :avatar_upload_limit,
651 description: "File size limit of user's profile avatars",
657 key: :background_upload_limit,
659 description: "File size limit of user's profile backgrounds",
665 key: :banner_upload_limit,
667 description: "File size limit of user's profile banners",
675 description: "A map with poll limits for local polls",
679 max_option_chars: 200,
681 max_expiration: 31_536_000
688 description: "Maximum number of options",
692 key: :max_option_chars,
694 description: "Maximum number of characters per option",
698 key: :min_expiration,
700 description: "Minimum expiration time (in seconds)",
704 key: :max_expiration,
706 description: "Maximum expiration time (in seconds)",
712 key: :registrations_open,
715 "Enable registrations for anyone. Invitations require this setting to be disabled."
718 key: :invites_enabled,
721 "Enable user invitations for admins (depends on `registrations_open` being disabled)"
724 key: :account_activation_required,
726 description: "Require users to confirm their emails before signing in"
729 key: :account_approval_required,
731 description: "Require users to be manually approved by an admin before signing in"
736 description: "Enable federation with other instances"
739 key: :federation_incoming_replies_max_depth,
740 label: "Fed. incoming replies max depth",
743 "Max. depth of reply-to and reply activities fetching on incoming federation, to prevent out-of-memory situations while" <>
744 " 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.",
750 key: :federation_reachability_timeout_days,
751 label: "Fed. reachability timeout days",
754 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
762 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
768 "Makes the client API in authenticated mode-only except for user-profiles." <>
769 " Useful for disabling the Local Timeline and The Whole Known Network. " <>
770 " Note: when setting to `false`, please also check `:restrict_unauthenticated` setting."
773 key: :quarantined_instances,
774 type: {:list, :string},
776 "List of ActivityPub instances where private (DMs, followers-only) activities will not be sent",
785 description: "Instance static directory",
791 key: :allowed_post_formats,
792 type: {:list, :string},
793 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
802 key: :extended_nickname_format,
805 "Enable to use extended local nicknames format (allows underscores/dashes)." <>
806 " This will break federation with older software for theses nicknames."
809 key: :cleanup_attachments,
812 Enable to remove associated attachments when status is removed.
813 This will not affect duplicates and attachments without status.
814 Enabling this will increase load to database when deleting statuses on larger instances.
818 key: :max_pinned_statuses,
820 description: "The maximum number of pinned statuses. 0 will disable the feature.",
828 key: :autofollowed_nicknames,
829 type: {:list, :string},
831 "Set to nicknames of (local) users that every new user should automatically follow"
834 key: :autofollowing_nicknames,
835 type: {:list, :string},
837 "Set to nicknames of (local) users that automatically follows every newly registered user"
840 key: :attachment_links,
842 description: "Enable to automatically add attachment link text to statuses"
845 key: :max_report_comment_size,
847 description: "The maximum size of the report comment. Default: 1000.",
853 key: :safe_dm_mentions,
854 label: "Safe DM mentions",
857 "If enabled, only mentions at the beginning of a post will be used to address people in direct messages." <>
858 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@admin please keep an eye on @bad_actor\")." <>
864 description: "If enabled, system data will be shown on `/api/pleroma/healthcheck`"
867 key: :remote_post_retention_days,
870 "The default amount of days to retain remote posts when pruning the database",
876 key: :user_bio_length,
878 description: "A user bio maximum length. Default: 5000.",
884 key: :user_name_length,
886 description: "A user name maximum length. Default: 100.",
892 key: :skip_thread_containment,
894 description: "Skip filtering out broken threads. Default: enabled."
897 key: :limit_to_local_content,
898 type: {:dropdown, :atom},
900 "Limit unauthenticated users to search for local statutes and users only. Default: `:unauthenticated`.",
908 key: :max_account_fields,
910 description: "The maximum number of custom fields in the user profile. Default: 10.",
916 key: :max_remote_account_fields,
919 "The maximum number of custom fields in the remote user profile. Default: 20.",
925 key: :account_field_name_length,
927 description: "An account field name maximum length. Default: 512.",
933 key: :account_field_value_length,
935 description: "An account field value maximum length. Default: 2048.",
941 key: :registration_reason_length,
943 description: "Maximum registration reason length. Default: 500.",
949 key: :external_user_synchronization,
951 description: "Enabling following/followers counters synchronization for external users"
954 key: :multi_factor_authentication,
956 description: "Multi-factor authentication settings",
959 totp: [digits: 6, period: 30],
960 backup_codes: [number: 5, length: 16]
966 label: "TOTP settings",
968 description: "TOTP settings",
969 suggestions: [digits: 6, period: 30],
976 "Determines the length of a one-time pass-code, in characters. Defaults to 6 characters."
983 "A period for which the TOTP code will be valid, in seconds. Defaults to 30 seconds."
990 description: "MFA backup codes settings",
991 suggestions: [number: 5, length: 16],
997 description: "Number of backup codes to generate."
1004 "Determines the length of backup one-time pass-codes, in characters. Defaults to 16 characters."
1011 key: :instance_thumbnail,
1012 type: {:string, :image},
1014 "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.",
1015 suggestions: ["/instance/thumbnail.jpeg"]
1018 key: :show_reactions,
1020 description: "Let favourites and emoji reactions be viewed through the API."
1028 description: "Welcome messages settings",
1031 key: :direct_message,
1033 descpiption: "Direct message settings",
1038 description: "Enables sending a direct message to newly registered users"
1043 description: "A message that will be sent to newly registered users",
1045 "Hi, @username! Welcome on board!"
1049 key: :sender_nickname,
1051 description: "The nickname of the local user that sends a welcome message",
1061 descpiption: "Chat message settings",
1066 description: "Enables sending a chat message to newly registered users"
1072 "A message that will be sent to newly registered users as a chat message",
1074 "Hello, welcome on board!"
1078 key: :sender_nickname,
1080 description: "The nickname of the local user that sends a welcome chat message",
1090 descpiption: "Email message settings",
1095 description: "Enables sending an email to newly registered users"
1099 type: [:string, :tuple],
1101 "Email address and/or nickname that will be used to send the welcome email.",
1103 {"Pleroma App", "welcome@pleroma.app"}
1110 "Subject of the welcome email. EEX template with user and instance_name variables can be used.",
1111 suggestions: ["Welcome to <%= instance_name%>"]
1117 "HTML content of the welcome email. EEX template with user and instance_name variables can be used.",
1118 suggestions: ["<h1>Hello <%= user.name%>. Welcome to <%= instance_name%></h1>"]
1124 "Text content of the welcome email. EEX template with user and instance_name variables can be used.",
1125 suggestions: ["Hello <%= user.name%>. \n Welcome to <%= instance_name%>\n"]
1134 description: "Logger-related settings",
1138 type: [:atom, :tuple, :module],
1140 "Where logs will be sent, :console - send logs to stdout, { ExSyslogger, :ex_syslogger } - to syslog, Quack.Logger - to Slack.",
1141 suggestions: [:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]
1149 label: "ExSyslogger",
1150 description: "ExSyslogger-related settings",
1154 type: {:dropdown, :atom},
1155 description: "Log level",
1156 suggestions: [:debug, :info, :warn, :error]
1162 "A string that's prepended to every message, and is typically set to the app name",
1163 suggestions: ["pleroma"]
1168 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1169 suggestions: ["$metadata[$level] $message"]
1173 type: {:list, :atom},
1174 suggestions: [:request_id]
1182 label: "Console Logger",
1183 description: "Console logger settings",
1187 type: {:dropdown, :atom},
1188 description: "Log level",
1189 suggestions: [:debug, :info, :warn, :error]
1194 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1195 suggestions: ["$metadata[$level] $message"]
1199 type: {:list, :atom},
1200 suggestions: [:request_id]
1207 label: "Quack Logger",
1208 description: "Quack-related settings",
1212 type: {:dropdown, :atom},
1213 description: "Log level",
1214 suggestions: [:debug, :info, :warn, :error]
1218 type: {:list, :atom},
1219 description: "Configure which metadata you want to report on",
1236 label: "Webhook URL",
1238 description: "Configure the Slack incoming webhook",
1239 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1245 key: :frontend_configurations,
1248 "This form can be used to configure a keyword list that keeps the configuration data for any " <>
1249 "kind of frontend. By default, settings for pleroma_fe and masto_fe are configured. If you want to " <>
1250 "add your own configuration your settings all fields must be complete.",
1254 label: "Pleroma FE",
1256 description: "Settings for Pleroma FE",
1259 alwaysShowSubjectInput: true,
1260 background: "/static/aurora_borealis.jpg",
1261 collapseMessageWithSubject: false,
1264 hideFilteredStatuses: false,
1265 hideMutedPosts: false,
1266 hidePostStats: false,
1267 hideSitename: false,
1268 hideUserStats: false,
1269 loginMethod: "password",
1270 logo: "/static/logo.png",
1273 minimalScopesMode: false,
1274 noAttachmentLinks: false,
1275 nsfwCensorImage: "/static/img/nsfw.74818f9.png",
1276 postContentType: "text/plain",
1277 redirectRootLogin: "/main/friends",
1278 redirectRootNoLogin: "/main/all",
1280 sidebarRight: false,
1281 showFeaturesPanel: true,
1282 showInstanceSpecificPanel: false,
1283 subjectLineBehavior: "email",
1284 theme: "pleroma-dark",
1285 webPushNotifications: false
1290 key: :alwaysShowSubjectInput,
1291 label: "Always show subject input",
1293 description: "When disabled, auto-hide the subject field if it's empty"
1297 type: {:string, :image},
1299 "URL of the background, unless viewing a user profile with a background that is set",
1300 suggestions: ["/images/city.jpg"]
1303 key: :collapseMessageWithSubject,
1304 label: "Collapse message with subject",
1307 "When a message has a subject (aka Content Warning), collapse it by default"
1311 label: "PleromaFE Chat",
1313 description: "Disables PleromaFE Chat component"
1319 description: "Enables green text on lines prefixed with the > character"
1322 key: :hideFilteredStatuses,
1323 label: "Hide Filtered Statuses",
1325 description: "Hides filtered statuses from timelines"
1328 key: :hideMutedPosts,
1329 label: "Hide Muted Posts",
1331 description: "Hides muted statuses from timelines"
1334 key: :hidePostStats,
1335 label: "Hide post stats",
1337 description: "Hide notices statistics (repeats, favorites, ...)"
1341 label: "Hide Sitename",
1343 description: "Hides instance name from PleromaFE banner"
1346 key: :hideUserStats,
1347 label: "Hide user stats",
1350 "Hide profile statistics (posts, posts per day, followers, followings, ...)"
1354 type: {:string, :image},
1355 description: "URL of the logo, defaults to Pleroma's logo",
1356 suggestions: ["/static/logo.png"]
1360 label: "Logo margin",
1363 "Allows you to adjust vertical margins between logo boundary and navbar borders. " <>
1364 "The idea is that to have logo's image without any extra margins and instead adjust them to your need in layout.",
1365 suggestions: [".1em"]
1372 "By default it assumes logo used will be monochrome with alpha channel to be compatible with both light and dark themes. " <>
1373 "If you want a colorful logo you must disable logoMask."
1376 key: :minimalScopesMode,
1377 label: "Minimal scopes mode",
1380 "Limit scope selection to Direct, User default, and Scope of post replying to. " <>
1381 "Also prevents replying to a DM with a public post from PleromaFE."
1384 key: :nsfwCensorImage,
1385 label: "NSFW Censor Image",
1386 type: {:string, :image},
1388 "URL of the image to use for hiding NSFW media attachments in the timeline",
1389 suggestions: ["/static/img/nsfw.74818f9.png"]
1392 key: :postContentType,
1393 label: "Post Content Type",
1394 type: {:dropdown, :atom},
1395 description: "Default post formatting option",
1396 suggestions: ["text/plain", "text/html", "text/markdown", "text/bbcode"]
1399 key: :redirectRootNoLogin,
1400 label: "Redirect root no login",
1403 "Relative URL which indicates where to redirect when a user isn't logged in",
1404 suggestions: ["/main/all"]
1407 key: :redirectRootLogin,
1408 label: "Redirect root login",
1411 "Relative URL which indicates where to redirect when a user is logged in",
1412 suggestions: ["/main/friends"]
1416 label: "Scope copy",
1418 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1422 label: "Sidebar on Right",
1424 description: "Change alignment of sidebar and panels to the right"
1427 key: :showFeaturesPanel,
1428 label: "Show instance features panel",
1431 "Enables panel displaying functionality of the instance on the About page"
1434 key: :showInstanceSpecificPanel,
1435 label: "Show instance specific panel",
1437 description: "Whether to show the instance's custom panel"
1440 key: :subjectLineBehavior,
1441 label: "Subject line behavior",
1443 description: "Allows changing the default behaviour of subject lines in replies.
1444 `email`: copy and preprend re:, as in email,
1445 `masto`: copy verbatim, as in Mastodon,
1446 `noop`: don't copy the subject.",
1447 suggestions: ["email", "masto", "noop"]
1452 description: "Which theme to use. Available themes are defined in styles.json",
1453 suggestions: ["pleroma-dark"]
1461 description: "Settings for Masto FE",
1464 showInstanceSpecificPanel: true
1469 key: :showInstanceSpecificPanel,
1470 label: "Show instance specific panel",
1472 description: "Whenether to show the instance's specific panel"
1483 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1487 type: {:keyword, :map},
1489 "Keyword of mascots, each element must contain both an URL and a mime_type key",
1492 url: "/images/pleroma-fox-tan-smol.png",
1493 mime_type: "image/png"
1495 pleroma_fox_tan_shy: %{
1496 url: "/images/pleroma-fox-tan-shy.png",
1497 mime_type: "image/png"
1502 key: :default_mascot,
1505 "This will be used as the default mascot on MastoFE. Default: `:pleroma_fox_tan`",
1511 key: :default_user_avatar,
1512 type: {:string, :image},
1513 description: "URL of the default user avatar",
1514 suggestions: ["/images/avi.png"]
1523 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE.",
1527 type: {:list, :map},
1528 description: "Describe the icons of the app",
1531 src: "/static/logo.png"
1534 src: "/static/icon.png",
1538 src: "/static/icon.ico",
1539 sizes: "72x72 96x96 128x128 256x256"
1546 description: "Describe the theme color of the app",
1547 suggestions: ["#282c37", "mediumpurple"]
1550 key: :background_color,
1552 description: "Describe the background color of the app",
1553 suggestions: ["#191b22", "aliceblue"]
1563 description: "General MRF settings",
1567 type: [:module, {:list, :module}],
1569 "A list of MRF policies enabled. Module names are shortened (removed leading `Pleroma.Web.ActivityPub.MRF.` part), but on adding custom module you need to use full name.",
1570 suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF}
1574 label: "MRF transparency",
1577 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
1580 key: :transparency_exclusions,
1581 label: "MRF transparency exclusions",
1582 type: {:list, :string},
1584 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value.",
1595 description: "Media proxy",
1600 description: "Enables proxying of remote media to the instance's proxy"
1607 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.",
1608 suggestions: ["https://example.com"]
1616 provider: Pleroma.Web.MediaProxy.Invalidation.Script
1622 description: "Enables media cache object invalidation."
1627 description: "Module which will be used to purge objects from the cache.",
1629 Pleroma.Web.MediaProxy.Invalidation.Script,
1630 Pleroma.Web.MediaProxy.Invalidation.Http
1637 label: "Proxy Options",
1639 description: "Options for Pleroma.ReverseProxy",
1641 redirect_on_failure: false,
1642 max_body_length: 25 * 1_048_576,
1643 max_read_duration: 30_000,
1645 follow_redirect: true,
1651 key: :redirect_on_failure,
1654 "Redirects the client to the real remote URL if there's any HTTP errors. " <>
1655 "Any error during body processing will not be redirected as the response is chunked."
1658 key: :max_body_length,
1661 "Limits the content length to be approximately the " <>
1662 "specified length. It is validated with the `content-length` header and also verified when proxying."
1665 key: :max_read_duration,
1667 description: "Timeout (in milliseconds) of GET request to remote URI."
1673 description: "HTTP options",
1678 description: "Adapter specific options",
1683 label: "SSL Options",
1684 description: "SSL options for HTTP adapter",
1688 type: {:list, :atom},
1689 description: "List of TLS version to use",
1690 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
1699 type: [:string, :tuple],
1700 description: "Proxy URL",
1701 suggestions: ["127.0.0.1:8123", {:socks5, :localhost, 9050}]
1709 type: {:list, :string},
1710 description: "List of hosts with scheme to bypass the mediaproxy",
1711 suggestions: ["http://example.com"]
1717 key: :media_preview_proxy,
1719 description: "Media preview proxy",
1725 "Enables proxying of remote media preview to the instance's proxy. Requires enabled media proxy."
1728 key: :thumbnail_max_width,
1731 "Max width of preview thumbnail for images (video preview always has original dimensions)."
1734 key: :thumbnail_max_height,
1737 "Max height of preview thumbnail for images (video preview always has original dimensions)."
1740 key: :image_quality,
1742 description: "Quality of the output. Ranges from 0 (min quality) to 100 (max quality)."
1745 key: :min_content_length,
1748 "Min content length to perform preview, in bytes. If greater than 0, media smaller in size will be served as is, without thumbnailing."
1754 key: Pleroma.Web.MediaProxy.Invalidation.Http,
1756 description: "HTTP invalidate settings",
1761 description: "HTTP method of request. Default: :purge"
1765 type: {:keyword, :string},
1766 description: "HTTP headers of request",
1767 suggestions: [{"x-refresh", 1}]
1772 description: "Request options",
1776 type: {:map, :string}
1784 key: Pleroma.Web.MediaProxy.Invalidation.Script,
1786 description: "Script invalidate settings",
1791 description: "Path to shell script. Which will run purge cache.",
1792 suggestions: ["./installation/nginx-cache-purge.sh.example"]
1800 description: "Gopher settings",
1805 description: "Enables the gopher interface"
1811 description: "IP address to bind to",
1812 suggestions: [{0, 0, 0, 0}]
1817 description: "Port to bind to",
1823 description: "Port advertised in URLs (optional, defaults to port)",
1831 label: "ActivityPub",
1833 description: "ActivityPub-related settings",
1836 key: :unfollow_blocked,
1838 description: "Whether blocks result in people getting unfollowed"
1841 key: :outgoing_blocks,
1843 description: "Whether to federate blocks to other instances"
1846 key: :sign_object_fetches,
1848 description: "Sign object fetches with HTTP signatures"
1851 key: :note_replies_output_limit,
1854 "The number of Note replies' URIs to be included with outgoing federation (`5` to match Mastodon hardcoded value, `0` to disable the output)"
1857 key: :follow_handshake_timeout,
1859 description: "Following handshake timeout",
1866 key: :http_security,
1867 label: "HTTP security",
1869 description: "HTTP security settings",
1874 description: "Whether the managed content security policy is enabled"
1880 description: "Whether to additionally send a Strict-Transport-Security header"
1884 label: "STS max age",
1886 description: "The maximum age for the Strict-Transport-Security header if sent",
1887 suggestions: [31_536_000]
1891 label: "CT max age",
1893 description: "The maximum age for the Expect-CT header if sent",
1894 suggestions: [2_592_000]
1897 key: :referrer_policy,
1899 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1900 suggestions: ["same-origin", "no-referrer"]
1904 label: "Report URI",
1906 description: "Adds the specified URL to report-uri and report-to group in CSP header",
1907 suggestions: ["https://example.com/report-uri"]
1912 group: :web_push_encryption,
1913 key: :vapid_details,
1914 label: "Vapid Details",
1917 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it.",
1923 "A mailto link for the administrative contact." <>
1924 " It's best if this email is not a personal email address, but rather a group email to the instance moderation team.",
1925 suggestions: ["mailto:moderators@pleroma.com"]
1930 description: "VAPID public key",
1931 suggestions: ["Public key"]
1936 description: "VAPID private key",
1937 suggestions: ["Private key"]
1943 key: Pleroma.Captcha,
1945 description: "Captcha-related settings",
1950 description: "Whether the captcha should be shown on registration"
1955 description: "The method/service to use for captcha",
1956 suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
1959 key: :seconds_valid,
1961 description: "The time in seconds for which the captcha is valid",
1968 key: Pleroma.Captcha.Kocaptcha,
1971 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1972 " here: https://github.com/koto-bank/kocaptcha. The default endpoint (https://captcha.kotobank.ch) is hosted by the developer.",
1977 description: "The kocaptcha endpoint to use",
1978 suggestions: ["https://captcha.kotobank.ch"]
1984 label: "Pleroma Admin Token",
1987 "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)",
1992 description: "Admin token",
1994 "Please use a high entropy string or UUID"
2004 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
2006 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
2007 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
2008 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
2009 (see https://github.com/sorentwo/oban/issues/52).
2014 type: {:dropdown, :atom},
2015 description: "Logs verbose mode",
2016 suggestions: [false, :error, :warn, :info, :debug]
2020 type: {:keyword, :integer},
2022 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
2024 activity_expiration: 10,
2025 attachments_cleanup: 5,
2027 federator_incoming: 50,
2028 federator_outgoing: 50,
2030 scheduled_activities: 10,
2036 key: :activity_expiration,
2038 description: "Activity expiration queue",
2044 description: "Backup queue",
2048 key: :attachments_cleanup,
2050 description: "Attachment deletion queue",
2056 description: "Background queue",
2060 key: :federator_incoming,
2062 description: "Incoming federation queue",
2066 key: :federator_outgoing,
2068 description: "Outgoing federation queue",
2074 description: "Email sender queue, see Pleroma.Emails.Mailer",
2078 key: :scheduled_activities,
2080 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
2084 key: :transmogrifier,
2086 description: "Transmogrifier queue",
2092 description: "Web push notifications queue",
2099 type: {:list, :tuple},
2100 description: "Settings for cron background jobs",
2102 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
2103 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
2112 description: "Includes custom worker options not interpretable directly by `Oban`",
2116 type: {:keyword, :integer},
2117 description: "Max retry attempts for failed jobs, per `Oban` queue",
2119 federator_incoming: 5,
2120 federator_outgoing: 5
2127 key: Pleroma.Web.Metadata,
2129 description: "Metadata-related settings",
2133 type: {:list, :module},
2134 description: "List of metadata providers to enable",
2136 Pleroma.Web.Metadata.Providers.OpenGraph,
2137 Pleroma.Web.Metadata.Providers.TwitterCard,
2138 Pleroma.Web.Metadata.Providers.RelMe,
2139 Pleroma.Web.Metadata.Providers.Feed
2144 label: "Unfurl NSFW",
2146 description: "When enabled NSFW attachments will be shown in previews"
2155 "If enabled the instance will parse metadata from attached links to generate link previews",
2160 description: "Enables RichMedia parsing of URLs"
2164 type: {:list, :string},
2165 description: "List of hosts which will be ignored by the metadata parser",
2166 suggestions: ["accounts.google.com", "xss.website"]
2170 label: "Ignore TLD",
2171 type: {:list, :string},
2172 description: "List TLDs (top-level domains) which will ignore for parse metadata",
2173 suggestions: ["local", "localdomain", "lan"]
2177 type: {:list, :module},
2179 "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.",
2181 Pleroma.Web.RichMedia.Parsers.OEmbed,
2182 Pleroma.Web.RichMedia.Parsers.TwitterCard
2187 label: "TTL setters",
2188 type: {:list, :module},
2190 "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.",
2192 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl
2196 key: :failure_backoff,
2199 "Amount of milliseconds after request failure, during which the request will not be retried.",
2200 suggestions: [60_000]
2206 key: Pleroma.Formatter,
2210 "Configuration for Pleroma's link formatter which parses mentions, hashtags, and URLs.",
2214 type: [:string, :boolean],
2215 description: "Specify the class to be added to the generated link. Disable to clear.",
2216 suggestions: ["auto-linker", false]
2220 type: [:string, :boolean],
2221 description: "Override the rel attribute. Disable to clear.",
2222 suggestions: ["ugc", "noopener noreferrer", false]
2227 description: "Link URLs will open in a new window/tab."
2231 type: [:integer, :boolean],
2233 "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
2234 suggestions: [15, false]
2239 description: "Strip the scheme prefix."
2244 description: "Link URLs with rarely used schemes (magnet, ipfs, irc, etc.)"
2248 type: [:atom, :boolean],
2250 "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)",
2251 suggestions: [:no_scheme, true]
2257 key: Pleroma.ScheduledActivity,
2259 description: "Scheduled activities settings",
2262 key: :daily_user_limit,
2265 "The number of scheduled activities a user is allowed to create in a single day. Default: 25.",
2269 key: :total_user_limit,
2272 "The number of scheduled activities a user is allowed to create in total. Default: 300.",
2278 description: "Whether scheduled activities are sent to the job queue to be executed"
2284 key: Pleroma.Workers.PurgeExpiredActivity,
2286 description: "Expired activities settings",
2291 description: "Enables expired activities addition & deletion"
2296 description: "Minimum lifetime for ephemeral activity (in seconds)",
2303 label: "Pleroma Authenticator",
2305 description: "Authenticator",
2308 key: Pleroma.Web.Auth.Authenticator,
2310 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2320 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2321 " will be verified by trying to authenticate (bind) to a LDAP server." <>
2322 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2323 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2328 description: "Enables LDAP authentication"
2333 description: "LDAP server hostname",
2334 suggestions: ["localhosts"]
2339 description: "LDAP port, e.g. 389 or 636",
2340 suggestions: [389, 636]
2346 description: "Enable to use SSL, usually implies the port 636"
2350 label: "SSL options",
2352 description: "Additional SSL options",
2353 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2358 description: "Path to file with PEM encoded cacerts",
2359 suggestions: ["path/to/file/with/PEM/cacerts"]
2364 description: "Type of cert verification",
2365 suggestions: [:verify_peer]
2373 description: "Enable to use STARTTLS, usually implies the port 389"
2377 label: "TLS options",
2379 description: "Additional TLS options",
2380 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2385 description: "Path to file with PEM encoded cacerts",
2386 suggestions: ["path/to/file/with/PEM/cacerts"]
2391 description: "Type of cert verification",
2392 suggestions: [:verify_peer]
2399 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2400 suggestions: ["dc=example,dc=com"]
2407 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2416 description: "Authentication / authorization settings",
2419 key: :enforce_oauth_admin_scope_usage,
2420 label: "Enforce OAuth admin scope usage",
2423 "OAuth admin scope requirement toggle. " <>
2424 "If enabled, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token " <>
2425 "(client app must support admin scopes). If disabled and token doesn't have admin scope(s), " <>
2426 "`is_admin` user flag grants access to admin-specific actions."
2429 key: :auth_template,
2432 "Authentication form template. By default it's `show.html` which corresponds to `lib/pleroma/web/templates/o_auth/o_auth/show.html.ee`.",
2433 suggestions: ["show.html"]
2436 key: :oauth_consumer_template,
2437 label: "OAuth consumer template",
2440 "OAuth consumer mode authentication form template. By default it's `consumer.html` which corresponds to" <>
2441 " `lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex`.",
2442 suggestions: ["consumer.html"]
2445 key: :oauth_consumer_strategies,
2446 label: "OAuth consumer strategies",
2447 type: {:list, :string},
2449 "The list of enabled OAuth consumer strategies. By default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2450 " Each entry in this space-delimited string should be of format \"strategy\" or \"strategy:dependency\"" <>
2451 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2452 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2458 key: :email_notifications,
2460 description: "Email notifications settings",
2466 "emails of \"what you've missed\" for users who have been inactive for a while",
2470 schedule: "0 0 * * 0",
2472 inactivity_threshold: 7
2480 description: "Globally enable or disable digest emails"
2486 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\".",
2487 suggestions: ["0 0 * * 0"]
2492 description: "Minimum interval between digest emails to one user",
2496 key: :inactivity_threshold,
2498 description: "Minimum user inactivity threshold",
2507 key: Pleroma.Emails.UserEmail,
2509 description: "Email template settings",
2513 type: {:string, :image},
2514 description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
2515 suggestions: ["some/path/logo.png"]
2520 description: "A map with color settings for email templates.",
2523 link_color: "#d8a070",
2524 background_color: "#2C3645",
2525 content_background_color: "#1B2635",
2526 header_color: "#d8a070",
2527 text_color: "#b9b9ba",
2528 text_muted_color: "#b9b9ba"
2535 suggestions: ["#d8a070"]
2538 key: :background_color,
2540 suggestions: ["#2C3645"]
2543 key: :content_background_color,
2545 suggestions: ["#1B2635"]
2550 suggestions: ["#d8a070"]
2555 suggestions: ["#b9b9ba"]
2558 key: :text_muted_color,
2560 suggestions: ["#b9b9ba"]
2568 key: Pleroma.Emails.NewUsersDigestEmail,
2570 description: "New users admin email digest",
2575 description: "Enables new users admin digest email when `true`"
2584 description: "Configure OAuth 2 provider capabilities",
2587 key: :token_expires_in,
2589 description: "The lifetime in seconds of the access token",
2593 key: :issue_new_refresh_token,
2596 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2599 key: :clean_expired_tokens,
2601 description: "Enable a background job to clean expired OAuth tokens. Default: disabled."
2611 key: :shortcode_globs,
2612 type: {:list, :string},
2613 description: "Location of custom emoji files. * can be used as a wildcard.",
2614 suggestions: ["/emoji/custom/**/*.png"]
2617 key: :pack_extensions,
2618 type: {:list, :string},
2620 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2621 suggestions: [".png", ".gif"]
2625 type: {:keyword, {:list, :string}},
2627 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the group name" <>
2628 " and the value is the location or array of locations. * can be used as a wildcard.",
2630 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2634 key: :default_manifest,
2637 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2638 " Currently only one manifest can be added (no arrays).",
2639 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2642 key: :shared_pack_cache_seconds_per_file,
2643 label: "Shared pack cache s/file",
2646 "When an emoji pack is shared, the archive is created and cached in memory" <>
2647 " for this amount of seconds multiplied by the number of files.",
2657 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2661 type: [:tuple, {:list, :tuple}],
2662 description: "For the search requests (account & status search etc.)",
2663 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2667 type: [:tuple, {:list, :tuple}],
2668 description: "For requests to timelines (each timeline has it's own limiter)",
2669 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2672 key: :app_account_creation,
2673 type: [:tuple, {:list, :tuple}],
2674 description: "For registering user accounts from the same IP address",
2675 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2678 key: :relations_actions,
2679 type: [:tuple, {:list, :tuple}],
2680 description: "For actions on relationships with all users (follow, unfollow)",
2681 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2684 key: :relation_id_action,
2685 label: "Relation ID action",
2686 type: [:tuple, {:list, :tuple}],
2687 description: "For actions on relation with a specific user (follow, unfollow)",
2688 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2691 key: :statuses_actions,
2692 type: [:tuple, {:list, :tuple}],
2694 "For create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2695 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2698 key: :status_id_action,
2699 label: "Status ID action",
2700 type: [:tuple, {:list, :tuple}],
2702 "For fav / unfav or reblog / unreblog actions on the same status by the same user",
2703 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2706 key: :authentication,
2707 type: [:tuple, {:list, :tuple}],
2708 description: "For authentication create / password check / user existence check requests",
2709 suggestions: [{60_000, 15}]
2718 "Before enabling this you must add :esshd to mix.exs as one of the extra_applications " <>
2719 "and generate host keys in your priv dir with ssh-keygen -m PEM -N \"\" -b 2048 -t rsa -f ssh_host_rsa_key",
2724 description: "Enables SSH"
2729 description: "Dir with SSH keys",
2730 suggestions: ["/some/path/ssh_keys"]
2735 description: "Handler module",
2736 suggestions: ["Pleroma.BBS.Handler"]
2741 description: "Port to connect",
2742 suggestions: [10_022]
2745 key: :password_authenticator,
2747 description: "Authenticator module",
2748 suggestions: ["Pleroma.BBS.Authenticator"]
2754 label: "Mime Types",
2756 description: "Mime Types settings",
2763 "application/xml" => ["xml"],
2764 "application/xrd+xml" => ["xrd+xml"],
2765 "application/jrd+json" => ["jrd+json"],
2766 "application/activity+json" => ["activity+json"],
2767 "application/ld+json" => ["activity+json"]
2772 key: "application/xml",
2773 type: {:list, :string},
2774 suggestions: ["xml"]
2777 key: "application/xrd+xml",
2778 type: {:list, :string},
2779 suggestions: ["xrd+xml"]
2782 key: "application/jrd+json",
2783 type: {:list, :string},
2784 suggestions: ["jrd+json"]
2787 key: "application/activity+json",
2788 type: {:list, :string},
2789 suggestions: ["activity+json"]
2792 key: "application/ld+json",
2793 type: {:list, :string},
2794 suggestions: ["activity+json"]
2804 description: "Pleroma chat settings",
2817 description: "HTTP settings",
2822 type: [:string, :tuple],
2823 description: "Proxy URL",
2824 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}]
2827 key: :send_user_agent,
2832 type: [:string, :atom],
2834 "What user agent to use. Must be a string or an atom `:default`. Default value is `:default`.",
2835 suggestions: ["Pleroma", :default]
2840 description: "Adapter specific options",
2846 label: "SSL Options",
2847 description: "SSL options for HTTP adapter",
2851 type: {:list, :atom},
2852 description: "List of TLS version to use",
2853 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
2864 label: "Markup Settings",
2868 key: :allow_inline_images,
2872 key: :allow_headings,
2885 type: {:list, :module},
2887 "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
2888 suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
2898 key: :deny_follow_blocked,
2909 key: :restricted_nicknames,
2910 type: {:list, :string},
2911 description: "List of nicknames users may not register with.",
2930 "ostatus_subscribe",
2946 key: :email_blacklist,
2947 type: {:list, :string},
2948 description: "List of email domains users may not register with.",
2949 suggestions: ["mailinator.com", "maildrop.cc"]
2955 label: "CORS plug config",
2961 suggestions: [86_400]
2965 type: {:list, :string},
2966 suggestions: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]
2970 type: {:list, :string},
2973 "X-RateLimit-Reset",
2974 "X-RateLimit-Limit",
2975 "X-RateLimit-Remaining",
2986 type: {:list, :string},
2987 suggestions: ["Authorization", "Content-Type", "Idempotency-Key"]
2993 key: Pleroma.Web.Plugs.RemoteIp,
2996 `Pleroma.Web.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2997 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
3003 description: "Enable/disable the plug. Default: disabled."
3007 type: {:list, :string},
3009 A list of strings naming the HTTP headers to use when deriving the true client IP. Default: `["x-forwarded-for"]`.
3014 type: {:list, :string},
3016 "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."
3020 type: {:list, :string},
3022 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"]`
3029 key: :web_cache_ttl,
3030 label: "Web cache TTL",
3033 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
3039 "Activity pub routes (except question activities). Default: `nil` (no expiration).",
3040 suggestions: [30_000, nil]
3043 key: :activity_pub_question,
3045 description: "Activity pub routes (question activities). Default: `30_000` (30 seconds).",
3046 suggestions: [30_000]
3056 "Render profiles and posts using server-generated HTML that is viewable without using JavaScript",
3061 description: "Enables the rendering of static HTML. Default: disabled."
3069 description: "Configure feed rendering",
3074 description: "Configure title rendering",
3079 description: "Maximum number of characters before truncating title",
3085 description: "Replacement which will be used after truncating string",
3086 suggestions: ["..."]
3096 description: "Custom Runtime Modules",
3101 description: "A path to custom Elixir modules (such as MRF policies)."
3109 description: "Settings for notifications streamer",
3114 description: "Number of workers to send notifications",
3118 key: :overflow_workers,
3120 description: "Maximum number of workers created if pool is empty",
3127 key: :connections_pool,
3129 description: "Advanced settings for `Gun` connections pool",
3132 key: :connection_acquisition_wait,
3135 "Timeout to acquire a connection from pool. The total max time is this value multiplied by the number of retries. Default: 250ms.",
3139 key: :connection_acquisition_retries,
3142 "Number of attempts to acquire the connection from the pool if it is overloaded. Default: 5",
3146 key: :max_connections,
3148 description: "Maximum number of connections in the pool. Default: 250 connections.",
3152 key: :connect_timeout,
3154 description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.",
3158 key: :reclaim_multiplier,
3161 "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",
3170 description: "Advanced settings for `Gun` workers pools",
3172 Enum.map([:federation, :media, :upload, :default], fn pool_name ->
3176 description: "Settings for #{pool_name} pool.",
3181 description: "Maximum number of concurrent requests in the pool.",
3188 "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",
3194 description: "Timeout for the pool while gun will wait for response",
3195 suggestions: [10_000]
3203 key: :hackney_pools,
3205 description: "Advanced settings for `Hackney` connections pools",
3210 description: "Settings for federation pool.",
3213 key: :max_connections,
3215 description: "Number workers in the pool.",
3221 description: "Timeout while `hackney` will wait for response.",
3222 suggestions: [150_000]
3229 description: "Settings for media pool.",
3232 key: :max_connections,
3234 description: "Number workers in the pool.",
3240 description: "Timeout while `hackney` will wait for response.",
3241 suggestions: [150_000]
3248 description: "Settings for upload pool.",
3251 key: :max_connections,
3253 description: "Number workers in the pool.",
3259 description: "Timeout while `hackney` will wait for response.",
3260 suggestions: [300_000]
3268 key: :restrict_unauthenticated,
3269 label: "Restrict Unauthenticated",
3272 "Disallow viewing timelines, user profiles and statuses for unauthenticated users.",
3277 description: "Settings for public and federated timelines.",
3282 description: "Disallow view public timeline."
3287 description: "Disallow view federated timeline."
3294 description: "Settings for user profiles.",
3299 description: "Disallow view local user profiles."
3304 description: "Disallow view remote user profiles."
3311 description: "Settings for statuses.",
3316 description: "Disallow view local statuses."
3321 description: "Disallow view remote statuses."
3329 key: Pleroma.Web.ApiSpec.CastAndValidate,
3336 "Enables strict input validation (useful in development, not recommended in production)"
3342 key: :instances_favicons,
3344 description: "Control favicons for instances",
3349 description: "Allow/disallow displaying and getting instances favicons"
3357 descriptions: "S3 service related settings",
3360 key: :access_key_id,
3362 description: "S3 access key ID",
3363 suggestions: ["AKIAQ8UKHTGIYN7DMWWJ"]
3366 key: :secret_access_key,
3368 description: "Secret access key",
3369 suggestions: ["JFGt+fgH1UQ7vLUQjpW+WvjTdV/UNzVxcwn7DkaeFKtBS5LvoXvIiME4NQBsT6ZZ"]
3374 description: "S3 host",
3375 suggestions: ["s3.eu-central-1.amazonaws.com"]
3383 description: "Installed frontends management",
3388 description: "Primary frontend, the one that is served for all pages by default",
3389 children: installed_frontend_options
3394 description: "Admin frontend",
3395 children: installed_frontend_options
3401 "A map containing available frontends and parameters for their installation.",
3402 children: frontend_options
3408 key: Pleroma.Web.Preload,
3410 description: "Preload-related settings",
3414 type: {:list, :module},
3415 description: "List of preload providers to enable",
3417 Pleroma.Web.Preload.Providers.Instance,
3418 Pleroma.Web.Preload.Providers.User,
3419 Pleroma.Web.Preload.Providers.Timelines,
3420 Pleroma.Web.Preload.Providers.StatusNet
3429 description: "Majic/libmagic configuration",
3434 description: "Number of majic workers to start.",
3441 key: Pleroma.User.Backup,
3443 description: "Account Backup",
3446 key: :purge_after_days,
3448 description: "Remove backup achives after N days",
3454 description: "Limit user to export not more often than once per N days",
3461 key: Pleroma.Web.Endpoint.MetricsExporter,
3463 description: "Prometheus app metrics endpoint configuration",
3468 description: "[Pleroma extension] Enables app metrics endpoint."
3472 type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
3474 "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
3478 type: [:boolean, :tuple],
3479 description: "Enables HTTP Basic Auth for app metrics endpoint.",
3480 suggestion: [false, {:basic, "myusername", "mypassword"}]
3485 description: "App metrics endpoint URI path.",
3486 suggestions: ["/api/pleroma/app_metrics"]
3491 description: "App metrics endpoint output format.",
3492 suggestions: [:text, :protobuf]