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."
115 key: :streaming_enabled,
118 "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."
124 key: Pleroma.Upload.Filter.Mogrify,
126 description: "Uploads mogrify filter settings",
130 type: [:string, {:list, :string}, {:list, :tuple}],
131 description: "List of actions for the mogrify command",
134 ["strip", "auto-orient"],
136 ["strip", "auto-orient", {"implode", "1"}]
143 key: Pleroma.Upload.Filter.AnonymizeFilename,
145 description: "Filter replaces the filename of the upload",
151 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
152 " filename extension by using {extension}, for example custom-file-name.{extension}",
154 "custom-file-name.{extension}",
162 key: Pleroma.Emails.Mailer,
164 description: "Mailer-related settings",
170 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
171 " or Swoosh.Adapters.Local for in-memory mailbox",
173 Swoosh.Adapters.SMTP,
174 Swoosh.Adapters.Sendgrid,
175 Swoosh.Adapters.Sendmail,
176 Swoosh.Adapters.Mandrill,
177 Swoosh.Adapters.Mailgun,
178 Swoosh.Adapters.Mailjet,
179 Swoosh.Adapters.Postmark,
180 Swoosh.Adapters.SparkPost,
181 Swoosh.Adapters.AmazonSES,
183 Swoosh.Adapters.SocketLabs,
184 Swoosh.Adapters.Gmail
190 description: "Allow/disallow send emails"
193 group: {:subgroup, Swoosh.Adapters.SMTP},
196 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
197 suggestions: ["smtp.gmail.com"]
200 group: {:subgroup, Swoosh.Adapters.SMTP},
203 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
204 suggestions: ["pleroma"]
207 group: {:subgroup, Swoosh.Adapters.SMTP},
210 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
211 suggestions: ["password"]
214 group: {:subgroup, Swoosh.Adapters.SMTP},
217 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
220 group: {:subgroup, Swoosh.Adapters.SMTP},
223 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
224 suggestions: [:always, :never, :if_available]
227 group: {:subgroup, Swoosh.Adapters.SMTP},
230 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
231 suggestions: [:always, :never, :if_available]
234 group: {:subgroup, Swoosh.Adapters.SMTP},
237 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
241 group: {:subgroup, Swoosh.Adapters.SMTP},
244 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
248 group: {:subgroup, Swoosh.Adapters.SMTP},
251 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
254 group: {:subgroup, Swoosh.Adapters.Sendgrid},
257 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
258 suggestions: ["my-api-key"]
261 group: {:subgroup, Swoosh.Adapters.Sendmail},
264 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
265 suggestions: ["/usr/bin/sendmail"]
268 group: {:subgroup, Swoosh.Adapters.Sendmail},
271 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
272 suggestions: ["-N delay,failure,success"]
275 group: {:subgroup, Swoosh.Adapters.Sendmail},
278 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
281 group: {:subgroup, Swoosh.Adapters.Mandrill},
284 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
285 suggestions: ["my-api-key"]
288 group: {:subgroup, Swoosh.Adapters.Mailgun},
291 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
292 suggestions: ["my-api-key"]
295 group: {:subgroup, Swoosh.Adapters.Mailgun},
298 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
299 suggestions: ["pleroma.com"]
302 group: {:subgroup, Swoosh.Adapters.Mailjet},
305 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
306 suggestions: ["my-api-key"]
309 group: {:subgroup, Swoosh.Adapters.Mailjet},
312 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
313 suggestions: ["my-secret-key"]
316 group: {:subgroup, Swoosh.Adapters.Postmark},
319 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
320 suggestions: ["my-api-key"]
323 group: {:subgroup, Swoosh.Adapters.SparkPost},
326 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
327 suggestions: ["my-api-key"]
330 group: {:subgroup, Swoosh.Adapters.SparkPost},
333 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
334 suggestions: ["https://api.sparkpost.com/api/v1"]
337 group: {:subgroup, Swoosh.Adapters.AmazonSES},
340 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
341 suggestions: ["us-east-1", "us-east-2"]
344 group: {:subgroup, Swoosh.Adapters.AmazonSES},
347 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
348 suggestions: ["aws-access-key"]
351 group: {:subgroup, Swoosh.Adapters.AmazonSES},
354 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
355 suggestions: ["aws-secret-key"]
358 group: {:subgroup, Swoosh.Adapters.Dyn},
361 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
362 suggestions: ["my-api-key"]
365 group: {:subgroup, Swoosh.Adapters.SocketLabs},
368 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
371 group: {:subgroup, Swoosh.Adapters.SocketLabs},
374 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
377 group: {:subgroup, Swoosh.Adapters.Gmail},
380 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
388 description: "URI schemes related settings",
392 type: {:list, :string},
393 description: "List of the scheme part that is considered valid to be an URL",
419 description: "Instance-related settings",
424 description: "Name of the instance",
432 description: "Email used to reach an Administrator/Moderator of the instance",
440 description: "Email used for notifications",
448 description: "The instance's description, can be seen in nodeinfo and /api/v1/instance",
456 description: "Posts character limit (CW/Subject included in the counter)",
464 description: "Hard character limit beyond which remote posts will be dropped",
472 description: "File size limit of uploads (except for avatar, background, banner)",
478 key: :avatar_upload_limit,
480 description: "File size limit of user's profile avatars",
486 key: :background_upload_limit,
488 description: "File size limit of user's profile backgrounds",
494 key: :banner_upload_limit,
496 description: "File size limit of user's profile banners",
504 description: "A map with poll limits for local polls",
508 max_option_chars: 200,
510 max_expiration: 31_536_000
517 description: "Maximum number of options",
521 key: :max_option_chars,
523 description: "Maximum number of characters per option",
527 key: :min_expiration,
529 description: "Minimum expiration time (in seconds)",
533 key: :max_expiration,
535 description: "Maximum expiration time (in seconds)",
541 key: :registrations_open,
543 description: "Enable registrations for anyone, invitations can be enabled when false"
546 key: :invites_enabled,
548 description: "Enable user invitations for admins (depends on registrations_open: false)"
551 key: :account_activation_required,
553 description: "Require users to confirm their emails before signing in"
558 description: "Enable federation with other instances"
561 key: :federation_incoming_replies_max_depth,
564 "Max. depth of reply-to activities fetching on incoming federation, to prevent out-of-memory situations while" <>
565 " 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",
571 key: :federation_reachability_timeout_days,
574 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
580 key: :federation_publisher_modules,
581 type: [:list, :module],
582 description: "List of modules for federation publishing",
584 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},
864 suggestions: [[:request_id]]
872 description: "Console logger settings",
877 description: "Log level",
878 suggestions: [:debug, :info, :warn, :error]
883 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
884 suggestions: ["$metadata[$level] $message"]
888 type: {:list, :atom},
889 suggestions: [[:request_id]]
896 description: "Quack-related settings",
901 description: "Log level",
902 suggestions: [:debug, :info, :warn, :error]
906 type: {:list, :atom},
907 description: "Configure which metadata you want to report on",
925 description: "Configure the Slack incoming webhook",
926 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
932 key: :frontend_configurations,
934 description: "A keyword list that keeps the configuration data for any kind of frontend",
939 description: "Settings for Pleroma FE",
942 theme: "pleroma-dark",
943 logo: "/static/logo.png",
944 background: "/images/city.jpg",
945 redirectRootNoLogin: "/main/all",
946 redirectRootLogin: "/main/friends",
947 showInstanceSpecificPanel: true,
948 scopeOptionsEnabled: false,
949 formattingOptionsEnabled: false,
950 collapseMessageWithSubject: false,
951 hidePostStats: false,
952 hideUserStats: false,
954 subjectLineBehavior: "email",
955 alwaysShowSubjectInput: true
962 description: "Which theme to use, they are defined in styles.json",
963 suggestions: ["pleroma-dark"]
968 description: "URL of the logo, defaults to Pleroma's logo",
969 suggestions: ["/static/logo.png"]
975 "URL of the background, unless viewing a user profile with a background that is set",
976 suggestions: ["/images/city.jpg"]
979 key: :redirectRootNoLogin,
982 "relative URL which indicates where to redirect when a user isn't logged in",
983 suggestions: ["/main/all"]
986 key: :redirectRootLogin,
989 "relative URL which indicates where to redirect when a user is logged in",
990 suggestions: ["/main/friends"]
993 key: :showInstanceSpecificPanel,
995 description: "Whenether to show the instance's specific panel"
998 key: :scopeOptionsEnabled,
1000 description: "Enable setting an notice visibility and subject/CW when posting"
1003 key: :formattingOptionsEnabled,
1006 "Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats"
1009 key: :collapseMessageWithSubject,
1012 "When a message has a subject(aka Content Warning), collapse it by default"
1015 key: :hidePostStats,
1017 description: "Hide notices statistics(repeats, favorites, ...)"
1020 key: :hideUserStats,
1023 "Hide profile statistics(posts, posts per day, followers, followings, ...)"
1028 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1031 key: :subjectLineBehavior,
1033 description: "Allows changing the default behaviour of subject lines in replies.
1034 `email`: Copy and preprend re:, as in email,
1035 `masto`: Copy verbatim, as in Mastodon,
1036 `noop`: Don't copy the subjec",
1037 suggestions: ["email", "masto", "noop"]
1040 key: :alwaysShowSubjectInput,
1042 description: "When set to false, auto-hide the subject field when it's empty"
1049 description: "Settings for Masto FE",
1052 showInstanceSpecificPanel: true
1057 key: :showInstanceSpecificPanel,
1059 description: "Whenether to show the instance's specific panel"
1070 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1076 "Keyword of mascots, each element MUST contain both a url and a mime_type key",
1080 url: "/images/pleroma-fox-tan-smol.png",
1081 mime_type: "image/png"
1083 pleroma_fox_tan_shy: %{
1084 url: "/images/pleroma-fox-tan-shy.png",
1085 mime_type: "image/png"
1091 key: :default_mascot,
1094 "This will be used as the default mascot on MastoFE (default: :pleroma_fox_tan)",
1106 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE",
1110 type: {:list, :map},
1111 description: "Describe the icons of the app",
1114 src: "/static/logo.png"
1117 src: "/static/icon.png",
1121 src: "/static/icon.ico",
1122 sizes: "72x72 96x96 128x128 256x256"
1129 description: "Describe the theme color of the app",
1130 suggestions: ["#282c37", "mediumpurple"]
1133 key: :background_color,
1135 description: "Describe the background color of the app",
1136 suggestions: ["#191b22", "aliceblue"]
1144 description: "Message Rewrite Facility",
1147 key: :media_removal,
1148 type: {:list, :string},
1149 description: "List of instances to remove medias from",
1150 suggestions: ["example.com", "*.example.com"]
1154 type: {:list, :string},
1155 description: "List of instances to put medias as NSFW(sensitive) from",
1156 suggestions: ["example.com", "*.example.com"]
1159 key: :federated_timeline_removal,
1160 type: {:list, :string},
1162 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1163 suggestions: ["example.com", "*.example.com"]
1167 type: {:list, :string},
1168 description: "List of instances to reject any activities from",
1169 suggestions: ["example.com", "*.example.com"]
1173 type: {:list, :string},
1174 description: "List of instances to accept any activities from",
1175 suggestions: ["example.com", "*.example.com"]
1178 key: :report_removal,
1179 type: {:list, :string},
1180 description: "List of instances to reject reports from",
1181 suggestions: ["example.com", "*.example.com"]
1184 key: :avatar_removal,
1185 type: {:list, :string},
1186 description: "List of instances to strip avatars from",
1187 suggestions: ["example.com", "*.example.com"]
1190 key: :banner_removal,
1191 type: {:list, :string},
1192 description: "List of instances to strip banners from",
1193 suggestions: ["example.com", "*.example.com"]
1202 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1203 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1208 description: "Matches a series of regular expressions against the actor field",
1211 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1219 key: :mrf_rejectnonpublic,
1223 key: :allow_followersonly,
1225 description: "whether to allow followers-only posts"
1230 description: "whether to allow direct messages"
1236 key: :mrf_hellthread,
1238 description: "Block messages with too much mentions",
1241 key: :delist_threshold,
1244 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1245 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable",
1249 key: :reject_threshold,
1252 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable",
1261 description: "Reject or Word-Replace messages with a keyword or regex",
1265 type: [:string, :regex],
1267 "A list of patterns which result in message being rejected, each pattern can be a string or a regular expression",
1268 suggestions: ["foo", ~r/foo/iu]
1271 key: :federated_timeline_removal,
1272 type: [:string, :regex],
1274 "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",
1275 suggestions: ["foo", ~r/foo/iu]
1279 type: [{:string, :string}, {:regex, :string}],
1281 "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",
1282 suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
1290 description: "Block messages which mention a user",
1294 type: {:list, :string},
1295 description: "A list of actors, for which to drop any posts mentioning",
1296 suggestions: [["actor1", "actor2"]]
1302 key: :mrf_vocabulary,
1304 description: "Filter messages which belong to certain activity vocabularies",
1308 type: {:list, :string},
1310 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1311 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1315 type: {:list, :string},
1317 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1318 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1324 # key: :mrf_user_allowlist,
1327 # "The keys in this section are the domain names that the policy should apply to." <>
1328 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1330 # ["example.org": ["https://example.org/users/admin"]],
1332 # ["example.org": ["https://example.org/users/admin"]]
1340 description: "Media proxy",
1345 description: "Enables proxying of remote media to the instance's proxy"
1351 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts",
1352 suggestions: ["https://example.com"]
1357 description: "Options for Pleroma.ReverseProxy",
1358 suggestions: [[max_body_length: 25 * 1_048_576, redirect_on_failure: false]]
1362 type: {:list, :string},
1363 description: "List of domains to bypass the mediaproxy",
1364 suggestions: ["example.com"]
1372 description: "Gopher settings",
1377 description: "Enables the gopher interface"
1382 description: "IP address to bind to",
1383 suggestions: [{0, 0, 0, 0}]
1388 description: "Port to bind to",
1394 description: "Port advertised in urls (optional, defaults to port)",
1401 key: Pleroma.Web.Endpoint,
1403 description: "Phoenix endpoint configuration",
1408 description: "http protocol configuration",
1410 [port: 8080, ip: {127, 0, 0, 1}]
1415 type: {:list, :tuple},
1416 description: "dispatch settings",
1421 {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
1422 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
1423 {Phoenix.Transports.WebSocket,
1424 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
1425 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
1427 # end copied from config.exs
1442 description: "port",
1452 description: "configuration for generating urls",
1454 [host: "example.com", port: 2020, scheme: "https"]
1460 description: "Host",
1468 description: "port",
1476 description: "Scheme",
1485 key: :instrumenters,
1486 type: {:list, :module},
1487 suggestions: [Pleroma.Web.Endpoint.Instrumenter]
1492 suggestions: ["https"]
1495 key: :secret_key_base,
1497 suggestions: ["aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl"]
1502 suggestions: ["CqaoopA2"]
1505 key: :render_errors,
1507 suggestions: [[view: Pleroma.Web.ErrorView, accepts: ~w(json)]],
1512 suggestions: [Pleroma.Web.ErrorView]
1516 type: {:list, :string},
1517 suggestions: ["json"]
1524 suggestions: [[name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]],
1529 suggestions: [Pleroma.PubSub]
1534 suggestions: [Phoenix.PubSub.PG2]
1539 key: :secure_cookie_flag,
1543 key: :extra_cookie_attrs,
1544 type: {:list, :string},
1545 suggestions: ["SameSite=Lax"]
1553 description: "ActivityPub-related settings",
1556 key: :unfollow_blocked,
1558 description: "Whether blocks result in people getting unfollowed"
1561 key: :outgoing_blocks,
1563 description: "Whether to federate blocks to other instances"
1566 key: :sign_object_fetches,
1568 description: "Sign object fetches with HTTP signatures"
1571 key: :follow_handshake_timeout,
1573 description: "Following handshake timeout",
1580 key: :http_security,
1582 description: "HTTP security settings",
1587 description: "Whether the managed content security policy is enabled"
1592 description: "Whether to additionally send a Strict-Transport-Security header"
1597 description: "The maximum age for the Strict-Transport-Security header if sent",
1598 suggestions: [31_536_000]
1603 description: "The maximum age for the Expect-CT header if sent",
1604 suggestions: [2_592_000]
1607 key: :referrer_policy,
1609 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1610 suggestions: ["same-origin", "no-referrer"]
1615 description: "Adds the specified url to report-uri and report-to group in CSP header",
1616 suggestions: ["https://example.com/report-uri"]
1621 group: :web_push_encryption,
1622 key: :vapid_details,
1625 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1631 "a mailto link for the administrative contact." <>
1632 " 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," <>
1633 " is unavailable for an extended period, or otherwise can't respond, someone else on the list can",
1634 suggestions: ["Subject"]
1639 description: "VAPID public key",
1640 suggestions: ["Public key"]
1645 description: "VAPID private keyn",
1646 suggestions: ["Private key"]
1652 key: Pleroma.Captcha,
1654 description: "Captcha-related settings",
1659 description: "Whether the captcha should be shown on registration"
1664 description: "The method/service to use for captcha",
1665 suggestions: [Pleroma.Captcha.Kocaptcha]
1668 key: :seconds_valid,
1670 description: "The time in seconds for which the captcha is valid",
1677 key: Pleroma.Captcha.Kocaptcha,
1680 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1681 " here: https://github.com/koto-bank/kocaptcha. The default endpoint https://captcha.kotobank.ch is hosted by the developer",
1686 description: "the kocaptcha endpoint to use",
1687 suggestions: ["https://captcha.kotobank.ch"]
1695 "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",
1700 description: "Token",
1701 suggestions: ["some_random_token"]
1706 group: :pleroma_job_queue,
1709 description: "[Deprecated] Replaced with `Oban`/`:queues` (keeping the same format)"
1713 key: Pleroma.Web.Federator.RetryQueue,
1715 description: "[Deprecated] See `Oban` and `:workers` sections for configuration notes",
1720 description: "[Deprecated] Replaced as `Oban`/`:queues`/`:outgoing_federation` value"
1729 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1731 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1732 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1733 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1734 (see https://github.com/sorentwo/oban/issues/52).
1740 description: "Application's Ecto repo",
1741 suggestions: [Pleroma.Repo]
1746 description: "Logs verbose mode"
1750 type: [:atom, :tuple],
1752 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1753 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1759 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1762 activity_expiration: 10,
1764 federator_incoming: 50,
1765 federator_outgoing: 50,
1767 scheduled_activities: 10,
1774 key: :activity_expiration,
1776 description: "Activity expiration queue",
1782 description: "Background queue",
1786 key: :federator_incoming,
1788 description: "Incoming federation queue",
1792 key: :federator_outgoing,
1794 description: "Outgoing federation queue",
1800 description: "Email sender queue, see Pleroma.Emails.Mailer",
1804 key: :scheduled_activities,
1806 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1810 key: :transmogrifier,
1812 description: "Transmogrifier queue",
1818 description: "Web push notifications queue",
1829 description: "Includes custom worker options not interpretable directly by `Oban`",
1834 description: "Max retry attempts for failed jobs, per `Oban` queue",
1837 federator_incoming: 5,
1838 federator_outgoing: 5
1846 key: Pleroma.Web.Metadata,
1848 decsription: "Metadata-related settings",
1852 type: {:list, :module},
1853 description: "List of metadata providers to enable",
1856 Pleroma.Web.Metadata.Providers.OpenGraph,
1857 Pleroma.Web.Metadata.Providers.TwitterCard,
1858 Pleroma.Web.Metadata.Providers.RelMe
1865 description: "If set to true nsfw attachments will be shown in previews"
1878 "if enabled the instance will parse metadata from attached links to generate link previews"
1882 type: {:list, :string},
1883 description: "list of hosts which will be ignored by the metadata parser",
1884 suggestions: [["accounts.google.com", "xss.website"]]
1888 type: {:list, :string},
1889 description: "list TLDs (top-level domains) which will ignore for parse metadata",
1890 suggestions: [["local", "localdomain", "lan"]]
1894 type: {:list, :module},
1895 description: "list of Rich Media parsers",
1897 Generator.richmedia_parsers()
1902 type: {:list, :module},
1903 description: "list of rich media ttl setters",
1905 [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
1912 key: :fetch_initial_posts,
1914 description: "Fetching initial posts settings",
1920 "if enabled, when a new user is federated with, fetch some of their latest posts"
1925 description: "the amount of pages to fetch",
1931 group: :auto_linker,
1934 description: "Configuration for the auto_linker library",
1938 type: [:string, false],
1939 description: "specify the class to be added to the generated link. false to clear",
1940 suggestions: ["auto-linker", false]
1944 type: [:string, false],
1945 description: "override the rel attribute. false to clear",
1946 suggestions: ["ugc", "noopener noreferrer", false]
1951 description: "set to false to remove target='_blank' attribute"
1956 description: "Set to true to link urls with schema http://google.com"
1960 type: [:integer, false],
1962 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
1963 suggestions: [15, false]
1968 description: "Strip the scheme prefix"
1973 description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
1979 key: Pleroma.ScheduledActivity,
1981 description: "Scheduled activities settings",
1984 key: :daily_user_limit,
1987 "the number of scheduled activities a user is allowed to create in a single day (Default: 25)",
1991 key: :total_user_limit,
1994 "the number of scheduled activities a user is allowed to create in total (Default: 300)",
2000 description: "whether scheduled activities are sent to the job queue to be executed"
2006 key: Pleroma.ActivityExpiration,
2008 description: "Expired activity settings",
2013 description: "whether expired activities will be sent to the job queue to be deleted"
2020 description: "Authenticator",
2023 key: Pleroma.Web.Auth.Authenticator,
2025 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2034 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2035 " will be verified by trying to authenticate (bind) to an LDAP server." <>
2036 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2037 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2042 description: "enables LDAP authentication"
2047 description: "LDAP server hostname",
2048 suggestions: ["localhosts"]
2053 description: "LDAP port, e.g. 389 or 636",
2054 suggestions: [389, 636]
2059 description: "true to use SSL, usually implies the port 636"
2064 description: "additional SSL options"
2069 description: "true to start TLS, usually implies the port 389"
2074 description: "additional TLS options"
2079 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2080 suggestions: ["dc=example,dc=com"]
2086 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2095 description: "Authentication / authorization settings",
2098 key: :auth_template,
2101 "authentication form template. By default it's show.html which corresponds to lib/pleroma/web/templates/o_auth/o_auth/show.html.ee",
2102 suggestions: ["show.html"]
2105 key: :oauth_consumer_template,
2108 "OAuth consumer mode authentication form template. By default it's consumer.html which corresponds to" <>
2109 " lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex",
2110 suggestions: ["consumer.html"]
2113 key: :oauth_consumer_strategies,
2116 "the list of enabled OAuth consumer strategies; by default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2117 " Each entry in this space-delimited string should be of format <strategy> or <strategy>:<dependency>" <>
2118 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2119 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2125 key: :email_notifications,
2127 description: "Email notifications settings",
2133 "emails of \"what you've missed\" for users who have been inactive for a while",
2137 schedule: "0 0 * * 0",
2139 inactivity_threshold: 7
2146 description: "globally enable or disable digest emails"
2152 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\"",
2153 suggestions: ["0 0 * * 0"]
2158 description: "Minimum interval between digest emails to one user",
2162 key: :inactivity_threshold,
2164 description: "Minimum user inactivity threshold",
2173 key: Pleroma.Emails.UserEmail,
2175 description: "Email template settings",
2179 type: [:string, nil],
2180 description: "a path to a custom logo. Set it to nil to use the default Pleroma logo",
2181 suggestions: ["some/path/logo.png", nil]
2186 description: "a map with color settings for email templates.",
2189 link_color: "#d8a070",
2190 background_color: "#2C3645",
2191 content_background_color: "#1B2635",
2192 header_color: "#d8a070",
2193 text_color: "#b9b9ba",
2194 text_muted_color: "#b9b9ba"
2201 suggestions: ["#d8a070"]
2204 key: :background_color,
2206 suggestions: ["#2C3645"]
2209 key: :content_background_color,
2211 suggestions: ["#1B2635"]
2216 suggestions: ["#d8a070"]
2221 suggestions: ["#b9b9ba"]
2224 key: :text_muted_color,
2226 suggestions: ["#b9b9ba"]
2236 description: "Configure OAuth 2 provider capabilities",
2239 key: :token_expires_in,
2241 description: "The lifetime in seconds of the access token",
2245 key: :issue_new_refresh_token,
2248 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2251 key: :clean_expired_tokens,
2253 description: "Enable a background job to clean expired oauth tokens. Defaults to false"
2256 key: :clean_expired_tokens_interval,
2259 "Interval to run the job to clean expired tokens. Defaults to 86_400_000 (24 hours).",
2260 suggestions: [86_400_000]
2270 key: :shortcode_globs,
2271 type: {:list, :string},
2272 description: "Location of custom emoji files. * can be used as a wildcard",
2273 suggestions: [["/emoji/custom/**/*.png"]]
2276 key: :pack_extensions,
2277 type: {:list, :string},
2279 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2280 suggestions: [[".png", ".gif"]]
2286 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the groupname" <>
2287 " and the value the location or array of locations. * can be used as a wildcard",
2290 # Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
2291 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2296 key: :default_manifest,
2299 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2300 " Currently only one manifest can be added (no arrays)",
2301 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2304 key: :shared_pack_cache_seconds_per_file,
2307 "When an emoji pack is shared, the archive is created and cached in memory" <>
2308 " for this amount of seconds multiplied by the number of files.",
2317 description: "Database related settings",
2322 description: "If RUM indexes should be used. Defaults to false"
2331 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2335 type: [:tuple, {:list, :tuple}],
2336 description: "for the search requests (account & status search etc.)",
2337 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2340 key: :app_account_creation,
2341 type: [:tuple, {:list, :tuple}],
2342 description: "for registering user accounts from the same IP address",
2343 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2346 key: :relations_actions,
2347 type: [:tuple, {:list, :tuple}],
2348 description: "for actions on relations with all users (follow, unfollow)",
2349 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2352 key: :relation_id_action,
2353 type: [:tuple, {:list, :tuple}],
2354 description: "for actions on relation with a specific user (follow, unfollow)",
2355 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2358 key: :statuses_actions,
2359 type: [:tuple, {:list, :tuple}],
2361 "for create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2362 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2365 key: :status_id_action,
2366 type: [:tuple, {:list, :tuple}],
2368 "for fav / unfav or reblog / unreblog actions on the same status by the same user",
2369 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2372 key: :authentication,
2373 type: [:tuple, {:list, :tuple}],
2374 description: "for authentication create / password check / user existence check requests",
2375 suggestions: [{60_000, 15}]
2383 "To enable simple command line interface accessible over ssh, add a setting like this to your configuration file",
2388 description: "Enables ssh"
2393 description: "Dir with ssh keys",
2394 suggestions: ["/some/path/ssh_keys"]
2399 description: "Handler module",
2400 suggestions: ["Pleroma.BBS.Handler"]
2405 description: "Port to connect",
2406 suggestions: [10_022]
2409 key: :password_authenticator,
2411 description: "Authenticator module",
2412 suggestions: ["Pleroma.BBS.Authenticator"]
2419 description: "Mime types",
2426 "application/xml" => ["xml"],
2427 "application/xrd+xml" => ["xrd+xml"],
2428 "application/jrd+json" => ["jrd+json"],
2429 "application/activity+json" => ["activity+json"],
2430 "application/ld+json" => ["activity+json"]
2435 key: "application/xml",
2436 type: {:list, :string},
2437 suggestions: [["xml"]]
2440 key: "application/xrd+xml",
2441 type: {:list, :string},
2442 suggestions: [["xrd+xml"]]
2445 key: "application/jrd+json",
2446 type: {:list, :string},
2447 suggestions: [["jrd+json"]]
2450 key: "application/activity+json",
2451 type: {:list, :string},
2452 suggestions: [["activity+json"]]
2455 key: "application/ld+json",
2456 type: {:list, :string},
2457 suggestions: [["activity+json"]]
2466 description: "Tesla settings",
2471 description: "Tesla adapter",
2472 suggestions: [Tesla.Adapter.Hackney]
2480 description: "Pleroma chat settings",
2496 description: "Enables suggestions"
2499 key: :third_party_engine,
2501 description: "URL for third party engine",
2503 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}"
2509 description: "Request timeout to third party engine",
2510 suggestions: [300_000]
2515 description: "Limit for suggestions",
2521 suggestions: ["https://vinayaka.distsn.org"]
2527 key: Pleroma.Web.Endpoint.MetricsExporter,
2529 description: "Prometheus settings",
2534 description: "API endpoint with metrics",
2535 suggestions: ["/api/pleroma/app_metrics"]
2540 group: :http_signatures,
2542 description: "HTTP Signatures settings",
2547 suggestions: [Pleroma.Signature]
2553 key: Pleroma.Uploaders.MDII,
2559 suggestions: ["https://mdii.sakura.ne.jp/mdii-post.cgi"]
2564 suggestions: ["https://mdii.sakura.ne.jp"]
2572 description: "HTTP settings",
2576 type: [:string, :atom, nil],
2577 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}, nil]
2580 key: :send_user_agent,
2589 # Workaround for remote server certificate chain issues
2590 partial_chain: &:hackney_connect.partial_chain/1,
2591 # We don't support TLS v1.3 yet
2592 versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
2605 key: :allow_inline_images,
2609 key: :allow_headings,
2622 type: {:list, :module},
2623 suggestions: [[Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]]
2633 key: :deny_follow_blocked,
2640 key: :mrf_normalize_markup,
2646 suggestions: [Pleroma.HTML.Scrubber.Default]
2656 key: :restricted_nicknames,
2657 type: {:list, :string},
2677 "ostatus_subscribe",
2702 suggestions: [86_400]
2706 type: {:list, :string},
2707 suggestions: [["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]]
2715 "X-RateLimit-Reset",
2716 "X-RateLimit-Limit",
2717 "X-RateLimit-Remaining",
2729 type: {:list, :string},
2730 suggestions: [["Authorization", "Content-Type", "Idempotency-Key"]]
2736 key: Pleroma.Plugs.RemoteIp,
2739 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
2741 `Pleroma.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2747 description: "Enable/disable the plug. Defaults to `false`.",
2748 suggestions: [true, false]
2752 type: {:list, :string},
2754 "A list of strings naming the `req_headers` to use when deriving the `remote_ip`. Order does not matter. Defaults to `~w[forwarded x-forwarded-for x-client-ip x-real-ip]`."
2758 type: {:list, :string},
2760 "A list of strings in [CIDR](https://en.wikipedia.org/wiki/CIDR) notation specifying the IPs of known proxies. Defaults to `[]`."
2764 type: {:list, :string},
2766 "Defaults to [localhost](https://en.wikipedia.org/wiki/Localhost) and [private network](https://en.wikipedia.org/wiki/Private_network)."
2772 key: :web_cache_ttl,
2775 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2781 "activity pub routes (except question activities). Defaults to `nil` (no expiration).",
2782 suggestions: [30_000, nil]
2785 key: :activity_pub_question,
2788 "activity pub routes (question activities). Defaults to `30_000` (30 seconds).",
2789 suggestions: [30_000]