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."
118 key: Pleroma.Upload.Filter.Mogrify,
120 description: "Uploads mogrify filter settings",
124 type: [:string, {:list, :string}, {:list, :tuple}],
125 description: "List of actions for the mogrify command",
128 ["strip", "auto-orient"],
130 ["strip", "auto-orient", {"implode", "1"}]
137 key: Pleroma.Upload.Filter.AnonymizeFilename,
139 description: "Filter replaces the filename of the upload",
145 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
146 " filename extension by using {extension}, for example custom-file-name.{extension}",
148 "custom-file-name.{extension}",
156 key: Pleroma.Emails.Mailer,
158 description: "Mailer-related settings",
164 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)," <>
165 " or Swoosh.Adapters.Local for in-memory mailbox",
167 Swoosh.Adapters.SMTP,
168 Swoosh.Adapters.Sendgrid,
169 Swoosh.Adapters.Sendmail,
170 Swoosh.Adapters.Mandrill,
171 Swoosh.Adapters.Mailgun,
172 Swoosh.Adapters.Mailjet,
173 Swoosh.Adapters.Postmark,
174 Swoosh.Adapters.SparkPost,
175 Swoosh.Adapters.AmazonSES,
177 Swoosh.Adapters.SocketLabs,
178 Swoosh.Adapters.Gmail
184 description: "Allow/disallow send emails"
187 group: {:subgroup, Swoosh.Adapters.SMTP},
190 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
191 suggestions: ["smtp.gmail.com"]
194 group: {:subgroup, Swoosh.Adapters.SMTP},
197 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
198 suggestions: ["pleroma"]
201 group: {:subgroup, Swoosh.Adapters.SMTP},
204 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
205 suggestions: ["password"]
208 group: {:subgroup, Swoosh.Adapters.SMTP},
211 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
214 group: {:subgroup, Swoosh.Adapters.SMTP},
217 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
218 suggestions: [:always, :never, :if_available]
221 group: {:subgroup, Swoosh.Adapters.SMTP},
224 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
225 suggestions: [:always, :never, :if_available]
228 group: {:subgroup, Swoosh.Adapters.SMTP},
231 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
235 group: {:subgroup, Swoosh.Adapters.SMTP},
238 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
242 group: {:subgroup, Swoosh.Adapters.SMTP},
245 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
248 group: {:subgroup, Swoosh.Adapters.Sendgrid},
251 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
252 suggestions: ["my-api-key"]
255 group: {:subgroup, Swoosh.Adapters.Sendmail},
258 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
259 suggestions: ["/usr/bin/sendmail"]
262 group: {:subgroup, Swoosh.Adapters.Sendmail},
265 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
266 suggestions: ["-N delay,failure,success"]
269 group: {:subgroup, Swoosh.Adapters.Sendmail},
272 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
275 group: {:subgroup, Swoosh.Adapters.Mandrill},
278 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
279 suggestions: ["my-api-key"]
282 group: {:subgroup, Swoosh.Adapters.Mailgun},
285 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
286 suggestions: ["my-api-key"]
289 group: {:subgroup, Swoosh.Adapters.Mailgun},
292 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
293 suggestions: ["pleroma.com"]
296 group: {:subgroup, Swoosh.Adapters.Mailjet},
299 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
300 suggestions: ["my-api-key"]
303 group: {:subgroup, Swoosh.Adapters.Mailjet},
306 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
307 suggestions: ["my-secret-key"]
310 group: {:subgroup, Swoosh.Adapters.Postmark},
313 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
314 suggestions: ["my-api-key"]
317 group: {:subgroup, Swoosh.Adapters.SparkPost},
320 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
321 suggestions: ["my-api-key"]
324 group: {:subgroup, Swoosh.Adapters.SparkPost},
327 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
328 suggestions: ["https://api.sparkpost.com/api/v1"]
331 group: {:subgroup, Swoosh.Adapters.AmazonSES},
334 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
335 suggestions: ["us-east-1", "us-east-2"]
338 group: {:subgroup, Swoosh.Adapters.AmazonSES},
341 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
342 suggestions: ["aws-access-key"]
345 group: {:subgroup, Swoosh.Adapters.AmazonSES},
348 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
349 suggestions: ["aws-secret-key"]
352 group: {:subgroup, Swoosh.Adapters.Dyn},
355 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
356 suggestions: ["my-api-key"]
359 group: {:subgroup, Swoosh.Adapters.SocketLabs},
362 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
365 group: {:subgroup, Swoosh.Adapters.SocketLabs},
368 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
371 group: {:subgroup, Swoosh.Adapters.Gmail},
374 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
382 description: "URI schemes related settings",
386 type: {:list, :string},
387 description: "List of the scheme part that is considered valid to be an URL",
413 description: "Instance-related settings",
418 description: "Name of the instance",
426 description: "Email used to reach an Administrator/Moderator of the instance",
434 description: "Email used for notifications",
442 description: "The instance's description, can be seen in nodeinfo and /api/v1/instance",
450 description: "Posts character limit (CW/Subject included in the counter)",
458 description: "Hard character limit beyond which remote posts will be dropped",
466 description: "File size limit of uploads (except for avatar, background, banner)",
472 key: :avatar_upload_limit,
474 description: "File size limit of user's profile avatars",
480 key: :background_upload_limit,
482 description: "File size limit of user's profile backgrounds",
488 key: :banner_upload_limit,
490 description: "File size limit of user's profile banners",
498 description: "A map with poll limits for local polls",
502 max_option_chars: 200,
504 max_expiration: 31_536_000
511 description: "Maximum number of options",
515 key: :max_option_chars,
517 description: "Maximum number of characters per option",
521 key: :min_expiration,
523 description: "Minimum expiration time (in seconds)",
527 key: :max_expiration,
529 description: "Maximum expiration time (in seconds)",
535 key: :registrations_open,
537 description: "Enable registrations for anyone, invitations can be enabled when false"
540 key: :invites_enabled,
542 description: "Enable user invitations for admins (depends on registrations_open: false)"
545 key: :account_activation_required,
547 description: "Require users to confirm their emails before signing in"
552 description: "Enable federation with other instances"
555 key: :federation_incoming_replies_max_depth,
558 "Max. depth of reply-to activities fetching on incoming federation, to prevent out-of-memory situations while" <>
559 " 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",
565 key: :federation_reachability_timeout_days,
568 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
574 key: :federation_publisher_modules,
575 type: [:list, :module],
576 description: "List of modules for federation publishing",
578 Pleroma.Web.ActivityPub.Publisher,
586 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
589 key: :rewrite_policy,
590 type: {:list, :module},
591 description: "A list of MRF policies enabled",
593 Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
601 "Makes the client API in authentificated mode-only except for user-profiles." <>
602 " Useful for disabling the Local Timeline and The Whole Known Network"
605 key: :quarantined_instances,
606 type: {:list, :string},
608 "List of ActivityPub instances where private(DMs, followers-only) activities will not be send",
615 key: :managed_config,
618 "Whenether the config for pleroma-fe is configured in this config or in static/config.json"
623 description: "Instance static directory",
629 key: :allowed_post_formats,
630 type: {:list, :string},
631 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
642 key: :mrf_transparency,
645 "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
648 key: :mrf_transparency_exclusions,
649 type: {:list, :string},
651 "Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value",
657 key: :extended_nickname_format,
660 "Set to true to use extended local nicknames format (allows underscores/dashes)." <>
661 " This will break federation with older software for theses nicknames"
664 key: :max_pinned_statuses,
666 description: "The maximum number of pinned statuses. 0 will disable the feature",
674 key: :autofollowed_nicknames,
675 type: {:list, :string},
677 "Set to nicknames of (local) users that every new user should automatically follow",
686 key: :no_attachment_links,
689 "Set to true to disable automatically adding attachment link text to statuses"
692 key: :welcome_message,
695 "A message that will be send to a newly registered users as a direct message",
697 "Hi, @username! Welcome to the board!",
702 key: :welcome_user_nickname,
704 description: "The nickname of the local user that sends the welcome message",
711 key: :max_report_comment_size,
713 description: "The maximum size of the report comment (Default: 1000)",
719 key: :safe_dm_mentions,
722 "If set to true, only mentions at the beginning of a post will be used to address people in direct messages." <>
723 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@friend hey i really don't like @enemy\")." <>
729 description: "If set to true, system data will be shown on /api/pleroma/healthcheck"
732 key: :remote_post_retention_days,
735 "The default amount of days to retain remote posts when pruning the database",
741 key: :user_bio_length,
743 description: "A user bio maximum length (default: 5000)",
749 key: :user_name_length,
751 description: "A user name maximum length (default: 100)",
757 key: :skip_thread_containment,
759 description: "Skip filter out broken threads. The default is true"
762 key: :limit_to_local_content,
763 type: [:atom, false],
765 "Limit unauthenticated users to search for local statutes and users only. The default is :unauthenticated ",
773 key: :dynamic_configuration,
776 "Allow transferring configuration to DB with the subsequent customization from Admin api. Defaults to `false`"
779 key: :max_account_fields,
781 description: "The maximum number of custom fields in the user profile (default: 10)",
787 key: :max_remote_account_fields,
790 "The maximum number of custom fields in the remote user profile (default: 20)",
796 key: :account_field_name_length,
798 description: "An account field name maximum length (default: 512)",
804 key: :account_field_value_length,
806 description: "An account field value maximum length (default: 2048)",
812 key: :external_user_synchronization,
814 description: "Enabling following/followers counters synchronization for external users"
821 description: "Logger-related settings",
825 type: [:atom, :tuple, :module],
827 "Where logs will be send, :console - send logs to stdout, {ExSyslogger, :ex_syslogger} - to syslog, Quack.Logger - to Slack.",
828 suggestions: [[:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]]
836 description: "ExSyslogger-related settings",
841 description: "Log level",
842 suggestions: [:debug, :info, :warn, :error]
848 "A string that's prepended to every message, and is typically set to the app name",
849 suggestions: ["pleroma"]
854 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
855 suggestions: ["$metadata[$level] $message"]
859 type: {:list, :atom},
860 suggestions: [[:request_id]]
868 description: "Console logger settings",
873 description: "Log level",
874 suggestions: [:debug, :info, :warn, :error]
879 description: "It defaults to \"$date $time [$level] $levelpad$node $metadata $message\"",
880 suggestions: ["$metadata[$level] $message"]
884 type: {:list, :atom},
885 suggestions: [[:request_id]]
892 description: "Quack-related settings",
897 description: "Log level",
898 suggestions: [:debug, :info, :warn, :error]
902 type: {:list, :atom},
903 description: "Configure which metadata you want to report on",
921 description: "Configure the Slack incoming webhook",
922 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
928 key: :frontend_configurations,
930 description: "A keyword list that keeps the configuration data for any kind of frontend",
935 description: "Settings for Pleroma FE",
938 theme: "pleroma-dark",
939 logo: "/static/logo.png",
940 background: "/images/city.jpg",
941 redirectRootNoLogin: "/main/all",
942 redirectRootLogin: "/main/friends",
943 showInstanceSpecificPanel: true,
944 scopeOptionsEnabled: false,
945 formattingOptionsEnabled: false,
946 collapseMessageWithSubject: false,
947 hidePostStats: false,
948 hideUserStats: false,
950 subjectLineBehavior: "email",
951 alwaysShowSubjectInput: true
958 description: "Which theme to use, they are defined in styles.json",
959 suggestions: ["pleroma-dark"]
964 description: "URL of the logo, defaults to Pleroma's logo",
965 suggestions: ["/static/logo.png"]
971 "URL of the background, unless viewing a user profile with a background that is set",
972 suggestions: ["/images/city.jpg"]
975 key: :redirectRootNoLogin,
978 "relative URL which indicates where to redirect when a user isn't logged in",
979 suggestions: ["/main/all"]
982 key: :redirectRootLogin,
985 "relative URL which indicates where to redirect when a user is logged in",
986 suggestions: ["/main/friends"]
989 key: :showInstanceSpecificPanel,
991 description: "Whenether to show the instance's specific panel"
994 key: :scopeOptionsEnabled,
996 description: "Enable setting an notice visibility and subject/CW when posting"
999 key: :formattingOptionsEnabled,
1002 "Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats"
1005 key: :collapseMessageWithSubject,
1008 "When a message has a subject(aka Content Warning), collapse it by default"
1011 key: :hidePostStats,
1013 description: "Hide notices statistics(repeats, favorites, ...)"
1016 key: :hideUserStats,
1019 "Hide profile statistics(posts, posts per day, followers, followings, ...)"
1024 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1027 key: :subjectLineBehavior,
1029 description: "Allows changing the default behaviour of subject lines in replies.
1030 `email`: Copy and preprend re:, as in email,
1031 `masto`: Copy verbatim, as in Mastodon,
1032 `noop`: Don't copy the subjec",
1033 suggestions: ["email", "masto", "noop"]
1036 key: :alwaysShowSubjectInput,
1038 description: "When set to false, auto-hide the subject field when it's empty"
1045 description: "Settings for Masto FE",
1048 showInstanceSpecificPanel: true
1053 key: :showInstanceSpecificPanel,
1055 description: "Whenether to show the instance's specific panel"
1066 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1072 "Keyword of mascots, each element MUST contain both a url and a mime_type key",
1076 url: "/images/pleroma-fox-tan-smol.png",
1077 mime_type: "image/png"
1079 pleroma_fox_tan_shy: %{
1080 url: "/images/pleroma-fox-tan-shy.png",
1081 mime_type: "image/png"
1087 key: :default_mascot,
1090 "This will be used as the default mascot on MastoFE (default: :pleroma_fox_tan)",
1101 description: "Message Rewrite Facility",
1104 key: :media_removal,
1105 type: {:list, :string},
1106 description: "List of instances to remove medias from",
1107 suggestions: ["example.com", "*.example.com"]
1111 type: {:list, :string},
1112 description: "List of instances to put medias as NSFW(sensitive) from",
1113 suggestions: ["example.com", "*.example.com"]
1116 key: :federated_timeline_removal,
1117 type: {:list, :string},
1119 "List of instances to remove from Federated (aka The Whole Known Network) Timeline",
1120 suggestions: ["example.com", "*.example.com"]
1124 type: {:list, :string},
1125 description: "List of instances to reject any activities from",
1126 suggestions: ["example.com", "*.example.com"]
1130 type: {:list, :string},
1131 description: "List of instances to accept any activities from",
1132 suggestions: ["example.com", "*.example.com"]
1135 key: :report_removal,
1136 type: {:list, :string},
1137 description: "List of instances to reject reports from",
1138 suggestions: ["example.com", "*.example.com"]
1141 key: :avatar_removal,
1142 type: {:list, :string},
1143 description: "List of instances to strip avatars from",
1144 suggestions: ["example.com", "*.example.com"]
1147 key: :banner_removal,
1148 type: {:list, :string},
1149 description: "List of instances to strip banners from",
1150 suggestions: ["example.com", "*.example.com"]
1159 "This policy processes messages through an alternate pipeline when a given message matches certain criteria." <>
1160 " All criteria are configured as a map of regular expressions to lists of policy modules.",
1165 description: "Matches a series of regular expressions against the actor field",
1168 ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy]
1176 key: :mrf_rejectnonpublic,
1180 key: :allow_followersonly,
1182 description: "whether to allow followers-only posts"
1187 description: "whether to allow direct messages"
1193 key: :mrf_hellthread,
1195 description: "Block messages with too much mentions",
1198 key: :delist_threshold,
1201 "Number of mentioned users after which the message gets delisted (the message can still be seen, " <>
1202 " but it will not show up in public timelines and mentioned users won't get notifications about it). Set to 0 to disable",
1206 key: :reject_threshold,
1209 "Number of mentioned users after which the messaged gets rejected. Set to 0 to disable",
1218 description: "Reject or Word-Replace messages with a keyword or regex",
1222 type: [:string, :regex],
1224 "A list of patterns which result in message being rejected, each pattern can be a string or a regular expression",
1225 suggestions: ["foo", ~r/foo/iu]
1228 key: :federated_timeline_removal,
1229 type: [:string, :regex],
1231 "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",
1232 suggestions: ["foo", ~r/foo/iu]
1236 type: [{:string, :string}, {:regex, :string}],
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", "bar"}, {~r/foo/iu, "bar"}]
1247 description: "Block messages which mention a user",
1251 type: {:list, :string},
1252 description: "A list of actors, for which to drop any posts mentioning",
1253 suggestions: [["actor1", "actor2"]]
1259 key: :mrf_vocabulary,
1261 description: "Filter messages which belong to certain activity vocabularies",
1265 type: {:list, :string},
1267 "A list of ActivityStreams terms to accept. If empty, all supported messages are accepted",
1268 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1272 type: {:list, :string},
1274 "A list of ActivityStreams terms to reject. If empty, no messages are rejected",
1275 suggestions: [["Create", "Follow", "Mention", "Announce", "Like"]]
1281 # key: :mrf_user_allowlist,
1284 # "The keys in this section are the domain names that the policy should apply to." <>
1285 # " Each key should be assigned a list of users that should be allowed through by their ActivityPub ID",
1287 # ["example.org": ["https://example.org/users/admin"]],
1289 # ["example.org": ["https://example.org/users/admin"]]
1297 description: "Media proxy",
1302 description: "Enables proxying of remote media to the instance's proxy"
1308 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts",
1309 suggestions: ["https://example.com"]
1314 description: "Options for Pleroma.ReverseProxy",
1315 suggestions: [[max_body_length: 25 * 1_048_576, redirect_on_failure: false]]
1319 type: {:list, :string},
1320 description: "List of domains to bypass the mediaproxy",
1321 suggestions: ["example.com"]
1329 description: "Gopher settings",
1334 description: "Enables the gopher interface"
1339 description: "IP address to bind to",
1340 suggestions: [{0, 0, 0, 0}]
1345 description: "Port to bind to",
1351 description: "Port advertised in urls (optional, defaults to port)",
1358 key: Pleroma.Web.Endpoint,
1360 description: "Phoenix endpoint configuration",
1365 description: "http protocol configuration",
1367 [port: 8080, ip: {127, 0, 0, 1}]
1372 type: {:list, :tuple},
1373 description: "dispatch settings",
1378 {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
1379 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
1380 {Phoenix.Transports.WebSocket,
1381 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
1382 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
1384 # end copied from config.exs
1399 description: "port",
1409 description: "configuration for generating urls",
1411 [host: "example.com", port: 2020, scheme: "https"]
1417 description: "Host",
1425 description: "port",
1433 description: "Scheme",
1442 key: :instrumenters,
1443 type: {:list, :module},
1444 suggestions: [Pleroma.Web.Endpoint.Instrumenter]
1449 suggestions: ["https"]
1452 key: :secret_key_base,
1454 suggestions: ["aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl"]
1459 suggestions: ["CqaoopA2"]
1462 key: :render_errors,
1464 suggestions: [[view: Pleroma.Web.ErrorView, accepts: ~w(json)]],
1469 suggestions: [Pleroma.Web.ErrorView]
1473 type: {:list, :string},
1474 suggestions: ["json"]
1481 suggestions: [[name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]],
1486 suggestions: [Pleroma.PubSub]
1491 suggestions: [Phoenix.PubSub.PG2]
1496 key: :secure_cookie_flag,
1500 key: :extra_cookie_attrs,
1501 type: {:list, :string},
1502 suggestions: ["SameSite=Lax"]
1510 description: "ActivityPub-related settings",
1513 key: :unfollow_blocked,
1515 description: "Whether blocks result in people getting unfollowed"
1518 key: :outgoing_blocks,
1520 description: "Whether to federate blocks to other instances"
1523 key: :sign_object_fetches,
1525 description: "Sign object fetches with HTTP signatures"
1528 key: :follow_handshake_timeout,
1530 description: "Following handshake timeout",
1537 key: :http_security,
1539 description: "HTTP security settings",
1544 description: "Whether the managed content security policy is enabled"
1549 description: "Whether to additionally send a Strict-Transport-Security header"
1554 description: "The maximum age for the Strict-Transport-Security header if sent",
1555 suggestions: [31_536_000]
1560 description: "The maximum age for the Expect-CT header if sent",
1561 suggestions: [2_592_000]
1564 key: :referrer_policy,
1566 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1567 suggestions: ["same-origin", "no-referrer"]
1572 description: "Adds the specified url to report-uri and report-to group in CSP header",
1573 suggestions: ["https://example.com/report-uri"]
1578 group: :web_push_encryption,
1579 key: :vapid_details,
1582 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it",
1588 "a mailto link for the administrative contact." <>
1589 " 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," <>
1590 " is unavailable for an extended period, or otherwise can't respond, someone else on the list can",
1591 suggestions: ["Subject"]
1596 description: "VAPID public key",
1597 suggestions: ["Public key"]
1602 description: "VAPID private keyn",
1603 suggestions: ["Private key"]
1609 key: Pleroma.Captcha,
1611 description: "Captcha-related settings",
1616 description: "Whether the captcha should be shown on registration"
1621 description: "The method/service to use for captcha",
1622 suggestions: [Pleroma.Captcha.Kocaptcha]
1625 key: :seconds_valid,
1627 description: "The time in seconds for which the captcha is valid",
1634 key: Pleroma.Captcha.Kocaptcha,
1637 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1638 " here: https://github.com/koto-bank/kocaptcha. The default endpoint https://captcha.kotobank.ch is hosted by the developer",
1643 description: "the kocaptcha endpoint to use",
1644 suggestions: ["https://captcha.kotobank.ch"]
1652 "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",
1657 description: "Token",
1658 suggestions: ["some_random_token"]
1663 group: :pleroma_job_queue,
1666 description: "[Deprecated] Replaced with `Oban`/`:queues` (keeping the same format)"
1670 key: Pleroma.Web.Federator.RetryQueue,
1672 description: "[Deprecated] See `Oban` and `:workers` sections for configuration notes",
1677 description: "[Deprecated] Replaced as `Oban`/`:queues`/`:outgoing_federation` value"
1686 [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
1688 Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
1689 it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
1690 otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
1691 (see https://github.com/sorentwo/oban/issues/52).
1697 description: "Application's Ecto repo",
1698 suggestions: [Pleroma.Repo]
1703 description: "Logs verbose mode"
1707 type: [:atom, :tuple],
1709 "Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
1710 suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
1716 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1719 activity_expiration: 10,
1721 federator_incoming: 50,
1722 federator_outgoing: 50,
1724 scheduled_activities: 10,
1731 key: :activity_expiration,
1733 description: "Activity expiration queue",
1739 description: "Background queue",
1743 key: :federator_incoming,
1745 description: "Incoming federation queue",
1749 key: :federator_outgoing,
1751 description: "Outgoing federation queue",
1757 description: "Email sender queue, see Pleroma.Emails.Mailer",
1761 key: :scheduled_activities,
1763 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1767 key: :transmogrifier,
1769 description: "Transmogrifier queue",
1775 description: "Web push notifications queue",
1786 description: "Includes custom worker options not interpretable directly by `Oban`",
1791 description: "Max retry attempts for failed jobs, per `Oban` queue",
1794 federator_incoming: 5,
1795 federator_outgoing: 5
1803 key: Pleroma.Web.Metadata,
1805 decsription: "Metadata-related settings",
1809 type: {:list, :module},
1810 description: "List of metadata providers to enable",
1813 Pleroma.Web.Metadata.Providers.OpenGraph,
1814 Pleroma.Web.Metadata.Providers.TwitterCard,
1815 Pleroma.Web.Metadata.Providers.RelMe
1822 description: "If set to true nsfw attachments will be shown in previews"
1835 "if enabled the instance will parse metadata from attached links to generate link previews"
1839 type: {:list, :string},
1840 description: "list of hosts which will be ignored by the metadata parser",
1841 suggestions: [["accounts.google.com", "xss.website"]]
1845 type: {:list, :string},
1846 description: "list TLDs (top-level domains) which will ignore for parse metadata",
1847 suggestions: [["local", "localdomain", "lan"]]
1851 type: {:list, :module},
1852 description: "list of Rich Media parsers",
1854 Generator.richmedia_parsers()
1859 type: {:list, :module},
1860 description: "list of rich media ttl setters",
1862 [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
1869 key: :fetch_initial_posts,
1871 description: "Fetching initial posts settings",
1877 "if enabled, when a new user is federated with, fetch some of their latest posts"
1882 description: "the amount of pages to fetch",
1888 group: :auto_linker,
1891 description: "Configuration for the auto_linker library",
1895 type: [:string, false],
1896 description: "specify the class to be added to the generated link. false to clear",
1897 suggestions: ["auto-linker", false]
1901 type: [:string, false],
1902 description: "override the rel attribute. false to clear",
1903 suggestions: ["noopener noreferrer", false]
1908 description: "set to false to remove target='_blank' attribute"
1913 description: "Set to true to link urls with schema http://google.com"
1917 type: [:integer, false],
1919 "Set to a number to truncate urls longer then the number. Truncated urls will end in `..`",
1920 suggestions: [15, false]
1925 description: "Strip the scheme prefix"
1930 description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
1936 key: Pleroma.ScheduledActivity,
1938 description: "Scheduled activities settings",
1941 key: :daily_user_limit,
1944 "the number of scheduled activities a user is allowed to create in a single day (Default: 25)",
1948 key: :total_user_limit,
1951 "the number of scheduled activities a user is allowed to create in total (Default: 300)",
1957 description: "whether scheduled activities are sent to the job queue to be executed"
1963 key: Pleroma.ActivityExpiration,
1965 description: "Expired activity settings",
1970 description: "whether expired activities will be sent to the job queue to be deleted"
1977 description: "Authenticator",
1980 key: Pleroma.Web.Auth.Authenticator,
1982 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
1991 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
1992 " will be verified by trying to authenticate (bind) to an LDAP server." <>
1993 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
1994 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
1999 description: "enables LDAP authentication"
2004 description: "LDAP server hostname",
2005 suggestions: ["localhosts"]
2010 description: "LDAP port, e.g. 389 or 636",
2011 suggestions: [389, 636]
2016 description: "true to use SSL, usually implies the port 636"
2021 description: "additional SSL options"
2026 description: "true to start TLS, usually implies the port 389"
2031 description: "additional TLS options"
2036 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2037 suggestions: ["dc=example,dc=com"]
2043 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2052 description: "Authentication / authorization settings",
2055 key: :auth_template,
2058 "authentication form template. By default it's show.html which corresponds to lib/pleroma/web/templates/o_auth/o_auth/show.html.ee",
2059 suggestions: ["show.html"]
2062 key: :oauth_consumer_template,
2065 "OAuth consumer mode authentication form template. By default it's consumer.html which corresponds to" <>
2066 " lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex",
2067 suggestions: ["consumer.html"]
2070 key: :oauth_consumer_strategies,
2073 "the list of enabled OAuth consumer strategies; by default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2074 " Each entry in this space-delimited string should be of format <strategy> or <strategy>:<dependency>" <>
2075 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2076 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2082 key: :email_notifications,
2084 description: "Email notifications settings",
2090 "emails of \"what you've missed\" for users who have been inactive for a while",
2094 schedule: "0 0 * * 0",
2096 inactivity_threshold: 7
2103 description: "globally enable or disable digest emails"
2109 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\"",
2110 suggestions: ["0 0 * * 0"]
2115 description: "Minimum interval between digest emails to one user",
2119 key: :inactivity_threshold,
2121 description: "Minimum user inactivity threshold",
2130 key: Pleroma.Emails.UserEmail,
2132 description: "Email template settings",
2136 type: [:string, nil],
2137 description: "a path to a custom logo. Set it to nil to use the default Pleroma logo",
2138 suggestions: ["some/path/logo.png", nil]
2143 description: "a map with color settings for email templates.",
2146 link_color: "#d8a070",
2147 background_color: "#2C3645",
2148 content_background_color: "#1B2635",
2149 header_color: "#d8a070",
2150 text_color: "#b9b9ba",
2151 text_muted_color: "#b9b9ba"
2158 suggestions: ["#d8a070"]
2161 key: :background_color,
2163 suggestions: ["#2C3645"]
2166 key: :content_background_color,
2168 suggestions: ["#1B2635"]
2173 suggestions: ["#d8a070"]
2178 suggestions: ["#b9b9ba"]
2181 key: :text_muted_color,
2183 suggestions: ["#b9b9ba"]
2193 description: "Configure OAuth 2 provider capabilities",
2196 key: :token_expires_in,
2198 description: "The lifetime in seconds of the access token",
2202 key: :issue_new_refresh_token,
2205 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2208 key: :clean_expired_tokens,
2210 description: "Enable a background job to clean expired oauth tokens. Defaults to false"
2213 key: :clean_expired_tokens_interval,
2216 "Interval to run the job to clean expired tokens. Defaults to 86_400_000 (24 hours).",
2217 suggestions: [86_400_000]
2227 key: :shortcode_globs,
2228 type: {:list, :string},
2229 description: "Location of custom emoji files. * can be used as a wildcard",
2230 suggestions: [["/emoji/custom/**/*.png"]]
2233 key: :pack_extensions,
2234 type: {:list, :string},
2236 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2237 suggestions: [[".png", ".gif"]]
2243 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the groupname" <>
2244 " and the value the location or array of locations. * can be used as a wildcard",
2247 # Put groups that have higher priority than defaults here. Example in `docs/config/custom_emoji.md`
2248 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2253 key: :default_manifest,
2256 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2257 " Currently only one manifest can be added (no arrays)",
2258 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2261 key: :shared_pack_cache_seconds_per_file,
2264 "When an emoji pack is shared, the archive is created and cached in memory" <>
2265 " for this amount of seconds multiplied by the number of files.",
2274 description: "Database related settings",
2279 description: "If RUM indexes should be used. Defaults to false"
2287 description: "Rate limit settings. This is an advanced feature and disabled by default.",
2291 type: [:tuple, {:list, :tuple}],
2292 description: "for the search requests (account & status search etc.)",
2293 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2296 key: :app_account_creation,
2297 type: [:tuple, {:list, :tuple}],
2298 description: "for registering user accounts from the same IP address",
2299 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2302 key: :relations_actions,
2303 type: [:tuple, {:list, :tuple}],
2304 description: "for actions on relations with all users (follow, unfollow)",
2305 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2308 key: :relation_id_action,
2309 type: [:tuple, {:list, :tuple}],
2310 description: "for actions on relation with a specific user (follow, unfollow)",
2311 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2314 key: :statuses_actions,
2315 type: [:tuple, {:list, :tuple}],
2317 "for create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2318 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2321 key: :status_id_action,
2322 type: [:tuple, {:list, :tuple}],
2324 "for fav / unfav or reblog / unreblog actions on the same status by the same user",
2325 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2333 "To enable simple command line interface accessible over ssh, add a setting like this to your configuration file",
2338 description: "Enables ssh"
2343 description: "Dir with ssh keys",
2344 suggestions: ["/some/path/ssh_keys"]
2349 description: "Handler module",
2350 suggestions: ["Pleroma.BBS.Handler"]
2355 description: "Port to connect",
2356 suggestions: [10_022]
2359 key: :password_authenticator,
2361 description: "Authenticator module",
2362 suggestions: ["Pleroma.BBS.Authenticator"]
2369 description: "Mime types",
2376 "application/xml" => ["xml"],
2377 "application/xrd+xml" => ["xrd+xml"],
2378 "application/jrd+json" => ["jrd+json"],
2379 "application/activity+json" => ["activity+json"],
2380 "application/ld+json" => ["activity+json"]
2385 key: "application/xml",
2386 type: {:list, :string},
2387 suggestions: [["xml"]]
2390 key: "application/xrd+xml",
2391 type: {:list, :string},
2392 suggestions: [["xrd+xml"]]
2395 key: "application/jrd+json",
2396 type: {:list, :string},
2397 suggestions: [["jrd+json"]]
2400 key: "application/activity+json",
2401 type: {:list, :string},
2402 suggestions: [["activity+json"]]
2405 key: "application/ld+json",
2406 type: {:list, :string},
2407 suggestions: [["activity+json"]]
2416 description: "Tesla settings",
2421 description: "Tesla adapter",
2422 suggestions: [Tesla.Adapter.Hackney]
2430 description: "Pleroma chat settings",
2446 description: "Enables suggestions"
2449 key: :third_party_engine,
2451 description: "URL for third party engine",
2453 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}"
2459 description: "Request timeout to third party engine",
2460 suggestions: [300_000]
2465 description: "Limit for suggestions",
2471 suggestions: ["https://vinayaka.distsn.org"]
2477 key: Pleroma.Web.Endpoint.MetricsExporter,
2479 description: "Prometheus settings",
2484 description: "API endpoint with metrics",
2485 suggestions: ["/api/pleroma/app_metrics"]
2490 group: :http_signatures,
2492 description: "HTTP Signatures settings",
2497 suggestions: [Pleroma.Signature]
2503 key: Pleroma.Uploaders.MDII,
2509 suggestions: ["https://mdii.sakura.ne.jp/mdii-post.cgi"]
2514 suggestions: ["https://mdii.sakura.ne.jp"]
2522 description: "HTTP settings",
2526 type: [:string, :atom, nil],
2527 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}, nil]
2530 key: :send_user_agent,
2539 # Workaround for remote server certificate chain issues
2540 partial_chain: &:hackney_connect.partial_chain/1,
2541 # We don't support TLS v1.3 yet
2542 versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
2555 key: :allow_inline_images,
2559 key: :allow_headings,
2572 type: {:list, :module},
2573 suggestions: [[Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]]
2583 key: :deny_follow_blocked,
2590 key: :mrf_normalize_markup,
2596 suggestions: [Pleroma.HTML.Scrubber.Default]
2606 key: :restricted_nicknames,
2607 type: {:list, :string},
2627 "ostatus_subscribe",
2652 suggestions: [86_400]
2656 type: {:list, :string},
2657 suggestions: [["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]]
2665 "X-RateLimit-Reset",
2666 "X-RateLimit-Limit",
2667 "X-RateLimit-Remaining",
2679 type: {:list, :string},
2680 suggestions: [["Authorization", "Content-Type", "Idempotency-Key"]]
2686 key: :web_cache_ttl,
2689 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2695 "activity pub routes (except question activities). Defaults to `nil` (no expiration).",
2696 suggestions: [30_000, nil]
2699 key: :activity_pub_question,
2702 "activity pub routes (question activities). Defaults to `30_000` (30 seconds).",
2703 suggestions: [30_000]