2 alias Pleroma.Docs.Generator
7 {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
8 {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
15 config :pleroma, :config_description, [
20 description: "Upload general settings",
25 description: "Module which will be used for uploads",
27 Generator.uploaders_list()
32 type: {:list, :module},
33 description: "List of filter modules for uploads",
35 Generator.filters_list()
42 "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`",
51 description: "Base url for the uploads, needed if you use CDN",
53 "https://cdn-host.com"
60 "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected.",
69 description: "Proxy options, see `Pleroma.ReverseProxy` documentation"
75 key: Pleroma.Uploaders.Local,
77 description: "Local uploader-related settings",
82 description: "Path where user uploads will be saved",
91 key: Pleroma.Uploaders.S3,
93 description: "S3 uploader-related settings",
98 description: "S3 bucket",
104 key: :bucket_namespace,
106 description: "S3 bucket namespace",
107 suggestions: ["pleroma"]
110 key: :public_endpoint,
112 description: "S3 endpoint",
113 suggestions: ["https://s3.amazonaws.com"]
116 key: :truncated_namespace,
119 "If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
120 " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in public_endpoint.",
127 key: Pleroma.Upload.Filter.Mogrify,
129 description: "Uploads mogrify filter settings",
133 type: [:string, {:list, :string}, {:list, :tuple}],
134 description: "List of actions for the mogrify command",
137 ["strip", "auto-orient"],
139 ["strip", "auto-orient", {"implode", "1"}]
146 key: Pleroma.Upload.Filter.AnonymizeFilename,
148 description: "Filter replaces the filename of the upload",
154 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
155 " filename extension by using {extension}, for example custom-file-name.{extension}",
157 "custom-file-name.{extension}",
165 key: Pleroma.Emails.Mailer,
167 description: "Mailer-related settings",
173 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
174 " or Swoosh.Adapters.Local for in-memory mailbox",
176 Swoosh.Adapters.SMTP,
177 Swoosh.Adapters.Sendgrid,
178 Swoosh.Adapters.Sendmail,
179 Swoosh.Adapters.Mandrill,
180 Swoosh.Adapters.Mailgun,
181 Swoosh.Adapters.Mailjet,
182 Swoosh.Adapters.Postmark,
183 Swoosh.Adapters.SparkPost,
184 Swoosh.Adapters.AmazonSES,
186 Swoosh.Adapters.SocketLabs,
187 Swoosh.Adapters.Gmail
193 description: "Allow/disallow send emails",
200 group: {:subgroup, Swoosh.Adapters.SMTP},
203 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
204 suggestions: ["smtp.gmail.com"]
207 group: {:subgroup, Swoosh.Adapters.SMTP},
210 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
211 suggestions: ["pleroma"]
214 group: {:subgroup, Swoosh.Adapters.SMTP},
217 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
218 suggestions: ["password"]
221 group: {:subgroup, Swoosh.Adapters.SMTP},
224 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
225 suggestions: [true, false]
228 group: {:subgroup, Swoosh.Adapters.SMTP},
231 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
232 suggestions: [:always, :never, :if_available]
235 group: {:subgroup, Swoosh.Adapters.SMTP},
238 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
239 suggestions: [:always, :never, :if_available]
242 group: {:subgroup, Swoosh.Adapters.SMTP},
245 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
249 group: {:subgroup, Swoosh.Adapters.SMTP},
252 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
256 group: {:subgroup, Swoosh.Adapters.SMTP},
259 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
260 suggestions: [true, false]
263 group: {:subgroup, Swoosh.Adapters.Sendgrid},
266 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
267 suggestions: ["my-api-key"]
270 group: {:subgroup, Swoosh.Adapters.Sendmail},
273 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
274 suggestions: ["/usr/bin/sendmail"]
277 group: {:subgroup, Swoosh.Adapters.Sendmail},
280 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
281 suggestions: ["-N delay,failure,success"]
284 group: {:subgroup, Swoosh.Adapters.Sendmail},
287 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
288 suggestions: [true, false]
291 group: {:subgroup, Swoosh.Adapters.Mandrill},
294 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
295 suggestions: ["my-api-key"]
298 group: {:subgroup, Swoosh.Adapters.Mailgun},
301 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
302 suggestions: ["my-api-key"]
305 group: {:subgroup, Swoosh.Adapters.Mailgun},
308 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
309 suggestions: ["pleroma.com"]
312 group: {:subgroup, Swoosh.Adapters.Mailjet},
315 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
316 suggestions: ["my-api-key"]
319 group: {:subgroup, Swoosh.Adapters.Mailjet},
322 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
323 suggestions: ["my-secret-key"]
326 group: {:subgroup, Swoosh.Adapters.Postmark},
329 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
330 suggestions: ["my-api-key"]
333 group: {:subgroup, Swoosh.Adapters.SparkPost},
336 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
337 suggestions: ["my-api-key"]
340 group: {:subgroup, Swoosh.Adapters.SparkPost},
343 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
344 suggestions: ["https://api.sparkpost.com/api/v1"]
347 group: {:subgroup, Swoosh.Adapters.AmazonSES},
350 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
351 suggestions: ["us-east-1", "us-east-2"]
354 group: {:subgroup, Swoosh.Adapters.AmazonSES},
357 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
358 suggestions: ["aws-access-key"]
361 group: {:subgroup, Swoosh.Adapters.AmazonSES},
364 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
365 suggestions: ["aws-secret-key"]
368 group: {:subgroup, Swoosh.Adapters.Dyn},
371 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
372 suggestions: ["my-api-key"]
375 group: {:subgroup, Swoosh.Adapters.SocketLabs},
378 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting",
382 group: {:subgroup, Swoosh.Adapters.SocketLabs},
385 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting",
389 group: {:subgroup, Swoosh.Adapters.Gmail},
392 description: "`Swoosh.Adapters.Gmail` adapter specific setting",
401 description: "URI schemes related settings",
405 type: {:list, :string},
406 description: "List of the scheme part that is considered valid to be an URL",
432 description: "Instance-related settings",
437 description: "Name of the instance",
445 description: "Email used to reach an Administrator/Moderator of the instance",
453 description: "Email used for notifications",
461 description: "The instance's description, can be seen in nodeinfo and /api/v1/instance",
469 description: "Posts character limit (CW/Subject included in the counter)",
477 description: "Hard character limit beyond which remote posts will be dropped",
485 description: "File size limit of uploads (except for avatar, background, banner)",
491 key: :avatar_upload_limit,
493 description: "File size limit of user's profile avatars",
499 key: :background_upload_limit,
501 description: "File size limit of user's profile backgrounds",
507 key: :banner_upload_limit,
509 description: "File size limit of user's profile banners",
517 description: "A map with poll limits for local polls",
521 max_option_chars: 200,
523 max_expiration: 31_536_000
530 description: "Maximum number of options",
534 key: :max_option_chars,
536 description: "Maximum number of characters per option",
540 key: :min_expiration,
542 description: "Minimum expiration time (in seconds)",
546 key: :max_expiration,
548 description: "Maximum expiration time (in seconds)",
554 key: :registrations_open,
556 description: "Enable registrations for anyone, invitations can be enabled when false",
563 key: :invites_enabled,
565 description: "Enable user invitations for admins (depends on registrations_open: false)",
572 key: :account_activation_required,
574 description: "Require users to confirm their emails before signing in",
583 description: "Enable federation with other instances",
590 key: :federation_incoming_replies_max_depth,
593 "Max. depth of reply-to activities fetching on incoming federation, to prevent out-of-memory situations while" <>
594 " 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",
600 key: :federation_reachability_timeout_days,
603 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
609 key: :federation_publisher_modules,
610 type: [:list, :module],
611 description: "List of modules for federation publishing",
613 Pleroma.Web.ActivityPub.Publisher,
621 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance",
628 key: :rewrite_policy,
629 type: {:list, :module},
630 description: "A list of MRF policies enabled",
632 Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
640 "Makes the client API in authentificated mode-only except for user-profiles." <>
641 " Useful for disabling the Local Timeline and The Whole Known Network",
648 key: :quarantined_instances,
649 type: {:list, :string},
651 "List of ActivityPub instances where private(DMs, followers-only) activities will not be send",
658 key: :managed_config,
661 "Whenether the config for pleroma-fe is configured in this config or in static/config.json",
670 description: "Instance static directory",
676 key: :allowed_post_formats,
677 type: {:list, :string},
678 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
689 key: :mrf_transparency,
692 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)",
699 key: :mrf_transparency_exclusions,
700 type: {:list, :string},
702 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value",
708 key: :extended_nickname_format,
711 "Set to true to use extended local nicknames format (allows underscores/dashes)." <>
712 " This will break federation with older software for theses nicknames",
719 key: :max_pinned_statuses,
721 description: "The maximum number of pinned statuses. 0 will disable the feature",
729 key: :autofollowed_nicknames,
730 type: {:list, :string},
732 "Set to nicknames of (local) users that every new user should automatically follow",
741 key: :no_attachment_links,
744 "Set to true to disable automatically adding attachment link text to statuses",
751 key: :welcome_message,
754 "A message that will be send to a newly registered users as a direct message",
756 "Hi, @username! Welcome to the board!",
761 key: :welcome_user_nickname,
763 description: "The nickname of the local user that sends the welcome message",
770 key: :max_report_comment_size,
772 description: "The maximum size of the report comment (Default: 1000)",
778 key: :safe_dm_mentions,
781 "If set to true, only mentions at the beginning of a post will be used to address people in direct messages." <>
782 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@friend hey i really don't like @enemy\")." <>
792 description: "If set to true, system data will be shown on /api/pleroma/healthcheck",
799 key: :remote_post_retention_days,
802 "The default amount of days to retain remote posts when pruning the database",
808 key: :user_bio_length,
810 description: "A user bio maximum length (default: 5000)",
816 key: :user_name_length,
818 description: "A user name maximum length (default: 100)",
824 key: :skip_thread_containment,
826 description: "Skip filter out broken threads. The default is true",
833 key: :limit_to_local_content,
834 type: [:atom, false],
836 "Limit unauthenticated users to search for local statutes and users only. The default is :unauthenticated ",
844 key: :dynamic_configuration,
847 "Allow transferring configuration to DB with the subsequent customization from Admin api. Defaults to `false`",
854 key: :max_account_fields,
856 description: "The maximum number of custom fields in the user profile (default: 10)",
862 key: :max_remote_account_fields,
865 "The maximum number of custom fields in the remote user profile (default: 20)",
871 key: :account_field_name_length,
873 description: "An account field name maximum length (default: 512)",
879 key: :account_field_value_length,
881 description: "An account field value maximum length (default: 2048)",
887 key: :external_user_synchronization,
889 description: "Enabling following/followers counters synchronization for external users",
900 description: "Logger-related settings",
904 type: [:atom, :tuple, :module],
906 "Where logs will be send, :console - send logs to stdout, {ExSyslogger, :ex_syslogger} - to syslog, Quack.Logger - to Slack.",
907 suggestions: [[:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]]
915 description: "ExSyslogger-related settings",
920 description: "Log level",
921 suggestions: [:debug, :info, :warn, :error]
927 "A string that's prepended to every message, and is typically set to the app name",
928 suggestions: ["pleroma"]
933 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
934 suggestions: ["$metadata[$level] $message"]
938 type: {:list, :atom},
940 suggestions: [[:request_id]]
948 description: "Console logger settings",
953 description: "Log level",
954 suggestions: [:debug, :info, :warn, :error]
959 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
960 suggestions: ["$metadata[$level] $message"]
964 type: {:list, :atom},
966 suggestions: [[:request_id]]
973 description: "Quack-related settings",
978 description: "Log level",
979 suggestions: [:debug, :info, :warn, :error]
983 type: {:list, :atom},
984 description: "Configure which metadata you want to report on",
1002 description: "Configure the Slack incoming webhook",
1003 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1009 key: :frontend_configurations,
1011 description: "A keyword list that keeps the configuration data for any kind of frontend",
1016 description: "Settings for Pleroma FE",
1019 theme: "pleroma-dark",
1020 logo: "/static/logo.png",
1021 background: "/images/city.jpg",
1022 redirectRootNoLogin: "/main/all",
1023 redirectRootLogin: "/main/friends",
1024 showInstanceSpecificPanel: true,
1025 scopeOptionsEnabled: false,
1026 formattingOptionsEnabled: false,
1027 collapseMessageWithSubject: false,
1028 hidePostStats: false,
1029 hideUserStats: false,
1031 subjectLineBehavior: "email",
1032 alwaysShowSubjectInput: true
1039 description: "Which theme to use, they are defined in styles.json",
1040 suggestions: ["pleroma-dark"]
1045 description: "URL of the logo, defaults to Pleroma's logo",
1046 suggestions: ["/static/logo.png"]
1052 "URL of the background, unless viewing a user profile with a background that is set",
1053 suggestions: ["/images/city.jpg"]
1056 key: :redirectRootNoLogin,
1059 "relative URL which indicates where to redirect when a user isn't logged in",
1060 suggestions: ["/main/all"]
1063 key: :redirectRootLogin,
1066 "relative URL which indicates where to redirect when a user is logged in",
1067 suggestions: ["/main/friends"]
1070 key: :showInstanceSpecificPanel,
1072 description: "Whenether to show the instance's specific panel",
1073 suggestions: [true, false]
1076 key: :scopeOptionsEnabled,
1078 description: "Enable setting an notice visibility and subject/CW when posting",
1079 suggestions: [true, false]
1082 key: :formattingOptionsEnabled,
1085 "Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats",
1086 suggestions: [true, false]
1089 key: :collapseMessageWithSubject,
1092 "When a message has a subject(aka Content Warning), collapse it by default",
1093 suggestions: [true, false]
1096 key: :hidePostStats,
1098 description: "Hide notices statistics(repeats, favorites, ...)",
1099 suggestions: [true, false]
1102 key: :hideUserStats,
1105 "Hide profile statistics(posts, posts per day, followers, followings, ...)",
1106 suggestions: [true, false]
1112 "Copy the scope (private/unlisted/public) in replies to posts by default",
1113 suggestions: [true, false]
1116 key: :subjectLineBehavior,
1118 description: "Allows changing the default behaviour of subject lines in replies.
1119 `email`: Copy and preprend re:, as in email,
1120 `masto`: Copy verbatim, as in Mastodon,
1121 `noop`: Don't copy the subjec",
1122 suggestions: ["email", "masto", "noop"]
1125 key: :alwaysShowSubjectInput,
1127 description: "When set to false, auto-hide the subject field when it's empty",
1128 suggestions: [true, false]
1135 description: "Settings for Masto FE",
1138 showInstanceSpecificPanel: true
1143 key: :showInstanceSpecificPanel,
1145 description: "Whenether to show the instance's specific panel",
1146 suggestions: [true, false]
1157 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1163 "Keyword of mascots, each element MUST contain both a url and a mime_type key",
1167 url: "/images/pleroma-fox-tan-smol.png",
1168 mime_type: "image/png"
1170 pleroma_fox_tan_shy: %{
1171 url: "/images/pleroma-fox-tan-shy.png",
1172 mime_type: "image/png"
1178 key: :default_mascot,
1181 "This will be used as the default mascot on MastoFE (default: :pleroma_fox_tan)",
1192 description: "Message Rewrite Facility",
1195 key: :media_removal,
1196 type: {:list, :string},
1197 description: "List of instances to remove medias from",
1198 suggestions: ["example.com", "*.example.com"]
1202 type: {:list, :string},
1203 description: "List of instances to put medias as NSFW(sensitive) from",
1204 suggestions: ["example.com", "*.example.com"]
1207 key: :federated_timeline_removal,
1208 type: {:list, :string},
1210 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1211 suggestions: ["example.com", "*.example.com"]
1215 type: {:list, :string},
1216 description: "List of instances to reject any activities from",
1217 suggestions: ["example.com", "*.example.com"]
1221 type: {:list, :string},
1222 description: "List of instances to accept any activities from",
1223 suggestions: ["example.com", "*.example.com"]
1226 key: :report_removal,
1227 type: {:list, :string},
1228 description: "List of instances to reject reports from",
1229 suggestions: ["example.com", "*.example.com"]
1232 key: :avatar_removal,
1233 type: {:list, :string},
1234 description: "List of instances to strip avatars from",
1235 suggestions: ["example.com", "*.example.com"]
1238 key: :banner_removal,
1239 type: {:list, :string},
1240 description: "List of instances to strip banners from",
1241 suggestions: ["example.com", "*.example.com"]
1250 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1251 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1256 description: "Matches a series of regular expressions against the actor field",
1259 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1267 key: :mrf_rejectnonpublic,
1272 key: :allow_followersonly,
1274 description: "whether to allow followers-only posts",
1275 suggestions: [true, false]
1280 description: "whether to allow direct messages",
1281 suggestions: [true, false]
1287 key: :mrf_hellthread,
1289 description: "Block messages with too much mentions",
1292 key: :delist_threshold,
1295 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1296 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable",
1300 key: :reject_threshold,
1303 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable",
1312 description: "Reject or Word-Replace messages with a keyword or regex",
1316 type: [:string, :regex],
1318 "A list of patterns which result in message being rejected, each pattern can be a string or a regular expression",
1319 suggestions: ["foo", ~r/foo/iu]
1322 key: :federated_timeline_removal,
1323 type: [:string, :regex],
1325 "A list of patterns which result in message being removed from federated timelines (a.k.a unlisted), each pattern can be a string or a regular expression",
1326 suggestions: ["foo", ~r/foo/iu]
1330 type: [{:string, :string}, {:regex, :string}],
1332 "A list of patterns which result in message being removed from federated timelines (a.k.a unlisted), each pattern can be a string or a regular expression",
1333 suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
1341 description: "Block messages which mention a user",
1345 type: {:list, :string},
1346 description: "A list of actors, for which to drop any posts mentioning",
1347 suggestions: [["actor1", "actor2"]]
1353 key: :mrf_vocabulary,
1355 description: "Filter messages which belong to certain activity vocabularies",
1359 type: {:list, :string},
1361 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1362 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1366 type: {:list, :string},
1368 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1369 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1375 # key: :mrf_user_allowlist,
1378 # "The keys in this section are the domain names that the policy should apply to." <>
1379 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1381 # ["example.org": ["https://example.org/users/admin"]],
1383 # ["example.org": ["https://example.org/users/admin"]]
1391 description: "Media proxy",
1396 description: "Enables proxying of remote media to the instance's proxy",
1397 suggestions: [true, false]
1403 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts",
1404 suggestions: ["https://example.com"]
1409 description: "Options for Pleroma.ReverseProxy",
1410 suggestions: [[max_body_length: 25 * 1_048_576, redirect_on_failure: false]]
1414 type: {:list, :string},
1415 description: "List of domains to bypass the mediaproxy",
1416 suggestions: ["example.com"]
1424 description: "Gopher settings",
1429 description: "Enables the gopher interface",
1430 suggestions: [true, false]
1435 description: "IP address to bind to",
1436 suggestions: [{0, 0, 0, 0}]
1441 description: "Port to bind to",
1447 description: "Port advertised in urls (optional, defaults to port)",
1454 key: Pleroma.Web.Endpoint,
1456 description: "Phoenix endpoint configuration",
1461 description: "http protocol configuration",
1463 [port: 8080, ip: {127, 0, 0, 1}]
1468 type: {:list, :tuple},
1469 description: "dispatch settings",
1474 {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
1475 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
1476 {Phoenix.Transports.WebSocket,
1477 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
1478 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
1480 # end copied from config.exs
1495 description: "port",
1505 description: "configuration for generating urls",
1507 [host: "example.com", port: 2020, scheme: "https"]
1513 description: "Host",
1521 description: "port",
1529 description: "Scheme",
1538 key: :instrumenters,
1539 type: {:list, :module},
1541 suggestions: [Pleroma.Web.Endpoint.Instrumenter]
1547 suggestions: ["https"]
1550 key: :secret_key_base,
1553 suggestions: ["aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl"]
1559 suggestions: ["CqaoopA2"]
1562 key: :render_errors,
1565 suggestions: [[view: Pleroma.Web.ErrorView, accepts: ~w(json)]],
1571 suggestions: [Pleroma.Web.ErrorView]
1575 type: {:list, :string},
1577 suggestions: ["json"]
1585 suggestions: [[name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]],
1591 suggestions: [Pleroma.PubSub]
1597 suggestions: [Phoenix.PubSub.PG2]
1602 key: :secure_cookie_flag,
1605 suggestions: [true, false]
1608 key: :extra_cookie_attrs,
1609 type: {:list, :string},
1611 suggestions: ["SameSite=Lax"]
1619 description: "ActivityPub-related settings",
1622 key: :unfollow_blocked,
1624 description: "Whether blocks result in people getting unfollowed",
1625 suggestions: [true, false]
1628 key: :outgoing_blocks,
1630 description: "Whether to federate blocks to other instances",
1631 suggestions: [true, false]
1634 key: :sign_object_fetches,
1636 description: "Sign object fetches with HTTP signatures",
1637 suggestions: [true, false]
1640 key: :follow_handshake_timeout,
1642 description: "Following handshake timeout",
1649 key: :http_security,
1651 description: "HTTP security settings",
1656 description: "Whether the managed content security policy is enabled",
1657 suggestions: [true, false]
1662 description: "Whether to additionally send a Strict-Transport-Security header",
1663 suggestions: [true, false]
1668 description: "The maximum age for the Strict-Transport-Security header if sent",
1669 suggestions: [31_536_000]
1674 description: "The maximum age for the Expect-CT header if sent",
1675 suggestions: [2_592_000]
1678 key: :referrer_policy,
1680 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1681 suggestions: ["same-origin", "no-referrer"]
1686 description: "Adds the specified url to report-uri and report-to group in CSP header",
1687 suggestions: ["https://example.com/report-uri"]
1692 group: :web_push_encryption,
1693 key: :vapid_details,
1696 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1702 "a mailto link for the administrative contact." <>
1703 " It's best if this email is not a personal email address, but rather a group email so that if a person leaves an organization," <>
1704 " is unavailable for an extended period, or otherwise can't respond, someone else on the list can",
1705 suggestions: ["Subject"]
1710 description: "VAPID public key",
1711 suggestions: ["Public key"]
1716 description: "VAPID private keyn",
1717 suggestions: ["Private key"]
1723 key: Pleroma.Captcha,
1725 description: "Captcha-related settings",
1730 description: "Whether the captcha should be shown on registration",
1731 suggestions: [true, false]
1736 description: "The method/service to use for captcha",
1737 suggestions: [Pleroma.Captcha.Kocaptcha]
1740 key: :seconds_valid,
1742 description: "The time in seconds for which the captcha is valid",
1749 key: Pleroma.Captcha.Kocaptcha,
1752 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1753 " here: https://github.com/koto-bank/kocaptcha. The default endpoint https://captcha.kotobank.ch is hosted by the developer",
1758 description: "the kocaptcha endpoint to use",
1759 suggestions: ["https://captcha.kotobank.ch"]
1767 "Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the 'admin_token' parameter",
1772 description: "Token",
1773 suggestions: ["some_random_token"]
1778 group: :pleroma_job_queue,
1781 description: "[Deprecated] Replaced with `Oban`/`:queues` (keeping the same format)",
1786 key: Pleroma.Web.Federator.RetryQueue,
1788 description: "[Deprecated] See `Oban` and `:workers` sections for configuration notes",
1793 description: "[Deprecated] Replaced as `Oban`/`:queues`/`:outgoing_federation` value",
1803 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1805 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1806 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1807 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1808 (see https://github.com/sorentwo/oban/issues/52).
1814 description: "Application's Ecto repo",
1815 suggestions: [Pleroma.Repo]
1820 description: "Logs verbose mode",
1821 suggestions: [false, true]
1825 type: [:atom, :tuple],
1827 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1828 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1834 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1837 activity_expiration: 10,
1839 federator_incoming: 50,
1840 federator_outgoing: 50,
1842 scheduled_activities: 10,
1849 key: :activity_expiration,
1851 description: "Activity expiration queue",
1857 description: "Background queue",
1861 key: :federator_incoming,
1863 description: "Incoming federation queue",
1867 key: :federator_outgoing,
1869 description: "Outgoing federation queue",
1875 description: "Email sender queue, see Pleroma.Emails.Mailer",
1879 key: :scheduled_activities,
1881 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1885 key: :transmogrifier,
1887 description: "Transmogrifier queue",
1893 description: "Web push notifications queue",
1904 description: "Includes custom worker options not interpretable directly by `Oban`",
1909 description: "Max retry attempts for failed jobs, per `Oban` queue",
1912 federator_incoming: 5,
1913 federator_outgoing: 5
1921 key: Pleroma.Web.Metadata,
1923 decsription: "Metadata-related settings",
1927 type: {:list, :module},
1928 description: "List of metadata providers to enable",
1931 Pleroma.Web.Metadata.Providers.OpenGraph,
1932 Pleroma.Web.Metadata.Providers.TwitterCard,
1933 Pleroma.Web.Metadata.Providers.RelMe
1940 description: "If set to true nsfw attachments will be shown in previews",
1958 "if enabled the instance will parse metadata from attached links to generate link previews",
1959 suggestions: [true, false]
1963 type: {:list, :string},
1964 description: "list of hosts which will be ignored by the metadata parser",
1965 suggestions: [["accounts.google.com", "xss.website"]]
1969 type: {:list, :string},
1970 description: "list TLDs (top-level domains) which will ignore for parse metadata",
1971 suggestions: [["local", "localdomain", "lan"]]
1975 type: {:list, :module},
1976 description: "list of Rich Media parsers",
1978 Generator.richmedia_parsers()
1983 type: {:list, :module},
1984 description: "list of rich media ttl setters",
1986 [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
1993 key: :fetch_initial_posts,
1995 description: "Fetching initial posts settings",
2001 "if enabled, when a new user is federated with, fetch some of their latest posts",
2002 suggestions: [true, false]
2007 description: "the amount of pages to fetch",
2013 group: :auto_linker,
2016 description: "Configuration for the auto_linker library",
2020 type: [:string, false],
2021 description: "specify the class to be added to the generated link. false to clear",
2022 suggestions: ["auto-linker", false]
2026 type: [:string, false],
2027 description: "override the rel attribute. false to clear",
2028 suggestions: ["noopener noreferrer", false]
2033 description: "set to false to remove target='_blank' attribute",
2034 suggestions: [true, false]
2039 description: "Set to true to link urls with schema http://google.com",
2040 suggestions: [true, false]
2044 type: [:integer, false],
2046 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
2047 suggestions: [15, false]
2052 description: "Strip the scheme prefix",
2053 suggestions: [true, false]
2058 description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)",
2059 suggestions: [true, false]
2065 key: Pleroma.ScheduledActivity,
2067 description: "Scheduled activities settings",
2070 key: :daily_user_limit,
2073 "the number of scheduled activities a user is allowed to create in a single day (Default: 25)",
2077 key: :total_user_limit,
2080 "the number of scheduled activities a user is allowed to create in total (Default: 300)",
2086 description: "whether scheduled activities are sent to the job queue to be executed",
2087 suggestions: [true, false]
2093 key: Pleroma.ActivityExpiration,
2095 description: "Expired activity settings",
2100 description: "whether expired activities will be sent to the job queue to be deleted",
2101 suggestions: [true, false]
2108 description: "Authenticator",
2111 key: Pleroma.Web.Auth.Authenticator,
2114 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2123 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2124 " will be verified by trying to authenticate (bind) to an LDAP server." <>
2125 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2126 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2131 description: "enables LDAP authentication",
2132 suggestions: [true, false]
2137 description: "LDAP server hostname",
2138 suggestions: ["localhosts"]
2143 description: "LDAP port, e.g. 389 or 636",
2144 suggestions: [389, 636]
2149 description: "true to use SSL, usually implies the port 636",
2150 suggestions: [true, false]
2155 description: "additional SSL options",
2161 description: "true to start TLS, usually implies the port 389",
2162 suggestions: [true, false]
2167 description: "additional TLS options",
2173 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2174 suggestions: ["dc=example,dc=com"]
2180 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2189 description: "Authentication / authorization settings",
2192 key: :auth_template,
2195 "authentication form template. By default it's show.html which corresponds to lib/pleroma/web/templates/o_auth/o_auth/show.html.ee",
2196 suggestions: ["show.html"]
2199 key: :oauth_consumer_template,
2202 "OAuth consumer mode authentication form template. By default it's consumer.html which corresponds to" <>
2203 " lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex",
2204 suggestions: ["consumer.html"]
2207 key: :oauth_consumer_strategies,
2210 "the list of enabled OAuth consumer strategies; by default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2211 " Each entry in this space-delimited string should be of format <strategy> or <strategy>:<dependency>" <>
2212 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2213 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2219 key: :email_notifications,
2221 description: "Email notifications settings",
2227 "emails of \"what you've missed\" for users who have been inactive for a while",
2231 schedule: "0 0 * * 0",
2233 inactivity_threshold: 7
2240 description: "globally enable or disable digest emails",
2241 suggestions: [true, false]
2247 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\"",
2248 suggestions: ["0 0 * * 0"]
2253 description: "Minimum interval between digest emails to one user",
2257 key: :inactivity_threshold,
2259 description: "Minimum user inactivity threshold",
2268 key: Pleroma.Emails.UserEmail,
2270 description: "Email template settings",
2274 # type: [:string, nil],
2275 description: "a path to a custom logo. Set it to nil to use the default Pleroma logo",
2276 suggestions: ["some/path/logo.png", nil]
2281 description: "a map with color settings for email templates.",
2284 link_color: "#d8a070",
2285 background_color: "#2C3645",
2286 content_background_color: "#1B2635",
2287 header_color: "#d8a070",
2288 text_color: "#b9b9ba",
2289 text_muted_color: "#b9b9ba"
2297 suggestions: ["#d8a070"]
2300 key: :background_color,
2303 suggestions: ["#2C3645"]
2306 key: :content_background_color,
2309 suggestions: ["#1B2635"]
2315 suggestions: ["#d8a070"]
2321 suggestions: ["#b9b9ba"]
2324 key: :text_muted_color,
2327 suggestions: ["#b9b9ba"]
2337 description: "Configure OAuth 2 provider capabilities",
2340 key: :token_expires_in,
2342 description: "The lifetime in seconds of the access token",
2346 key: :issue_new_refresh_token,
2349 "Keeps old refresh token or generate new refresh token when to obtain an access token",
2350 suggestions: [true, false]
2353 key: :clean_expired_tokens,
2355 description: "Enable a background job to clean expired oauth tokens. Defaults to false",
2356 suggestions: [true, false]
2359 key: :clean_expired_tokens_interval,
2362 "Interval to run the job to clean expired tokens. Defaults to 86_400_000 (24 hours).",
2363 suggestions: [86_400_000]
2374 key: :shortcode_globs,
2375 type: {:list, :string},
2376 description: "Location of custom emoji files. * can be used as a wildcard",
2377 suggestions: [["/emoji/custom/**/*.png"]]
2380 key: :pack_extensions,
2381 type: {:list, :string},
2383 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2384 suggestions: [[".png", ".gif"]]
2390 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the groupname" <>
2391 " and the value the location or array of locations. * can be used as a wildcard",
2394 # Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
2395 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2400 key: :default_manifest,
2403 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2404 " Currently only one manifest can be added (no arrays)",
2405 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2413 description: "Database related settings",
2418 description: "If RUM indexes should be used. Defaults to false",
2419 suggestions: [true, false]
2428 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2432 type: [:tuple, {:list, :tuple}],
2433 description: "for the search requests (account & status search etc.)",
2434 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2437 key: :app_account_creation,
2438 type: [:tuple, {:list, :tuple}],
2439 description: "for registering user accounts from the same IP address",
2440 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2443 key: :relations_actions,
2444 type: [:tuple, {:list, :tuple}],
2445 description: "for actions on relations with all users (follow, unfollow)",
2446 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2449 key: :relation_id_action,
2450 type: [:tuple, {:list, :tuple}],
2451 description: "for actions on relation with a specific user (follow, unfollow)",
2452 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2455 key: :statuses_actions,
2456 type: [:tuple, {:list, :tuple}],
2458 "for create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2459 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2462 key: :status_id_action,
2463 type: [:tuple, {:list, :tuple}],
2465 "for fav / unfav or reblog / unreblog actions on the same status by the same user",
2466 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2469 key: :authentication,
2470 type: [:tuple, {:list, :tuple}],
2471 description: "for authentication create / password check / user existence check requests",
2472 suggestions: [{60_000, 15}]
2480 "To enable simple command line interface accessible over ssh, add a setting like this to your configuration file",
2485 description: "Enables ssh",
2486 suggestions: [true, false]
2491 description: "Dir with ssh keys",
2492 suggestions: ["/some/path/ssh_keys"]
2497 description: "Handler module",
2498 suggestions: ["Pleroma.BBS.Handler"]
2503 description: "Port to connect",
2504 suggestions: [10_022]
2507 key: :password_authenticator,
2509 description: "Authenticator module",
2510 suggestions: ["Pleroma.BBS.Authenticator"]
2517 description: "Mime types",
2525 "application/xml" => ["xml"],
2526 "application/xrd+xml" => ["xrd+xml"],
2527 "application/jrd+json" => ["jrd+json"],
2528 "application/activity+json" => ["activity+json"],
2529 "application/ld+json" => ["activity+json"]
2534 key: "application/xml",
2535 type: {:list, :string},
2537 suggestions: [["xml"]]
2540 key: "application/xrd+xml",
2541 type: {:list, :string},
2543 suggestions: [["xrd+xml"]]
2546 key: "application/jrd+json",
2547 type: {:list, :string},
2549 suggestions: [["jrd+json"]]
2552 key: "application/activity+json",
2553 type: {:list, :string},
2555 suggestions: [["activity+json"]]
2558 key: "application/ld+json",
2559 type: {:list, :string},
2561 suggestions: [["activity+json"]]
2570 description: "Tesla settings",
2575 description: "Tesla adapter",
2576 suggestions: [Tesla.Adapter.Hackney]
2584 description: "Pleroma chat settings",
2590 suggestions: [true, false]
2603 description: "Enables suggestions",
2607 key: :third_party_engine,
2609 description: "URL for third party engine",
2611 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}"
2617 description: "Request timeout to third party engine",
2618 suggestions: [300_000]
2623 description: "Limit for suggestions",
2630 suggestions: ["https://vinayaka.distsn.org"]
2636 key: Pleroma.Web.Endpoint.MetricsExporter,
2638 description: "Prometheus settings",
2643 description: "API endpoint with metrics",
2644 suggestions: ["/api/pleroma/app_metrics"]
2649 group: :http_signatures,
2651 description: "HTTP Signatures settings",
2657 suggestions: [Pleroma.Signature]
2663 key: Pleroma.Uploaders.MDII,
2671 suggestions: ["https://mdii.sakura.ne.jp/mdii-post.cgi"]
2677 suggestions: ["https://mdii.sakura.ne.jp"]
2685 description: "HTTP settings",
2689 type: [:string, :atom, nil],
2691 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}, nil]
2694 key: :send_user_agent,
2697 suggestions: [true, false]
2706 # Workaround for remote server certificate chain issues
2707 partial_chain: &:hackney_connect.partial_chain/1,
2708 # We don't support TLS v1.3 yet
2709 versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
2723 key: :allow_inline_images,
2726 suggestions: [true, false]
2729 key: :allow_headings,
2732 suggestions: [true, false]
2738 suggestions: [true, false]
2744 suggestions: [true, false]
2748 type: {:list, :module},
2750 suggestions: [[Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]]
2761 key: :deny_follow_blocked,
2764 suggestions: [true, false]
2770 key: :mrf_normalize_markup,
2778 suggestions: [Pleroma.HTML.Scrubber.Default]
2789 key: :restricted_nicknames,
2790 type: {:list, :string},
2811 "ostatus_subscribe",
2838 suggestions: [86_400]
2842 type: {:list, :string},
2844 suggestions: [["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]]
2853 "X-RateLimit-Reset",
2854 "X-RateLimit-Limit",
2855 "X-RateLimit-Remaining",
2865 suggestions: [true, false]
2869 type: {:list, :string},
2871 suggestions: [["Authorization", "Content-Type", "Idempotency-Key"]]
2877 key: :web_cache_ttl,
2880 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2886 "activity pub routes (except question activities). Defaults to `nil` (no expiration).",
2887 suggestions: [30_000, nil]
2890 key: :activity_pub_question,
2893 "activity pub routes (question activities). Defaults to `30_000` (30 seconds).",
2894 suggestions: [30_000]