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`"
47 description: "Base url for the uploads, needed if you use CDN",
49 "https://cdn-host.com"
56 "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected."
61 description: "Proxy options, see `Pleroma.ReverseProxy` documentation"
67 key: Pleroma.Uploaders.Local,
69 description: "Local uploader-related settings",
74 description: "Path where user uploads will be saved",
83 key: Pleroma.Uploaders.S3,
85 description: "S3 uploader-related settings",
90 description: "S3 bucket",
96 key: :bucket_namespace,
98 description: "S3 bucket namespace",
99 suggestions: ["pleroma"]
102 key: :public_endpoint,
104 description: "S3 endpoint",
105 suggestions: ["https://s3.amazonaws.com"]
108 key: :truncated_namespace,
111 "If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
112 " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in public_endpoint.",
119 key: Pleroma.Upload.Filter.Mogrify,
121 description: "Uploads mogrify filter settings",
125 type: [:string, {:list, :string}, {:list, :tuple}],
126 description: "List of actions for the mogrify command",
129 ["strip", "auto-orient"],
131 ["strip", "auto-orient", {"implode", "1"}]
138 key: Pleroma.Upload.Filter.AnonymizeFilename,
140 description: "Filter replaces the filename of the upload",
146 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
147 " filename extension by using {extension}, for example custom-file-name.{extension}",
149 "custom-file-name.{extension}",
157 key: Pleroma.Emails.Mailer,
159 description: "Mailer-related settings",
165 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
166 " or Swoosh.Adapters.Local for in-memory mailbox",
168 Swoosh.Adapters.SMTP,
169 Swoosh.Adapters.Sendgrid,
170 Swoosh.Adapters.Sendmail,
171 Swoosh.Adapters.Mandrill,
172 Swoosh.Adapters.Mailgun,
173 Swoosh.Adapters.Mailjet,
174 Swoosh.Adapters.Postmark,
175 Swoosh.Adapters.SparkPost,
176 Swoosh.Adapters.AmazonSES,
178 Swoosh.Adapters.SocketLabs,
179 Swoosh.Adapters.Gmail
185 description: "Allow/disallow send emails"
188 group: {:subgroup, Swoosh.Adapters.SMTP},
191 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
192 suggestions: ["smtp.gmail.com"]
195 group: {:subgroup, Swoosh.Adapters.SMTP},
198 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
199 suggestions: ["pleroma"]
202 group: {:subgroup, Swoosh.Adapters.SMTP},
205 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
206 suggestions: ["password"]
209 group: {:subgroup, Swoosh.Adapters.SMTP},
212 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
215 group: {:subgroup, Swoosh.Adapters.SMTP},
218 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
219 suggestions: [:always, :never, :if_available]
222 group: {:subgroup, Swoosh.Adapters.SMTP},
225 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
226 suggestions: [:always, :never, :if_available]
229 group: {:subgroup, Swoosh.Adapters.SMTP},
232 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
236 group: {:subgroup, Swoosh.Adapters.SMTP},
239 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
243 group: {:subgroup, Swoosh.Adapters.SMTP},
246 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
249 group: {:subgroup, Swoosh.Adapters.Sendgrid},
252 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
253 suggestions: ["my-api-key"]
256 group: {:subgroup, Swoosh.Adapters.Sendmail},
259 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
260 suggestions: ["/usr/bin/sendmail"]
263 group: {:subgroup, Swoosh.Adapters.Sendmail},
266 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
267 suggestions: ["-N delay,failure,success"]
270 group: {:subgroup, Swoosh.Adapters.Sendmail},
273 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
276 group: {:subgroup, Swoosh.Adapters.Mandrill},
279 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
280 suggestions: ["my-api-key"]
283 group: {:subgroup, Swoosh.Adapters.Mailgun},
286 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
287 suggestions: ["my-api-key"]
290 group: {:subgroup, Swoosh.Adapters.Mailgun},
293 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
294 suggestions: ["pleroma.com"]
297 group: {:subgroup, Swoosh.Adapters.Mailjet},
300 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
301 suggestions: ["my-api-key"]
304 group: {:subgroup, Swoosh.Adapters.Mailjet},
307 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
308 suggestions: ["my-secret-key"]
311 group: {:subgroup, Swoosh.Adapters.Postmark},
314 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
315 suggestions: ["my-api-key"]
318 group: {:subgroup, Swoosh.Adapters.SparkPost},
321 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
322 suggestions: ["my-api-key"]
325 group: {:subgroup, Swoosh.Adapters.SparkPost},
328 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
329 suggestions: ["https://api.sparkpost.com/api/v1"]
332 group: {:subgroup, Swoosh.Adapters.AmazonSES},
335 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
336 suggestions: ["us-east-1", "us-east-2"]
339 group: {:subgroup, Swoosh.Adapters.AmazonSES},
342 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
343 suggestions: ["aws-access-key"]
346 group: {:subgroup, Swoosh.Adapters.AmazonSES},
349 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
350 suggestions: ["aws-secret-key"]
353 group: {:subgroup, Swoosh.Adapters.Dyn},
356 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
357 suggestions: ["my-api-key"]
360 group: {:subgroup, Swoosh.Adapters.SocketLabs},
363 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting",
367 group: {:subgroup, Swoosh.Adapters.SocketLabs},
370 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting",
374 group: {:subgroup, Swoosh.Adapters.Gmail},
377 description: "`Swoosh.Adapters.Gmail` adapter specific setting",
386 description: "URI schemes related settings",
390 type: {:list, :string},
391 description: "List of the scheme part that is considered valid to be an URL",
417 description: "Instance-related settings",
422 description: "Name of the instance",
430 description: "Email used to reach an Administrator/Moderator of the instance",
438 description: "Email used for notifications",
446 description: "The instance's description, can be seen in nodeinfo and /api/v1/instance",
454 description: "Posts character limit (CW/Subject included in the counter)",
462 description: "Hard character limit beyond which remote posts will be dropped",
470 description: "File size limit of uploads (except for avatar, background, banner)",
476 key: :avatar_upload_limit,
478 description: "File size limit of user's profile avatars",
484 key: :background_upload_limit,
486 description: "File size limit of user's profile backgrounds",
492 key: :banner_upload_limit,
494 description: "File size limit of user's profile banners",
502 description: "A map with poll limits for local polls",
506 max_option_chars: 200,
508 max_expiration: 31_536_000
515 description: "Maximum number of options",
519 key: :max_option_chars,
521 description: "Maximum number of characters per option",
525 key: :min_expiration,
527 description: "Minimum expiration time (in seconds)",
531 key: :max_expiration,
533 description: "Maximum expiration time (in seconds)",
539 key: :registrations_open,
541 description: "Enable registrations for anyone, invitations can be enabled when false"
544 key: :invites_enabled,
546 description: "Enable user invitations for admins (depends on registrations_open: false)"
549 key: :account_activation_required,
551 description: "Require users to confirm their emails before signing in"
556 description: "Enable federation with other instances"
559 key: :federation_incoming_replies_max_depth,
562 "Max. depth of reply-to activities fetching on incoming federation, to prevent out-of-memory situations while" <>
563 " 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",
569 key: :federation_reachability_timeout_days,
572 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
578 key: :federation_publisher_modules,
579 type: [:list, :module],
580 description: "List of modules for federation publishing",
582 Pleroma.Web.ActivityPub.Publisher,
590 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
593 key: :rewrite_policy,
594 type: {:list, :module},
595 description: "A list of MRF policies enabled",
597 Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
605 "Makes the client API in authentificated mode-only except for user-profiles." <>
606 " Useful for disabling the Local Timeline and The Whole Known Network"
609 key: :quarantined_instances,
610 type: {:list, :string},
612 "List of ActivityPub instances where private(DMs, followers-only) activities will not be send",
619 key: :managed_config,
622 "Whenether the config for pleroma-fe is configured in this config or in static/config.json"
627 description: "Instance static directory",
633 key: :allowed_post_formats,
634 type: {:list, :string},
635 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
646 key: :mrf_transparency,
649 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
652 key: :mrf_transparency_exclusions,
653 type: {:list, :string},
655 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value",
661 key: :extended_nickname_format,
664 "Set to true to use extended local nicknames format (allows underscores/dashes)." <>
665 " This will break federation with older software for theses nicknames"
668 key: :max_pinned_statuses,
670 description: "The maximum number of pinned statuses. 0 will disable the feature",
678 key: :autofollowed_nicknames,
679 type: {:list, :string},
681 "Set to nicknames of (local) users that every new user should automatically follow",
690 key: :no_attachment_links,
693 "Set to true to disable automatically adding attachment link text to statuses"
696 key: :welcome_message,
699 "A message that will be send to a newly registered users as a direct message",
701 "Hi, @username! Welcome to the board!",
706 key: :welcome_user_nickname,
708 description: "The nickname of the local user that sends the welcome message",
715 key: :max_report_comment_size,
717 description: "The maximum size of the report comment (Default: 1000)",
723 key: :safe_dm_mentions,
726 "If set to true, only mentions at the beginning of a post will be used to address people in direct messages." <>
727 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@friend hey i really don't like @enemy\")." <>
733 description: "If set to true, system data will be shown on /api/pleroma/healthcheck"
736 key: :remote_post_retention_days,
739 "The default amount of days to retain remote posts when pruning the database",
745 key: :user_bio_length,
747 description: "A user bio maximum length (default: 5000)",
753 key: :user_name_length,
755 description: "A user name maximum length (default: 100)",
761 key: :skip_thread_containment,
763 description: "Skip filter out broken threads. The default is true"
766 key: :limit_to_local_content,
767 type: [:atom, false],
769 "Limit unauthenticated users to search for local statutes and users only. The default is :unauthenticated ",
777 key: :dynamic_configuration,
780 "Allow transferring configuration to DB with the subsequent customization from Admin api. Defaults to `false`"
783 key: :max_account_fields,
785 description: "The maximum number of custom fields in the user profile (default: 10)",
791 key: :max_remote_account_fields,
794 "The maximum number of custom fields in the remote user profile (default: 20)",
800 key: :account_field_name_length,
802 description: "An account field name maximum length (default: 512)",
808 key: :account_field_value_length,
810 description: "An account field value maximum length (default: 2048)",
816 key: :external_user_synchronization,
818 description: "Enabling following/followers counters synchronization for external users"
825 description: "Logger-related settings",
829 type: [:atom, :tuple, :module],
831 "Where logs will be send, :console - send logs to stdout, {ExSyslogger, :ex_syslogger} - to syslog, Quack.Logger - to Slack.",
832 suggestions: [[:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]]
840 description: "ExSyslogger-related settings",
845 description: "Log level",
846 suggestions: [:debug, :info, :warn, :error]
852 "A string that's prepended to every message, and is typically set to the app name",
853 suggestions: ["pleroma"]
858 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
859 suggestions: ["$metadata[$level] $message"]
863 type: {:list, :atom},
865 suggestions: [[:request_id]]
873 description: "Console logger settings",
878 description: "Log level",
879 suggestions: [:debug, :info, :warn, :error]
884 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
885 suggestions: ["$metadata[$level] $message"]
889 type: {:list, :atom},
891 suggestions: [[:request_id]]
898 description: "Quack-related settings",
903 description: "Log level",
904 suggestions: [:debug, :info, :warn, :error]
908 type: {:list, :atom},
909 description: "Configure which metadata you want to report on",
927 description: "Configure the Slack incoming webhook",
928 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
934 key: :frontend_configurations,
936 description: "A keyword list that keeps the configuration data for any kind of frontend",
941 description: "Settings for Pleroma FE",
944 theme: "pleroma-dark",
945 logo: "/static/logo.png",
946 background: "/images/city.jpg",
947 redirectRootNoLogin: "/main/all",
948 redirectRootLogin: "/main/friends",
949 showInstanceSpecificPanel: true,
950 scopeOptionsEnabled: false,
951 formattingOptionsEnabled: false,
952 collapseMessageWithSubject: false,
953 hidePostStats: false,
954 hideUserStats: false,
956 subjectLineBehavior: "email",
957 alwaysShowSubjectInput: true
964 description: "Which theme to use, they are defined in styles.json",
965 suggestions: ["pleroma-dark"]
970 description: "URL of the logo, defaults to Pleroma's logo",
971 suggestions: ["/static/logo.png"]
977 "URL of the background, unless viewing a user profile with a background that is set",
978 suggestions: ["/images/city.jpg"]
981 key: :redirectRootNoLogin,
984 "relative URL which indicates where to redirect when a user isn't logged in",
985 suggestions: ["/main/all"]
988 key: :redirectRootLogin,
991 "relative URL which indicates where to redirect when a user is logged in",
992 suggestions: ["/main/friends"]
995 key: :showInstanceSpecificPanel,
997 description: "Whenether to show the instance's specific panel"
1000 key: :scopeOptionsEnabled,
1002 description: "Enable setting an notice visibility and subject/CW when posting"
1005 key: :formattingOptionsEnabled,
1008 "Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats"
1011 key: :collapseMessageWithSubject,
1014 "When a message has a subject(aka Content Warning), collapse it by default"
1017 key: :hidePostStats,
1019 description: "Hide notices statistics(repeats, favorites, ...)"
1022 key: :hideUserStats,
1025 "Hide profile statistics(posts, posts per day, followers, followings, ...)"
1030 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1033 key: :subjectLineBehavior,
1035 description: "Allows changing the default behaviour of subject lines in replies.
1036 `email`: Copy and preprend re:, as in email,
1037 `masto`: Copy verbatim, as in Mastodon,
1038 `noop`: Don't copy the subjec",
1039 suggestions: ["email", "masto", "noop"]
1042 key: :alwaysShowSubjectInput,
1044 description: "When set to false, auto-hide the subject field when it's empty"
1051 description: "Settings for Masto FE",
1054 showInstanceSpecificPanel: true
1059 key: :showInstanceSpecificPanel,
1061 description: "Whenether to show the instance's specific panel"
1072 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1078 "Keyword of mascots, each element MUST contain both a url and a mime_type key",
1082 url: "/images/pleroma-fox-tan-smol.png",
1083 mime_type: "image/png"
1085 pleroma_fox_tan_shy: %{
1086 url: "/images/pleroma-fox-tan-shy.png",
1087 mime_type: "image/png"
1093 key: :default_mascot,
1096 "This will be used as the default mascot on MastoFE (default: :pleroma_fox_tan)",
1107 description: "Message Rewrite Facility",
1110 key: :media_removal,
1111 type: {:list, :string},
1112 description: "List of instances to remove medias from",
1113 suggestions: ["example.com", "*.example.com"]
1117 type: {:list, :string},
1118 description: "List of instances to put medias as NSFW(sensitive) from",
1119 suggestions: ["example.com", "*.example.com"]
1122 key: :federated_timeline_removal,
1123 type: {:list, :string},
1125 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1126 suggestions: ["example.com", "*.example.com"]
1130 type: {:list, :string},
1131 description: "List of instances to reject any activities from",
1132 suggestions: ["example.com", "*.example.com"]
1136 type: {:list, :string},
1137 description: "List of instances to accept any activities from",
1138 suggestions: ["example.com", "*.example.com"]
1141 key: :report_removal,
1142 type: {:list, :string},
1143 description: "List of instances to reject reports from",
1144 suggestions: ["example.com", "*.example.com"]
1147 key: :avatar_removal,
1148 type: {:list, :string},
1149 description: "List of instances to strip avatars from",
1150 suggestions: ["example.com", "*.example.com"]
1153 key: :banner_removal,
1154 type: {:list, :string},
1155 description: "List of instances to strip banners from",
1156 suggestions: ["example.com", "*.example.com"]
1165 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1166 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1171 description: "Matches a series of regular expressions against the actor field",
1174 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1182 key: :mrf_rejectnonpublic,
1187 key: :allow_followersonly,
1189 description: "whether to allow followers-only posts"
1194 description: "whether to allow direct messages"
1200 key: :mrf_hellthread,
1202 description: "Block messages with too much mentions",
1205 key: :delist_threshold,
1208 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1209 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable",
1213 key: :reject_threshold,
1216 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable",
1225 description: "Reject or Word-Replace messages with a keyword or regex",
1229 type: [:string, :regex],
1231 "A list of patterns which result in message being rejected, each pattern can be a string or a regular expression",
1232 suggestions: ["foo", ~r/foo/iu]
1235 key: :federated_timeline_removal,
1236 type: [:string, :regex],
1238 "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",
1239 suggestions: ["foo", ~r/foo/iu]
1243 type: [{:string, :string}, {:regex, :string}],
1245 "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",
1246 suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
1254 description: "Block messages which mention a user",
1258 type: {:list, :string},
1259 description: "A list of actors, for which to drop any posts mentioning",
1260 suggestions: [["actor1", "actor2"]]
1266 key: :mrf_vocabulary,
1268 description: "Filter messages which belong to certain activity vocabularies",
1272 type: {:list, :string},
1274 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1275 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1279 type: {:list, :string},
1281 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1282 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1288 # key: :mrf_user_allowlist,
1291 # "The keys in this section are the domain names that the policy should apply to." <>
1292 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1294 # ["example.org": ["https://example.org/users/admin"]],
1296 # ["example.org": ["https://example.org/users/admin"]]
1304 description: "Media proxy",
1309 description: "Enables proxying of remote media to the instance's proxy"
1315 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts",
1316 suggestions: ["https://example.com"]
1321 description: "Options for Pleroma.ReverseProxy",
1322 suggestions: [[max_body_length: 25 * 1_048_576, redirect_on_failure: false]]
1326 type: {:list, :string},
1327 description: "List of domains to bypass the mediaproxy",
1328 suggestions: ["example.com"]
1336 description: "Gopher settings",
1341 description: "Enables the gopher interface"
1346 description: "IP address to bind to",
1347 suggestions: [{0, 0, 0, 0}]
1352 description: "Port to bind to",
1358 description: "Port advertised in urls (optional, defaults to port)",
1365 key: Pleroma.Web.Endpoint,
1367 description: "Phoenix endpoint configuration",
1372 description: "http protocol configuration",
1374 [port: 8080, ip: {127, 0, 0, 1}]
1379 type: {:list, :tuple},
1380 description: "dispatch settings",
1385 {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
1386 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
1387 {Phoenix.Transports.WebSocket,
1388 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
1389 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
1391 # end copied from config.exs
1406 description: "port",
1416 description: "configuration for generating urls",
1418 [host: "example.com", port: 2020, scheme: "https"]
1424 description: "Host",
1432 description: "port",
1440 description: "Scheme",
1449 key: :instrumenters,
1450 type: {:list, :module},
1452 suggestions: [Pleroma.Web.Endpoint.Instrumenter]
1458 suggestions: ["https"]
1461 key: :secret_key_base,
1464 suggestions: ["aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl"]
1470 suggestions: ["CqaoopA2"]
1473 key: :render_errors,
1476 suggestions: [[view: Pleroma.Web.ErrorView, accepts: ~w(json)]],
1482 suggestions: [Pleroma.Web.ErrorView]
1486 type: {:list, :string},
1488 suggestions: ["json"]
1496 suggestions: [[name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]],
1502 suggestions: [Pleroma.PubSub]
1508 suggestions: [Phoenix.PubSub.PG2]
1513 key: :secure_cookie_flag,
1518 key: :extra_cookie_attrs,
1519 type: {:list, :string},
1521 suggestions: ["SameSite=Lax"]
1529 description: "ActivityPub-related settings",
1532 key: :unfollow_blocked,
1534 description: "Whether blocks result in people getting unfollowed"
1537 key: :outgoing_blocks,
1539 description: "Whether to federate blocks to other instances"
1542 key: :sign_object_fetches,
1544 description: "Sign object fetches with HTTP signatures"
1547 key: :follow_handshake_timeout,
1549 description: "Following handshake timeout",
1556 key: :http_security,
1558 description: "HTTP security settings",
1563 description: "Whether the managed content security policy is enabled"
1568 description: "Whether to additionally send a Strict-Transport-Security header"
1573 description: "The maximum age for the Strict-Transport-Security header if sent",
1574 suggestions: [31_536_000]
1579 description: "The maximum age for the Expect-CT header if sent",
1580 suggestions: [2_592_000]
1583 key: :referrer_policy,
1585 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1586 suggestions: ["same-origin", "no-referrer"]
1591 description: "Adds the specified url to report-uri and report-to group in CSP header",
1592 suggestions: ["https://example.com/report-uri"]
1597 group: :web_push_encryption,
1598 key: :vapid_details,
1601 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1607 "a mailto link for the administrative contact." <>
1608 " 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," <>
1609 " is unavailable for an extended period, or otherwise can't respond, someone else on the list can",
1610 suggestions: ["Subject"]
1615 description: "VAPID public key",
1616 suggestions: ["Public key"]
1621 description: "VAPID private keyn",
1622 suggestions: ["Private key"]
1628 key: Pleroma.Captcha,
1630 description: "Captcha-related settings",
1635 description: "Whether the captcha should be shown on registration"
1640 description: "The method/service to use for captcha",
1641 suggestions: [Pleroma.Captcha.Kocaptcha]
1644 key: :seconds_valid,
1646 description: "The time in seconds for which the captcha is valid",
1653 key: Pleroma.Captcha.Kocaptcha,
1656 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1657 " here: https://github.com/koto-bank/kocaptcha. The default endpoint https://captcha.kotobank.ch is hosted by the developer",
1662 description: "the kocaptcha endpoint to use",
1663 suggestions: ["https://captcha.kotobank.ch"]
1671 "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",
1676 description: "Token",
1677 suggestions: ["some_random_token"]
1682 group: :pleroma_job_queue,
1685 description: "[Deprecated] Replaced with `Oban`/`:queues` (keeping the same format)",
1690 key: Pleroma.Web.Federator.RetryQueue,
1692 description: "[Deprecated] See `Oban` and `:workers` sections for configuration notes",
1697 description: "[Deprecated] Replaced as `Oban`/`:queues`/`:outgoing_federation` value",
1707 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1709 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1710 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1711 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1712 (see https://github.com/sorentwo/oban/issues/52).
1718 description: "Application's Ecto repo",
1719 suggestions: [Pleroma.Repo]
1724 description: "Logs verbose mode"
1728 type: [:atom, :tuple],
1730 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1731 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1737 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1740 activity_expiration: 10,
1742 federator_incoming: 50,
1743 federator_outgoing: 50,
1745 scheduled_activities: 10,
1752 key: :activity_expiration,
1754 description: "Activity expiration queue",
1760 description: "Background queue",
1764 key: :federator_incoming,
1766 description: "Incoming federation queue",
1770 key: :federator_outgoing,
1772 description: "Outgoing federation queue",
1778 description: "Email sender queue, see Pleroma.Emails.Mailer",
1782 key: :scheduled_activities,
1784 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1788 key: :transmogrifier,
1790 description: "Transmogrifier queue",
1796 description: "Web push notifications queue",
1807 description: "Includes custom worker options not interpretable directly by `Oban`",
1812 description: "Max retry attempts for failed jobs, per `Oban` queue",
1815 federator_incoming: 5,
1816 federator_outgoing: 5
1824 key: Pleroma.Web.Metadata,
1826 decsription: "Metadata-related settings",
1830 type: {:list, :module},
1831 description: "List of metadata providers to enable",
1834 Pleroma.Web.Metadata.Providers.OpenGraph,
1835 Pleroma.Web.Metadata.Providers.TwitterCard,
1836 Pleroma.Web.Metadata.Providers.RelMe
1843 description: "If set to true nsfw attachments will be shown in previews"
1857 "if enabled the instance will parse metadata from attached links to generate link previews"
1861 type: {:list, :string},
1862 description: "list of hosts which will be ignored by the metadata parser",
1863 suggestions: [["accounts.google.com", "xss.website"]]
1867 type: {:list, :string},
1868 description: "list TLDs (top-level domains) which will ignore for parse metadata",
1869 suggestions: [["local", "localdomain", "lan"]]
1873 type: {:list, :module},
1874 description: "list of Rich Media parsers",
1876 Generator.richmedia_parsers()
1881 type: {:list, :module},
1882 description: "list of rich media ttl setters",
1884 [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
1891 key: :fetch_initial_posts,
1893 description: "Fetching initial posts settings",
1899 "if enabled, when a new user is federated with, fetch some of their latest posts"
1904 description: "the amount of pages to fetch",
1910 group: :auto_linker,
1913 description: "Configuration for the auto_linker library",
1917 type: [:string, false],
1918 description: "specify the class to be added to the generated link. false to clear",
1919 suggestions: ["auto-linker", false]
1923 type: [:string, false],
1924 description: "override the rel attribute. false to clear",
1925 suggestions: ["noopener noreferrer", false]
1930 description: "set to false to remove target='_blank' attribute"
1935 description: "Set to true to link urls with schema http://google.com"
1939 type: [:integer, false],
1941 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
1942 suggestions: [15, false]
1947 description: "Strip the scheme prefix"
1952 description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
1958 key: Pleroma.ScheduledActivity,
1960 description: "Scheduled activities settings",
1963 key: :daily_user_limit,
1966 "the number of scheduled activities a user is allowed to create in a single day (Default: 25)",
1970 key: :total_user_limit,
1973 "the number of scheduled activities a user is allowed to create in total (Default: 300)",
1979 description: "whether scheduled activities are sent to the job queue to be executed"
1985 key: Pleroma.ActivityExpiration,
1987 description: "Expired activity settings",
1992 description: "whether expired activities will be sent to the job queue to be deleted"
1999 description: "Authenticator",
2002 key: Pleroma.Web.Auth.Authenticator,
2005 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2014 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2015 " will be verified by trying to authenticate (bind) to an LDAP server." <>
2016 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2017 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2022 description: "enables LDAP authentication"
2027 description: "LDAP server hostname",
2028 suggestions: ["localhosts"]
2033 description: "LDAP port, e.g. 389 or 636",
2034 suggestions: [389, 636]
2039 description: "true to use SSL, usually implies the port 636"
2044 description: "additional SSL options",
2050 description: "true to start TLS, usually implies the port 389"
2055 description: "additional TLS options",
2061 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2062 suggestions: ["dc=example,dc=com"]
2068 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2077 description: "Authentication / authorization settings",
2080 key: :auth_template,
2083 "authentication form template. By default it's show.html which corresponds to lib/pleroma/web/templates/o_auth/o_auth/show.html.ee",
2084 suggestions: ["show.html"]
2087 key: :oauth_consumer_template,
2090 "OAuth consumer mode authentication form template. By default it's consumer.html which corresponds to" <>
2091 " lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex",
2092 suggestions: ["consumer.html"]
2095 key: :oauth_consumer_strategies,
2098 "the list of enabled OAuth consumer strategies; by default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2099 " Each entry in this space-delimited string should be of format <strategy> or <strategy>:<dependency>" <>
2100 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2101 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2107 key: :email_notifications,
2109 description: "Email notifications settings",
2115 "emails of \"what you've missed\" for users who have been inactive for a while",
2119 schedule: "0 0 * * 0",
2121 inactivity_threshold: 7
2128 description: "globally enable or disable digest emails"
2134 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\"",
2135 suggestions: ["0 0 * * 0"]
2140 description: "Minimum interval between digest emails to one user",
2144 key: :inactivity_threshold,
2146 description: "Minimum user inactivity threshold",
2155 key: Pleroma.Emails.UserEmail,
2157 description: "Email template settings",
2161 # type: [:string, nil],
2162 description: "a path to a custom logo. Set it to nil to use the default Pleroma logo",
2163 suggestions: ["some/path/logo.png", nil]
2168 description: "a map with color settings for email templates.",
2171 link_color: "#d8a070",
2172 background_color: "#2C3645",
2173 content_background_color: "#1B2635",
2174 header_color: "#d8a070",
2175 text_color: "#b9b9ba",
2176 text_muted_color: "#b9b9ba"
2184 suggestions: ["#d8a070"]
2187 key: :background_color,
2190 suggestions: ["#2C3645"]
2193 key: :content_background_color,
2196 suggestions: ["#1B2635"]
2202 suggestions: ["#d8a070"]
2208 suggestions: ["#b9b9ba"]
2211 key: :text_muted_color,
2214 suggestions: ["#b9b9ba"]
2224 description: "Configure OAuth 2 provider capabilities",
2227 key: :token_expires_in,
2229 description: "The lifetime in seconds of the access token",
2233 key: :issue_new_refresh_token,
2236 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2239 key: :clean_expired_tokens,
2241 description: "Enable a background job to clean expired oauth tokens. Defaults to false"
2244 key: :clean_expired_tokens_interval,
2247 "Interval to run the job to clean expired tokens. Defaults to 86_400_000 (24 hours).",
2248 suggestions: [86_400_000]
2259 key: :shortcode_globs,
2260 type: {:list, :string},
2261 description: "Location of custom emoji files. * can be used as a wildcard",
2262 suggestions: [["/emoji/custom/**/*.png"]]
2265 key: :pack_extensions,
2266 type: {:list, :string},
2268 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2269 suggestions: [[".png", ".gif"]]
2275 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the groupname" <>
2276 " and the value the location or array of locations. * can be used as a wildcard",
2279 # Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
2280 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2285 key: :default_manifest,
2288 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2289 " Currently only one manifest can be added (no arrays)",
2290 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2298 description: "Database related settings",
2303 description: "If RUM indexes should be used. Defaults to false"
2311 description: "Rate limit settings. This is an advanced feature and disabled by default.",
2315 type: [:tuple, {:list, :tuple}],
2316 description: "for the search requests (account & status search etc.)",
2317 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2320 key: :app_account_creation,
2321 type: [:tuple, {:list, :tuple}],
2322 description: "for registering user accounts from the same IP address",
2323 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2326 key: :relations_actions,
2327 type: [:tuple, {:list, :tuple}],
2328 description: "for actions on relations with all users (follow, unfollow)",
2329 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2332 key: :relation_id_action,
2333 type: [:tuple, {:list, :tuple}],
2334 description: "for actions on relation with a specific user (follow, unfollow)",
2335 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2338 key: :statuses_actions,
2339 type: [:tuple, {:list, :tuple}],
2341 "for create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2342 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2345 key: :status_id_action,
2346 type: [:tuple, {:list, :tuple}],
2348 "for fav / unfav or reblog / unreblog actions on the same status by the same user",
2349 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2357 "To enable simple command line interface accessible over ssh, add a setting like this to your configuration file",
2362 description: "Enables ssh"
2367 description: "Dir with ssh keys",
2368 suggestions: ["/some/path/ssh_keys"]
2373 description: "Handler module",
2374 suggestions: ["Pleroma.BBS.Handler"]
2379 description: "Port to connect",
2380 suggestions: [10_022]
2383 key: :password_authenticator,
2385 description: "Authenticator module",
2386 suggestions: ["Pleroma.BBS.Authenticator"]
2393 description: "Mime types",
2401 "application/xml" => ["xml"],
2402 "application/xrd+xml" => ["xrd+xml"],
2403 "application/jrd+json" => ["jrd+json"],
2404 "application/activity+json" => ["activity+json"],
2405 "application/ld+json" => ["activity+json"]
2410 key: "application/xml",
2411 type: {:list, :string},
2413 suggestions: [["xml"]]
2416 key: "application/xrd+xml",
2417 type: {:list, :string},
2419 suggestions: [["xrd+xml"]]
2422 key: "application/jrd+json",
2423 type: {:list, :string},
2425 suggestions: [["jrd+json"]]
2428 key: "application/activity+json",
2429 type: {:list, :string},
2431 suggestions: [["activity+json"]]
2434 key: "application/ld+json",
2435 type: {:list, :string},
2437 suggestions: [["activity+json"]]
2446 description: "Tesla settings",
2451 description: "Tesla adapter",
2452 suggestions: [Tesla.Adapter.Hackney]
2460 description: "Pleroma chat settings",
2478 description: "Enables suggestions"
2481 key: :third_party_engine,
2483 description: "URL for third party engine",
2485 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}"
2491 description: "Request timeout to third party engine",
2492 suggestions: [300_000]
2497 description: "Limit for suggestions",
2504 suggestions: ["https://vinayaka.distsn.org"]
2510 key: Pleroma.Web.Endpoint.MetricsExporter,
2512 description: "Prometheus settings",
2517 description: "API endpoint with metrics",
2518 suggestions: ["/api/pleroma/app_metrics"]
2523 group: :http_signatures,
2525 description: "HTTP Signatures settings",
2531 suggestions: [Pleroma.Signature]
2537 key: Pleroma.Uploaders.MDII,
2545 suggestions: ["https://mdii.sakura.ne.jp/mdii-post.cgi"]
2551 suggestions: ["https://mdii.sakura.ne.jp"]
2559 description: "HTTP settings",
2563 type: [:string, :atom, nil],
2565 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}, nil]
2568 key: :send_user_agent,
2579 # Workaround for remote server certificate chain issues
2580 partial_chain: &:hackney_connect.partial_chain/1,
2581 # We don't support TLS v1.3 yet
2582 versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
2596 key: :allow_inline_images,
2601 key: :allow_headings,
2617 type: {:list, :module},
2619 suggestions: [[Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]]
2630 key: :deny_follow_blocked,
2638 key: :mrf_normalize_markup,
2646 suggestions: [Pleroma.HTML.Scrubber.Default]
2657 key: :restricted_nicknames,
2658 type: {:list, :string},
2679 "ostatus_subscribe",
2706 suggestions: [86_400]
2710 type: {:list, :string},
2712 suggestions: [["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]]
2721 "X-RateLimit-Reset",
2722 "X-RateLimit-Limit",
2723 "X-RateLimit-Remaining",
2736 type: {:list, :string},
2738 suggestions: [["Authorization", "Content-Type", "Idempotency-Key"]]
2744 key: :web_cache_ttl,
2747 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2753 "activity pub routes (except question activities). Defaults to `nil` (no expiration).",
2754 suggestions: [30_000, nil]
2757 key: :activity_pub_question,
2760 "activity pub routes (question activities). Defaults to `30_000` (30 seconds).",
2761 suggestions: [30_000]