85f90ca3e155337de65a2937999564063ba71d25
[akkoma] / config / description.exs
1 use Mix.Config
2
3 websocket_config = [
4 path: "/websocket",
5 serializer: [
6 {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
7 {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
8 ],
9 timeout: 60_000,
10 transport_log: false,
11 compress: false
12 ]
13
14 installed_frontend_options = [
15 %{
16 key: "name",
17 label: "Name",
18 type: :string,
19 description:
20 "Name of the installed frontend. Valid config must include both `Name` and `Reference` values."
21 },
22 %{
23 key: "ref",
24 label: "Reference",
25 type: :string,
26 description:
27 "Reference of the installed frontend to be used. Valid config must include both `Name` and `Reference` values."
28 }
29 ]
30
31 frontend_options = [
32 %{
33 key: "name",
34 label: "Name",
35 type: :string,
36 description: "Name of the frontend."
37 },
38 %{
39 key: "ref",
40 label: "Reference",
41 type: :string,
42 description: "Reference of the frontend to be used."
43 },
44 %{
45 key: "git",
46 label: "Git Repository URL",
47 type: :string,
48 description: "URL of the git repository of the frontend"
49 },
50 %{
51 key: "build_url",
52 label: "Build URL",
53 type: :string,
54 description:
55 "Either an url to a zip file containing the frontend or a template to build it by inserting the `ref`. The string `${ref}` will be replaced by the configured `ref`.",
56 example: "https://some.url/builds/${ref}.zip"
57 },
58 %{
59 key: "build_dir",
60 label: "Build directory",
61 type: :string,
62 description: "The directory inside the zip file "
63 },
64 %{
65 key: "custom-http-headers",
66 label: "Custom HTTP headers",
67 type: {:list, :string},
68 description: "The custom HTTP headers for the frontend"
69 }
70 ]
71
72 config :pleroma, :config_description, [
73 %{
74 group: :pleroma,
75 key: Pleroma.Upload,
76 type: :group,
77 description: "Upload general settings",
78 children: [
79 %{
80 key: :uploader,
81 type: :module,
82 description: "Module which will be used for uploads",
83 suggestions: {:list_behaviour_implementations, Pleroma.Uploaders.Uploader}
84 },
85 %{
86 key: :filters,
87 type: {:list, :module},
88 description:
89 "List of filter modules for uploads. Module names are shortened (removed leading `Pleroma.Upload.Filter.` part), but on adding custom module you need to use full name.",
90 suggestions: {:list_behaviour_implementations, Pleroma.Upload.Filter}
91 },
92 %{
93 key: :link_name,
94 type: :boolean,
95 description:
96 "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`."
97 },
98 %{
99 key: :base_url,
100 label: "Base URL",
101 type: :string,
102 description: "Base URL for the uploads, needed if you use CDN",
103 suggestions: [
104 "https://cdn-host.com"
105 ]
106 },
107 %{
108 key: :proxy_remote,
109 type: :boolean,
110 description: """
111 Proxy requests to the remote uploader.\n
112 Useful if media upload endpoint is not internet accessible.
113 """
114 },
115 %{
116 key: :filename_display_max_length,
117 type: :integer,
118 description: "Set max length of a filename to display. 0 = no limit. Default: 30"
119 }
120 ]
121 },
122 %{
123 group: :pleroma,
124 key: Pleroma.Uploaders.Local,
125 type: :group,
126 description: "Local uploader-related settings",
127 children: [
128 %{
129 key: :uploads,
130 type: :string,
131 description: "Path where user's uploads will be saved",
132 suggestions: [
133 "uploads"
134 ]
135 }
136 ]
137 },
138 %{
139 group: :pleroma,
140 key: Pleroma.Uploaders.S3,
141 type: :group,
142 description: "S3 uploader-related settings",
143 children: [
144 %{
145 key: :bucket,
146 type: :string,
147 description: "S3 bucket",
148 suggestions: [
149 "bucket"
150 ]
151 },
152 %{
153 key: :bucket_namespace,
154 type: :string,
155 description: "S3 bucket namespace",
156 suggestions: ["pleroma"]
157 },
158 %{
159 key: :truncated_namespace,
160 type: :string,
161 description:
162 "If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
163 " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in Upload base_url."
164 },
165 %{
166 key: :streaming_enabled,
167 type: :boolean,
168 description:
169 "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."
170 }
171 ]
172 },
173 %{
174 group: :pleroma,
175 key: Pleroma.Upload.Filter.Mogrify,
176 type: :group,
177 description: "Uploads mogrify filter settings",
178 children: [
179 %{
180 key: :args,
181 type: [:string, {:list, :string}, {:list, :tuple}],
182 description:
183 "List of actions for the mogrify command. It's possible to add self-written settings as string. " <>
184 "For example `auto-orient, strip, {\"resize\", \"3840x1080>\"}` value will be parsed into valid list of the settings.",
185 suggestions: [
186 "strip",
187 "auto-orient",
188 {"implode", "1"}
189 ]
190 }
191 ]
192 },
193 %{
194 group: :pleroma,
195 key: Pleroma.Upload.Filter.AnonymizeFilename,
196 type: :group,
197 description: "Filter replaces the filename of the upload",
198 children: [
199 %{
200 key: :text,
201 type: :string,
202 description:
203 "Text to replace filenames in links. If no setting, {random}.extension will be used. You can get the original" <>
204 " filename extension by using {extension}, for example custom-file-name.{extension}.",
205 suggestions: [
206 "custom-file-name.{extension}"
207 ]
208 }
209 ]
210 },
211 %{
212 group: :pleroma,
213 key: Pleroma.Emails.Mailer,
214 type: :group,
215 description: "Mailer-related settings",
216 children: [
217 %{
218 key: :adapter,
219 type: :module,
220 description:
221 "One of the mail adapters listed in [Swoosh readme](https://github.com/swoosh/swoosh#adapters)",
222 suggestions: [
223 Swoosh.Adapters.SMTP,
224 Swoosh.Adapters.Sendgrid,
225 Swoosh.Adapters.Sendmail,
226 Swoosh.Adapters.Mandrill,
227 Swoosh.Adapters.Mailgun,
228 Swoosh.Adapters.Mailjet,
229 Swoosh.Adapters.Postmark,
230 Swoosh.Adapters.SparkPost,
231 Swoosh.Adapters.AmazonSES,
232 Swoosh.Adapters.Dyn,
233 Swoosh.Adapters.SocketLabs,
234 Swoosh.Adapters.Gmail
235 ]
236 },
237 %{
238 key: :enabled,
239 type: :boolean,
240 description: "Allow/disallow send emails"
241 },
242 %{
243 group: {:subgroup, Swoosh.Adapters.SMTP},
244 key: :relay,
245 type: :string,
246 description: "Hostname or IP address",
247 suggestions: ["smtp.example.com"]
248 },
249 %{
250 group: {:subgroup, Swoosh.Adapters.SMTP},
251 key: :port,
252 type: :integer,
253 description: "SMTP port"
254 },
255 %{
256 group: {:subgroup, Swoosh.Adapters.SMTP},
257 key: :username,
258 type: :string,
259 description: "SMTP auth username",
260 suggestions: ["user@example.com"]
261 },
262 %{
263 group: {:subgroup, Swoosh.Adapters.SMTP},
264 key: :password,
265 type: :string,
266 description: "SMTP auth password",
267 suggestions: ["password"]
268 },
269 %{
270 group: {:subgroup, Swoosh.Adapters.SMTP},
271 key: :ssl,
272 label: "SSL",
273 type: :boolean,
274 description: "Use implicit SSL/TLS: e.g., port 465",
275 },
276 %{
277 group: {:subgroup, Swoosh.Adapters.SMTP},
278 key: :tls,
279 label: "STARTTLS",
280 type: {:dropdown, :atom},
281 description: "Explicit TLS (STARTTLS) mode",
282 suggestions: [:if_available, :always, :never]
283 },
284 %{
285 group: {:subgroup, Swoosh.Adapters.SMTP},
286 key: :auth,
287 type: {:dropdown, :atom},
288 description: "SMTP authentication mode",
289 suggestions: [:if_available, :always, :never]
290 },
291 %{
292 group: {:subgroup, Swoosh.Adapters.SMTP},
293 key: :retries,
294 type: :integer,
295 description: "`Swoosh.Adapters.SMTP` adapter specific setting",
296 suggestions: [5]
297 },
298 %{
299 group: {:subgroup, Swoosh.Adapters.SMTP},
300 key: :no_mx_lookups,
301 label: "No MX lookups",
302 type: :boolean,
303 description: "`Swoosh.Adapters.SMTP` adapter specific setting"
304 },
305 %{
306 group: {:subgroup, Swoosh.Adapters.Sendgrid},
307 key: :api_key,
308 label: "API key",
309 type: :string,
310 description: "`Swoosh.Adapters.Sendgrid` adapter specific setting",
311 suggestions: ["my-api-key"]
312 },
313 %{
314 group: {:subgroup, Swoosh.Adapters.Sendmail},
315 key: :cmd_path,
316 type: :string,
317 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
318 suggestions: ["/usr/bin/sendmail"]
319 },
320 %{
321 group: {:subgroup, Swoosh.Adapters.Sendmail},
322 key: :cmd_args,
323 type: :string,
324 description: "`Swoosh.Adapters.Sendmail` adapter specific setting",
325 suggestions: ["-N delay,failure,success"]
326 },
327 %{
328 group: {:subgroup, Swoosh.Adapters.Sendmail},
329 key: :qmail,
330 type: :boolean,
331 description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
332 },
333 %{
334 group: {:subgroup, Swoosh.Adapters.Mandrill},
335 key: :api_key,
336 label: "API key",
337 type: :string,
338 description: "`Swoosh.Adapters.Mandrill` adapter specific setting",
339 suggestions: ["my-api-key"]
340 },
341 %{
342 group: {:subgroup, Swoosh.Adapters.Mailgun},
343 key: :api_key,
344 label: "API key",
345 type: :string,
346 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
347 suggestions: ["my-api-key"]
348 },
349 %{
350 group: {:subgroup, Swoosh.Adapters.Mailgun},
351 key: :domain,
352 type: :string,
353 description: "`Swoosh.Adapters.Mailgun` adapter specific setting",
354 suggestions: ["pleroma.com"]
355 },
356 %{
357 group: {:subgroup, Swoosh.Adapters.Mailjet},
358 key: :api_key,
359 label: "API key",
360 type: :string,
361 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
362 suggestions: ["my-api-key"]
363 },
364 %{
365 group: {:subgroup, Swoosh.Adapters.Mailjet},
366 key: :secret,
367 type: :string,
368 description: "`Swoosh.Adapters.Mailjet` adapter specific setting",
369 suggestions: ["my-secret-key"]
370 },
371 %{
372 group: {:subgroup, Swoosh.Adapters.Postmark},
373 key: :api_key,
374 label: "API key",
375 type: :string,
376 description: "`Swoosh.Adapters.Postmark` adapter specific setting",
377 suggestions: ["my-api-key"]
378 },
379 %{
380 group: {:subgroup, Swoosh.Adapters.SparkPost},
381 key: :api_key,
382 label: "API key",
383 type: :string,
384 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
385 suggestions: ["my-api-key"]
386 },
387 %{
388 group: {:subgroup, Swoosh.Adapters.SparkPost},
389 key: :endpoint,
390 type: :string,
391 description: "`Swoosh.Adapters.SparkPost` adapter specific setting",
392 suggestions: ["https://api.sparkpost.com/api/v1"]
393 },
394 %{
395 group: {:subgroup, Swoosh.Adapters.AmazonSES},
396 key: :region,
397 type: :string,
398 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
399 suggestions: ["us-east-1", "us-east-2"]
400 },
401 %{
402 group: {:subgroup, Swoosh.Adapters.AmazonSES},
403 key: :access_key,
404 type: :string,
405 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
406 suggestions: ["aws-access-key"]
407 },
408 %{
409 group: {:subgroup, Swoosh.Adapters.AmazonSES},
410 key: :secret,
411 type: :string,
412 description: "`Swoosh.Adapters.AmazonSES` adapter specific setting",
413 suggestions: ["aws-secret-key"]
414 },
415 %{
416 group: {:subgroup, Swoosh.Adapters.Dyn},
417 key: :api_key,
418 label: "API key",
419 type: :string,
420 description: "`Swoosh.Adapters.Dyn` adapter specific setting",
421 suggestions: ["my-api-key"]
422 },
423 %{
424 group: {:subgroup, Swoosh.Adapters.SocketLabs},
425 key: :server_id,
426 type: :string,
427 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
428 },
429 %{
430 group: {:subgroup, Swoosh.Adapters.SocketLabs},
431 key: :api_key,
432 label: "API key",
433 type: :string,
434 description: "`Swoosh.Adapters.SocketLabs` adapter specific setting"
435 },
436 %{
437 group: {:subgroup, Swoosh.Adapters.Gmail},
438 key: :access_token,
439 type: :string,
440 description: "`Swoosh.Adapters.Gmail` adapter specific setting"
441 }
442 ]
443 },
444 %{
445 group: :swoosh,
446 type: :group,
447 description: "`Swoosh.Adapters.Local` adapter specific settings",
448 children: [
449 %{
450 group: {:subgroup, Swoosh.Adapters.Local},
451 key: :serve_mailbox,
452 type: :boolean,
453 description: "Run the preview server together as part of your app"
454 },
455 %{
456 group: {:subgroup, Swoosh.Adapters.Local},
457 key: :preview_port,
458 type: :integer,
459 description: "The preview server port",
460 suggestions: [4001]
461 }
462 ]
463 },
464 %{
465 group: :pleroma,
466 key: :uri_schemes,
467 label: "URI Schemes",
468 type: :group,
469 description: "URI schemes related settings",
470 children: [
471 %{
472 key: :valid_schemes,
473 type: {:list, :string},
474 description: "List of the scheme part that is considered valid to be an URL",
475 suggestions: [
476 "https",
477 "http",
478 "dat",
479 "dweb",
480 "gopher",
481 "hyper",
482 "ipfs",
483 "ipns",
484 "irc",
485 "ircs",
486 "magnet",
487 "mailto",
488 "mumble",
489 "ssb",
490 "xmpp"
491 ]
492 }
493 ]
494 },
495 %{
496 group: :pleroma,
497 key: :instance,
498 type: :group,
499 description: "Instance-related settings",
500 children: [
501 %{
502 key: :name,
503 type: :string,
504 description: "Name of the instance",
505 suggestions: [
506 "Pleroma"
507 ]
508 },
509 %{
510 key: :email,
511 label: "Admin Email Address",
512 type: :string,
513 description: "Email used to reach an Administrator/Moderator of the instance",
514 suggestions: [
515 "email@example.com"
516 ]
517 },
518 %{
519 key: :notify_email,
520 label: "Sender Email Address",
521 type: :string,
522 description: "Envelope FROM address for mail sent via Pleroma",
523 suggestions: [
524 "notify@example.com"
525 ]
526 },
527 %{
528 key: :description,
529 type: :string,
530 description:
531 "The instance's description. It can be seen in nodeinfo and `/api/v1/instance`",
532 suggestions: [
533 "Very cool instance"
534 ]
535 },
536 %{
537 key: :limit,
538 type: :integer,
539 description: "Posts character limit (CW/Subject included in the counter)",
540 suggestions: [
541 5_000
542 ]
543 },
544 %{
545 key: :chat_limit,
546 type: :integer,
547 description: "Character limit of the instance chat messages",
548 suggestions: [
549 5_000
550 ]
551 },
552 %{
553 key: :remote_limit,
554 type: :integer,
555 description: "Hard character limit beyond which remote posts will be dropped",
556 suggestions: [
557 100_000
558 ]
559 },
560 %{
561 key: :upload_limit,
562 type: :integer,
563 description: "File size limit of uploads (except for avatar, background, banner)",
564 suggestions: [
565 16_000_000
566 ]
567 },
568 %{
569 key: :avatar_upload_limit,
570 type: :integer,
571 description: "File size limit of user's profile avatars",
572 suggestions: [
573 2_000_000
574 ]
575 },
576 %{
577 key: :background_upload_limit,
578 type: :integer,
579 description: "File size limit of user's profile backgrounds",
580 suggestions: [
581 4_000_000
582 ]
583 },
584 %{
585 key: :banner_upload_limit,
586 type: :integer,
587 description: "File size limit of user's profile banners",
588 suggestions: [
589 4_000_000
590 ]
591 },
592 %{
593 key: :poll_limits,
594 type: :map,
595 description: "A map with poll limits for local polls",
596 suggestions: [
597 %{
598 max_options: 20,
599 max_option_chars: 200,
600 min_expiration: 0,
601 max_expiration: 31_536_000
602 }
603 ],
604 children: [
605 %{
606 key: :max_options,
607 type: :integer,
608 description: "Maximum number of options",
609 suggestions: [20]
610 },
611 %{
612 key: :max_option_chars,
613 type: :integer,
614 description: "Maximum number of characters per option",
615 suggestions: [200]
616 },
617 %{
618 key: :min_expiration,
619 type: :integer,
620 description: "Minimum expiration time (in seconds)",
621 suggestions: [0]
622 },
623 %{
624 key: :max_expiration,
625 type: :integer,
626 description: "Maximum expiration time (in seconds)",
627 suggestions: [3600]
628 }
629 ]
630 },
631 %{
632 key: :registrations_open,
633 type: :boolean,
634 description:
635 "Enable registrations for anyone. Invitations require this setting to be disabled."
636 },
637 %{
638 key: :invites_enabled,
639 type: :boolean,
640 description:
641 "Enable user invitations for admins (depends on `registrations_open` being disabled)"
642 },
643 %{
644 key: :account_activation_required,
645 type: :boolean,
646 description: "Require users to confirm their emails before signing in"
647 },
648 %{
649 key: :account_approval_required,
650 type: :boolean,
651 description: "Require users to be manually approved by an admin before signing in"
652 },
653 %{
654 key: :federating,
655 type: :boolean,
656 description: "Enable federation with other instances"
657 },
658 %{
659 key: :federation_incoming_replies_max_depth,
660 label: "Fed. incoming replies max depth",
661 type: :integer,
662 description:
663 "Max. depth of reply-to and reply activities fetching on incoming federation, to prevent out-of-memory situations while" <>
664 " 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.",
665 suggestions: [
666 100
667 ]
668 },
669 %{
670 key: :federation_reachability_timeout_days,
671 label: "Fed. reachability timeout days",
672 type: :integer,
673 description:
674 "Timeout (in days) of each external federation target being unreachable prior to pausing federating to it",
675 suggestions: [
676 7
677 ]
678 },
679 %{
680 key: :allow_relay,
681 type: :boolean,
682 description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
683 },
684 %{
685 key: :public,
686 type: :boolean,
687 description:
688 "Makes the client API in authenticated mode-only except for user-profiles." <>
689 " Useful for disabling the Local Timeline and The Whole Known Network. " <>
690 " Note: when setting to `false`, please also check `:restrict_unauthenticated` setting."
691 },
692 %{
693 key: :quarantined_instances,
694 type: {:list, :string},
695 description:
696 "List of ActivityPub instances where private (DMs, followers-only) activities will not be sent",
697 suggestions: [
698 "quarantined.com",
699 "*.quarantined.com"
700 ]
701 },
702 %{
703 key: :static_dir,
704 type: :string,
705 description: "Instance static directory",
706 suggestions: [
707 "instance/static/"
708 ]
709 },
710 %{
711 key: :allowed_post_formats,
712 type: {:list, :string},
713 description: "MIME-type list of formats allowed to be posted (transformed into HTML)",
714 suggestions: [
715 "text/plain",
716 "text/html",
717 "text/markdown",
718 "text/bbcode"
719 ]
720 },
721 %{
722 key: :extended_nickname_format,
723 type: :boolean,
724 description:
725 "Enable to use extended local nicknames format (allows underscores/dashes)." <>
726 " This will break federation with older software for theses nicknames."
727 },
728 %{
729 key: :cleanup_attachments,
730 type: :boolean,
731 description: """
732 Enable to remove associated attachments when status is removed.
733 This will not affect duplicates and attachments without status.
734 Enabling this will increase load to database when deleting statuses on larger instances.
735 """
736 },
737 %{
738 key: :max_pinned_statuses,
739 type: :integer,
740 description: "The maximum number of pinned statuses. 0 will disable the feature.",
741 suggestions: [
742 0,
743 1,
744 3
745 ]
746 },
747 %{
748 key: :autofollowed_nicknames,
749 type: {:list, :string},
750 description:
751 "Set to nicknames of (local) users that every new user should automatically follow"
752 },
753 %{
754 key: :autofollowing_nicknames,
755 type: {:list, :string},
756 description:
757 "Set to nicknames of (local) users that automatically follows every newly registered user"
758 },
759 %{
760 key: :attachment_links,
761 type: :boolean,
762 description: "Enable to automatically add attachment link text to statuses"
763 },
764 %{
765 key: :max_report_comment_size,
766 type: :integer,
767 description: "The maximum size of the report comment. Default: 1000.",
768 suggestions: [
769 1_000
770 ]
771 },
772 %{
773 key: :safe_dm_mentions,
774 label: "Safe DM mentions",
775 type: :boolean,
776 description:
777 "If enabled, only mentions at the beginning of a post will be used to address people in direct messages." <>
778 " This is to prevent accidental mentioning of people when talking about them (e.g. \"@admin please keep an eye on @bad_actor\")." <>
779 " Default: disabled"
780 },
781 %{
782 key: :healthcheck,
783 type: :boolean,
784 description: "If enabled, system data will be shown on `/api/pleroma/healthcheck`"
785 },
786 %{
787 key: :remote_post_retention_days,
788 type: :integer,
789 description:
790 "The default amount of days to retain remote posts when pruning the database",
791 suggestions: [
792 90
793 ]
794 },
795 %{
796 key: :user_bio_length,
797 type: :integer,
798 description: "A user bio maximum length. Default: 5000.",
799 suggestions: [
800 5_000
801 ]
802 },
803 %{
804 key: :user_name_length,
805 type: :integer,
806 description: "A user name maximum length. Default: 100.",
807 suggestions: [
808 100
809 ]
810 },
811 %{
812 key: :skip_thread_containment,
813 type: :boolean,
814 description: "Skip filtering out broken threads. Default: enabled."
815 },
816 %{
817 key: :limit_to_local_content,
818 type: {:dropdown, :atom},
819 description:
820 "Limit unauthenticated users to search for local statutes and users only. Default: `:unauthenticated`.",
821 suggestions: [
822 :unauthenticated,
823 :all,
824 false
825 ]
826 },
827 %{
828 key: :max_account_fields,
829 type: :integer,
830 description: "The maximum number of custom fields in the user profile. Default: 10.",
831 suggestions: [
832 10
833 ]
834 },
835 %{
836 key: :max_remote_account_fields,
837 type: :integer,
838 description:
839 "The maximum number of custom fields in the remote user profile. Default: 20.",
840 suggestions: [
841 20
842 ]
843 },
844 %{
845 key: :account_field_name_length,
846 type: :integer,
847 description: "An account field name maximum length. Default: 512.",
848 suggestions: [
849 512
850 ]
851 },
852 %{
853 key: :account_field_value_length,
854 type: :integer,
855 description: "An account field value maximum length. Default: 2048.",
856 suggestions: [
857 2048
858 ]
859 },
860 %{
861 key: :registration_reason_length,
862 type: :integer,
863 description: "Maximum registration reason length. Default: 500.",
864 suggestions: [
865 500
866 ]
867 },
868 %{
869 key: :external_user_synchronization,
870 type: :boolean,
871 description: "Enabling following/followers counters synchronization for external users"
872 },
873 %{
874 key: :multi_factor_authentication,
875 type: :keyword,
876 description: "Multi-factor authentication settings",
877 suggestions: [
878 [
879 totp: [digits: 6, period: 30],
880 backup_codes: [number: 5, length: 16]
881 ]
882 ],
883 children: [
884 %{
885 key: :totp,
886 label: "TOTP settings",
887 type: :keyword,
888 description: "TOTP settings",
889 suggestions: [digits: 6, period: 30],
890 children: [
891 %{
892 key: :digits,
893 type: :integer,
894 suggestions: [6],
895 description:
896 "Determines the length of a one-time pass-code, in characters. Defaults to 6 characters."
897 },
898 %{
899 key: :period,
900 type: :integer,
901 suggestions: [30],
902 description:
903 "A period for which the TOTP code will be valid, in seconds. Defaults to 30 seconds."
904 }
905 ]
906 },
907 %{
908 key: :backup_codes,
909 type: :keyword,
910 description: "MFA backup codes settings",
911 suggestions: [number: 5, length: 16],
912 children: [
913 %{
914 key: :number,
915 type: :integer,
916 suggestions: [5],
917 description: "Number of backup codes to generate."
918 },
919 %{
920 key: :length,
921 type: :integer,
922 suggestions: [16],
923 description:
924 "Determines the length of backup one-time pass-codes, in characters. Defaults to 16 characters."
925 }
926 ]
927 }
928 ]
929 },
930 %{
931 key: :instance_thumbnail,
932 type: {:string, :image},
933 description:
934 "The instance thumbnail can be any image that represents your instance and is used by some apps or services when they display information about your instance.",
935 suggestions: ["/instance/thumbnail.jpeg"]
936 },
937 %{
938 key: :show_reactions,
939 type: :boolean,
940 description: "Let favourites and emoji reactions be viewed through the API."
941 }
942 ]
943 },
944 %{
945 group: :pleroma,
946 key: :welcome,
947 type: :group,
948 description: "Welcome messages settings",
949 children: [
950 %{
951 key: :direct_message,
952 type: :keyword,
953 descpiption: "Direct message settings",
954 children: [
955 %{
956 key: :enabled,
957 type: :boolean,
958 description: "Enables sending a direct message to newly registered users"
959 },
960 %{
961 key: :message,
962 type: :string,
963 description: "A message that will be sent to newly registered users",
964 suggestions: [
965 "Hi, @username! Welcome on board!"
966 ]
967 },
968 %{
969 key: :sender_nickname,
970 type: :string,
971 description: "The nickname of the local user that sends a welcome message",
972 suggestions: [
973 "lain"
974 ]
975 }
976 ]
977 },
978 %{
979 key: :chat_message,
980 type: :keyword,
981 descpiption: "Chat message settings",
982 children: [
983 %{
984 key: :enabled,
985 type: :boolean,
986 description: "Enables sending a chat message to newly registered users"
987 },
988 %{
989 key: :message,
990 type: :string,
991 description:
992 "A message that will be sent to newly registered users as a chat message",
993 suggestions: [
994 "Hello, welcome on board!"
995 ]
996 },
997 %{
998 key: :sender_nickname,
999 type: :string,
1000 description: "The nickname of the local user that sends a welcome chat message",
1001 suggestions: [
1002 "lain"
1003 ]
1004 }
1005 ]
1006 },
1007 %{
1008 key: :email,
1009 type: :keyword,
1010 descpiption: "Email message settings",
1011 children: [
1012 %{
1013 key: :enabled,
1014 type: :boolean,
1015 description: "Enables sending an email to newly registered users"
1016 },
1017 %{
1018 key: :sender,
1019 type: [:string, :tuple],
1020 description:
1021 "Email address and/or nickname that will be used to send the welcome email.",
1022 suggestions: [
1023 {"Pleroma App", "welcome@pleroma.app"}
1024 ]
1025 },
1026 %{
1027 key: :subject,
1028 type: :string,
1029 description:
1030 "Subject of the welcome email. EEX template with user and instance_name variables can be used.",
1031 suggestions: ["Welcome to <%= instance_name%>"]
1032 },
1033 %{
1034 key: :html,
1035 type: :string,
1036 description:
1037 "HTML content of the welcome email. EEX template with user and instance_name variables can be used.",
1038 suggestions: ["<h1>Hello <%= user.name%>. Welcome to <%= instance_name%></h1>"]
1039 },
1040 %{
1041 key: :text,
1042 type: :string,
1043 description:
1044 "Text content of the welcome email. EEX template with user and instance_name variables can be used.",
1045 suggestions: ["Hello <%= user.name%>. \n Welcome to <%= instance_name%>\n"]
1046 }
1047 ]
1048 }
1049 ]
1050 },
1051 %{
1052 group: :logger,
1053 type: :group,
1054 description: "Logger-related settings",
1055 children: [
1056 %{
1057 key: :backends,
1058 type: [:atom, :tuple, :module],
1059 description:
1060 "Where logs will be sent, :console - send logs to stdout, { ExSyslogger, :ex_syslogger } - to syslog, Quack.Logger - to Slack.",
1061 suggestions: [:console, {ExSyslogger, :ex_syslogger}, Quack.Logger]
1062 }
1063 ]
1064 },
1065 %{
1066 group: :logger,
1067 type: :group,
1068 key: :ex_syslogger,
1069 label: "ExSyslogger",
1070 description: "ExSyslogger-related settings",
1071 children: [
1072 %{
1073 key: :level,
1074 type: {:dropdown, :atom},
1075 description: "Log level",
1076 suggestions: [:debug, :info, :warn, :error]
1077 },
1078 %{
1079 key: :ident,
1080 type: :string,
1081 description:
1082 "A string that's prepended to every message, and is typically set to the app name",
1083 suggestions: ["pleroma"]
1084 },
1085 %{
1086 key: :format,
1087 type: :string,
1088 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1089 suggestions: ["$metadata[$level] $message"]
1090 },
1091 %{
1092 key: :metadata,
1093 type: {:list, :atom},
1094 suggestions: [:request_id]
1095 }
1096 ]
1097 },
1098 %{
1099 group: :logger,
1100 type: :group,
1101 key: :console,
1102 label: "Console Logger",
1103 description: "Console logger settings",
1104 children: [
1105 %{
1106 key: :level,
1107 type: {:dropdown, :atom},
1108 description: "Log level",
1109 suggestions: [:debug, :info, :warn, :error]
1110 },
1111 %{
1112 key: :format,
1113 type: :string,
1114 description: "Default: \"$date $time [$level] $levelpad$node $metadata $message\"",
1115 suggestions: ["$metadata[$level] $message"]
1116 },
1117 %{
1118 key: :metadata,
1119 type: {:list, :atom},
1120 suggestions: [:request_id]
1121 }
1122 ]
1123 },
1124 %{
1125 group: :quack,
1126 type: :group,
1127 label: "Quack Logger",
1128 description: "Quack-related settings",
1129 children: [
1130 %{
1131 key: :level,
1132 type: {:dropdown, :atom},
1133 description: "Log level",
1134 suggestions: [:debug, :info, :warn, :error]
1135 },
1136 %{
1137 key: :meta,
1138 type: {:list, :atom},
1139 description: "Configure which metadata you want to report on",
1140 suggestions: [
1141 :application,
1142 :module,
1143 :file,
1144 :function,
1145 :line,
1146 :pid,
1147 :crash_reason,
1148 :initial_call,
1149 :registered_name,
1150 :all,
1151 :none
1152 ]
1153 },
1154 %{
1155 key: :webhook_url,
1156 label: "Webhook URL",
1157 type: :string,
1158 description: "Configure the Slack incoming webhook",
1159 suggestions: ["https://hooks.slack.com/services/YOUR-KEY-HERE"]
1160 }
1161 ]
1162 },
1163 %{
1164 group: :pleroma,
1165 key: :frontend_configurations,
1166 type: :group,
1167 description:
1168 "This form can be used to configure a keyword list that keeps the configuration data for any " <>
1169 "kind of frontend. By default, settings for pleroma_fe and masto_fe are configured. If you want to " <>
1170 "add your own configuration your settings all fields must be complete.",
1171 children: [
1172 %{
1173 key: :pleroma_fe,
1174 label: "Pleroma FE",
1175 type: :map,
1176 description: "Settings for Pleroma FE",
1177 suggestions: [
1178 %{
1179 alwaysShowSubjectInput: true,
1180 background: "/static/aurora_borealis.jpg",
1181 collapseMessageWithSubject: false,
1182 disableChat: false,
1183 greentext: false,
1184 hideFilteredStatuses: false,
1185 hideMutedPosts: false,
1186 hidePostStats: false,
1187 hideSitename: false,
1188 hideUserStats: false,
1189 loginMethod: "password",
1190 logo: "/static/logo.svg",
1191 logoMargin: ".1em",
1192 logoMask: true,
1193 minimalScopesMode: false,
1194 noAttachmentLinks: false,
1195 nsfwCensorImage: "/static/img/nsfw.74818f9.png",
1196 postContentType: "text/plain",
1197 redirectRootLogin: "/main/friends",
1198 redirectRootNoLogin: "/main/all",
1199 scopeCopy: true,
1200 sidebarRight: false,
1201 showFeaturesPanel: true,
1202 showInstanceSpecificPanel: false,
1203 subjectLineBehavior: "email",
1204 theme: "pleroma-dark",
1205 webPushNotifications: false
1206 }
1207 ],
1208 children: [
1209 %{
1210 key: :alwaysShowSubjectInput,
1211 label: "Always show subject input",
1212 type: :boolean,
1213 description: "When disabled, auto-hide the subject field if it's empty"
1214 },
1215 %{
1216 key: :background,
1217 type: {:string, :image},
1218 description:
1219 "URL of the background, unless viewing a user profile with a background that is set",
1220 suggestions: ["/images/city.jpg"]
1221 },
1222 %{
1223 key: :collapseMessageWithSubject,
1224 label: "Collapse message with subject",
1225 type: :boolean,
1226 description:
1227 "When a message has a subject (aka Content Warning), collapse it by default"
1228 },
1229 %{
1230 key: :disableChat,
1231 label: "PleromaFE Chat",
1232 type: :boolean,
1233 description: "Disables PleromaFE Chat component"
1234 },
1235 %{
1236 key: :greentext,
1237 label: "Greentext",
1238 type: :boolean,
1239 description: "Enables green text on lines prefixed with the > character"
1240 },
1241 %{
1242 key: :hideFilteredStatuses,
1243 label: "Hide Filtered Statuses",
1244 type: :boolean,
1245 description: "Hides filtered statuses from timelines"
1246 },
1247 %{
1248 key: :hideMutedPosts,
1249 label: "Hide Muted Posts",
1250 type: :boolean,
1251 description: "Hides muted statuses from timelines"
1252 },
1253 %{
1254 key: :hidePostStats,
1255 label: "Hide post stats",
1256 type: :boolean,
1257 description: "Hide notices statistics (repeats, favorites, ...)"
1258 },
1259 %{
1260 key: :hideSitename,
1261 label: "Hide Sitename",
1262 type: :boolean,
1263 description: "Hides instance name from PleromaFE banner"
1264 },
1265 %{
1266 key: :hideUserStats,
1267 label: "Hide user stats",
1268 type: :boolean,
1269 description:
1270 "Hide profile statistics (posts, posts per day, followers, followings, ...)"
1271 },
1272 %{
1273 key: :logo,
1274 type: {:string, :image},
1275 description: "URL of the logo, defaults to Pleroma's logo",
1276 suggestions: ["/static/logo.svg"]
1277 },
1278 %{
1279 key: :logoMargin,
1280 label: "Logo margin",
1281 type: :string,
1282 description:
1283 "Allows you to adjust vertical margins between logo boundary and navbar borders. " <>
1284 "The idea is that to have logo's image without any extra margins and instead adjust them to your need in layout.",
1285 suggestions: [".1em"]
1286 },
1287 %{
1288 key: :logoMask,
1289 label: "Logo mask",
1290 type: :boolean,
1291 description:
1292 "By default it assumes logo used will be monochrome with alpha channel to be compatible with both light and dark themes. " <>
1293 "If you want a colorful logo you must disable logoMask."
1294 },
1295 %{
1296 key: :minimalScopesMode,
1297 label: "Minimal scopes mode",
1298 type: :boolean,
1299 description:
1300 "Limit scope selection to Direct, User default, and Scope of post replying to. " <>
1301 "Also prevents replying to a DM with a public post from PleromaFE."
1302 },
1303 %{
1304 key: :nsfwCensorImage,
1305 label: "NSFW Censor Image",
1306 type: {:string, :image},
1307 description:
1308 "URL of the image to use for hiding NSFW media attachments in the timeline",
1309 suggestions: ["/static/img/nsfw.74818f9.png"]
1310 },
1311 %{
1312 key: :postContentType,
1313 label: "Post Content Type",
1314 type: {:dropdown, :atom},
1315 description: "Default post formatting option",
1316 suggestions: ["text/plain", "text/html", "text/markdown", "text/bbcode"]
1317 },
1318 %{
1319 key: :redirectRootNoLogin,
1320 label: "Redirect root no login",
1321 type: :string,
1322 description:
1323 "Relative URL which indicates where to redirect when a user isn't logged in",
1324 suggestions: ["/main/all"]
1325 },
1326 %{
1327 key: :redirectRootLogin,
1328 label: "Redirect root login",
1329 type: :string,
1330 description:
1331 "Relative URL which indicates where to redirect when a user is logged in",
1332 suggestions: ["/main/friends"]
1333 },
1334 %{
1335 key: :scopeCopy,
1336 label: "Scope copy",
1337 type: :boolean,
1338 description: "Copy the scope (private/unlisted/public) in replies to posts by default"
1339 },
1340 %{
1341 key: :sidebarRight,
1342 label: "Sidebar on Right",
1343 type: :boolean,
1344 description: "Change alignment of sidebar and panels to the right"
1345 },
1346 %{
1347 key: :showFeaturesPanel,
1348 label: "Show instance features panel",
1349 type: :boolean,
1350 description:
1351 "Enables panel displaying functionality of the instance on the About page"
1352 },
1353 %{
1354 key: :showInstanceSpecificPanel,
1355 label: "Show instance specific panel",
1356 type: :boolean,
1357 description: "Whether to show the instance's custom panel"
1358 },
1359 %{
1360 key: :subjectLineBehavior,
1361 label: "Subject line behavior",
1362 type: :string,
1363 description: "Allows changing the default behaviour of subject lines in replies.
1364 `email`: copy and preprend re:, as in email,
1365 `masto`: copy verbatim, as in Mastodon,
1366 `noop`: don't copy the subject.",
1367 suggestions: ["email", "masto", "noop"]
1368 },
1369 %{
1370 key: :theme,
1371 type: :string,
1372 description: "Which theme to use. Available themes are defined in styles.json",
1373 suggestions: ["pleroma-dark"]
1374 }
1375 ]
1376 },
1377 %{
1378 key: :masto_fe,
1379 label: "Masto FE",
1380 type: :map,
1381 description: "Settings for Masto FE",
1382 suggestions: [
1383 %{
1384 showInstanceSpecificPanel: true
1385 }
1386 ],
1387 children: [
1388 %{
1389 key: :showInstanceSpecificPanel,
1390 label: "Show instance specific panel",
1391 type: :boolean,
1392 description: "Whenether to show the instance's specific panel"
1393 }
1394 ]
1395 }
1396 ]
1397 },
1398 %{
1399 group: :pleroma,
1400 key: :assets,
1401 type: :group,
1402 description:
1403 "This section configures assets to be used with various frontends. Currently the only option relates to mascots on the mastodon frontend",
1404 children: [
1405 %{
1406 key: :mascots,
1407 type: {:keyword, :map},
1408 description:
1409 "Keyword of mascots, each element must contain both an URL and a mime_type key",
1410 suggestions: [
1411 pleroma_fox_tan: %{
1412 url: "/images/pleroma-fox-tan-smol.png",
1413 mime_type: "image/png"
1414 },
1415 pleroma_fox_tan_shy: %{
1416 url: "/images/pleroma-fox-tan-shy.png",
1417 mime_type: "image/png"
1418 }
1419 ]
1420 },
1421 %{
1422 key: :default_mascot,
1423 type: :atom,
1424 description:
1425 "This will be used as the default mascot on MastoFE. Default: `:pleroma_fox_tan`",
1426 suggestions: [
1427 :pleroma_fox_tan
1428 ]
1429 },
1430 %{
1431 key: :default_user_avatar,
1432 type: {:string, :image},
1433 description: "URL of the default user avatar",
1434 suggestions: ["/images/avi.png"]
1435 }
1436 ]
1437 },
1438 %{
1439 group: :pleroma,
1440 key: :manifest,
1441 type: :group,
1442 description:
1443 "This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE.",
1444 children: [
1445 %{
1446 key: :icons,
1447 type: {:list, :map},
1448 description: "Describe the icons of the app",
1449 suggestion: [
1450 %{
1451 src: "/static/logo.png"
1452 },
1453 %{
1454 src: "/static/icon.png",
1455 type: "image/png"
1456 },
1457 %{
1458 src: "/static/icon.ico",
1459 sizes: "72x72 96x96 128x128 256x256"
1460 }
1461 ]
1462 },
1463 %{
1464 key: :theme_color,
1465 type: :string,
1466 description: "Describe the theme color of the app",
1467 suggestions: ["#282c37", "mediumpurple"]
1468 },
1469 %{
1470 key: :background_color,
1471 type: :string,
1472 description: "Describe the background color of the app",
1473 suggestions: ["#191b22", "aliceblue"]
1474 }
1475 ]
1476 },
1477 %{
1478 group: :pleroma,
1479 key: :media_proxy,
1480 type: :group,
1481 description: "Media proxy",
1482 children: [
1483 %{
1484 key: :enabled,
1485 type: :boolean,
1486 description: "Enables proxying of remote media via the instance's proxy"
1487 },
1488 %{
1489 key: :base_url,
1490 label: "Base URL",
1491 type: :string,
1492 description:
1493 "The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host/CDN fronts.",
1494 suggestions: ["https://example.com"]
1495 },
1496 %{
1497 key: :invalidation,
1498 type: :keyword,
1499 descpiption: "",
1500 suggestions: [
1501 enabled: true,
1502 provider: Pleroma.Web.MediaProxy.Invalidation.Script
1503 ],
1504 children: [
1505 %{
1506 key: :enabled,
1507 type: :boolean,
1508 description: "Enables media cache object invalidation."
1509 },
1510 %{
1511 key: :provider,
1512 type: :module,
1513 description: "Module which will be used to purge objects from the cache.",
1514 suggestions: [
1515 Pleroma.Web.MediaProxy.Invalidation.Script,
1516 Pleroma.Web.MediaProxy.Invalidation.Http
1517 ]
1518 }
1519 ]
1520 },
1521 %{
1522 key: :proxy_opts,
1523 label: "Advanced MediaProxy Options",
1524 type: :keyword,
1525 description: "Internal Pleroma.ReverseProxy settings",
1526 suggestions: [
1527 redirect_on_failure: false,
1528 max_body_length: 25 * 1_048_576,
1529 max_read_duration: 30_000
1530 ],
1531 children: [
1532 %{
1533 key: :redirect_on_failure,
1534 type: :boolean,
1535 description: """
1536 Redirects the client to the origin server upon encountering HTTP errors.\n
1537 Note that files larger than Max Body Length will trigger an error. (e.g., Peertube videos)\n\n
1538 **WARNING:** This setting will allow larger files to be accessed, but exposes the\n
1539 IP addresses of your users to the other servers, bypassing the MediaProxy.
1540 """
1541 },
1542 %{
1543 key: :max_body_length,
1544 type: :integer,
1545 description: "Maximum file size allowed through the Pleroma MediaProxy cache."
1546 },
1547 %{
1548 key: :max_read_duration,
1549 type: :integer,
1550 description: "Timeout (in milliseconds) of GET request to the remote URI."
1551 }
1552 ]
1553 },
1554 %{
1555 key: :whitelist,
1556 type: {:list, :string},
1557 description: "List of hosts with scheme to bypass the MediaProxy",
1558 suggestions: ["http://example.com"]
1559 }
1560 ]
1561 },
1562 %{
1563 group: :pleroma,
1564 key: :media_preview_proxy,
1565 type: :group,
1566 description: "Media preview proxy",
1567 children: [
1568 %{
1569 key: :enabled,
1570 type: :boolean,
1571 description:
1572 "Enables proxying of remote media preview to the instance's proxy. Requires enabled media proxy."
1573 },
1574 %{
1575 key: :thumbnail_max_width,
1576 type: :integer,
1577 description:
1578 "Max width of preview thumbnail for images (video preview always has original dimensions)."
1579 },
1580 %{
1581 key: :thumbnail_max_height,
1582 type: :integer,
1583 description:
1584 "Max height of preview thumbnail for images (video preview always has original dimensions)."
1585 },
1586 %{
1587 key: :image_quality,
1588 type: :integer,
1589 description: "Quality of the output. Ranges from 0 (min quality) to 100 (max quality)."
1590 },
1591 %{
1592 key: :min_content_length,
1593 type: :integer,
1594 description:
1595 "Min content length to perform preview, in bytes. If greater than 0, media smaller in size will be served as is, without thumbnailing."
1596 }
1597 ]
1598 },
1599 %{
1600 group: :pleroma,
1601 key: Pleroma.Web.MediaProxy.Invalidation.Http,
1602 type: :group,
1603 description: "HTTP invalidate settings",
1604 children: [
1605 %{
1606 key: :method,
1607 type: :atom,
1608 description: "HTTP method of request. Default: :purge"
1609 },
1610 %{
1611 key: :headers,
1612 type: {:keyword, :string},
1613 description: "HTTP headers of request",
1614 suggestions: [{"x-refresh", 1}]
1615 },
1616 %{
1617 key: :options,
1618 type: :keyword,
1619 description: "Request options",
1620 children: [
1621 %{
1622 key: :params,
1623 type: {:map, :string}
1624 }
1625 ]
1626 }
1627 ]
1628 },
1629 %{
1630 group: :pleroma,
1631 key: Pleroma.Web.MediaProxy.Invalidation.Script,
1632 type: :group,
1633 description: "Invalidation script settings",
1634 children: [
1635 %{
1636 key: :script_path,
1637 type: :string,
1638 description: "Path to executable script which will purge cached items.",
1639 suggestions: ["./installation/nginx-cache-purge.sh.example"]
1640 },
1641 %{
1642 key: :url_format,
1643 type: :string,
1644 description:
1645 "Optional URL format preprocessing. Only required for Apache's htcacheclean.",
1646 suggestions: [":htcacheclean"]
1647 }
1648 ]
1649 },
1650 %{
1651 group: :pleroma,
1652 key: :gopher,
1653 type: :group,
1654 description: "Gopher settings",
1655 children: [
1656 %{
1657 key: :enabled,
1658 type: :boolean,
1659 description: "Enables the gopher interface"
1660 },
1661 %{
1662 key: :ip,
1663 label: "IP",
1664 type: :tuple,
1665 description: "IP address to bind to",
1666 suggestions: [{0, 0, 0, 0}]
1667 },
1668 %{
1669 key: :port,
1670 type: :integer,
1671 description: "Port to bind to",
1672 suggestions: [9999]
1673 },
1674 %{
1675 key: :dstport,
1676 type: :integer,
1677 description: "Port advertised in URLs (optional, defaults to port)",
1678 suggestions: [9999]
1679 }
1680 ]
1681 },
1682 %{
1683 group: :pleroma,
1684 key: :activitypub,
1685 label: "ActivityPub",
1686 type: :group,
1687 description: "ActivityPub-related settings",
1688 children: [
1689 %{
1690 key: :unfollow_blocked,
1691 type: :boolean,
1692 description: "Whether blocks result in people getting unfollowed"
1693 },
1694 %{
1695 key: :outgoing_blocks,
1696 type: :boolean,
1697 description: "Whether to federate blocks to other instances"
1698 },
1699 %{
1700 key: :sign_object_fetches,
1701 type: :boolean,
1702 description: "Sign object fetches with HTTP signatures"
1703 },
1704 %{
1705 key: :note_replies_output_limit,
1706 type: :integer,
1707 description:
1708 "The number of Note replies' URIs to be included with outgoing federation (`5` to match Mastodon hardcoded value, `0` to disable the output)"
1709 },
1710 %{
1711 key: :follow_handshake_timeout,
1712 type: :integer,
1713 description: "Following handshake timeout",
1714 suggestions: [500]
1715 }
1716 ]
1717 },
1718 %{
1719 group: :pleroma,
1720 key: :http_security,
1721 label: "HTTP security",
1722 type: :group,
1723 description: "HTTP security settings",
1724 children: [
1725 %{
1726 key: :enabled,
1727 type: :boolean,
1728 description: "Whether the managed content security policy is enabled"
1729 },
1730 %{
1731 key: :sts,
1732 label: "STS",
1733 type: :boolean,
1734 description: "Whether to additionally send a Strict-Transport-Security header"
1735 },
1736 %{
1737 key: :sts_max_age,
1738 label: "STS max age",
1739 type: :integer,
1740 description: "The maximum age for the Strict-Transport-Security header if sent",
1741 suggestions: [31_536_000]
1742 },
1743 %{
1744 key: :ct_max_age,
1745 label: "CT max age",
1746 type: :integer,
1747 description: "The maximum age for the Expect-CT header if sent",
1748 suggestions: [2_592_000]
1749 },
1750 %{
1751 key: :referrer_policy,
1752 type: :string,
1753 description: "The referrer policy to use, either \"same-origin\" or \"no-referrer\"",
1754 suggestions: ["same-origin", "no-referrer"]
1755 },
1756 %{
1757 key: :report_uri,
1758 label: "Report URI",
1759 type: :string,
1760 description: "Adds the specified URL to report-uri and report-to group in CSP header",
1761 suggestions: ["https://example.com/report-uri"]
1762 }
1763 ]
1764 },
1765 %{
1766 group: :web_push_encryption,
1767 key: :vapid_details,
1768 label: "Vapid Details",
1769 type: :group,
1770 description:
1771 "Web Push Notifications configuration. You can use the mix task mix web_push.gen.keypair to generate it.",
1772 children: [
1773 %{
1774 key: :subject,
1775 type: :string,
1776 description:
1777 "A mailto link for the administrative contact." <>
1778 " It's best if this email is not a personal email address, but rather a group email to the instance moderation team.",
1779 suggestions: ["mailto:moderators@pleroma.com"]
1780 },
1781 %{
1782 key: :public_key,
1783 type: :string,
1784 description: "VAPID public key",
1785 suggestions: ["Public key"]
1786 },
1787 %{
1788 key: :private_key,
1789 type: :string,
1790 description: "VAPID private key",
1791 suggestions: ["Private key"]
1792 }
1793 ]
1794 },
1795 %{
1796 group: :pleroma,
1797 key: Pleroma.Captcha,
1798 type: :group,
1799 description: "Captcha-related settings",
1800 children: [
1801 %{
1802 key: :enabled,
1803 type: :boolean,
1804 description: "Whether the captcha should be shown on registration"
1805 },
1806 %{
1807 key: :method,
1808 type: :module,
1809 description: "The method/service to use for captcha",
1810 suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
1811 },
1812 %{
1813 key: :seconds_valid,
1814 type: :integer,
1815 description: "The time in seconds for which the captcha is valid",
1816 suggestions: [60]
1817 }
1818 ]
1819 },
1820 %{
1821 group: :pleroma,
1822 key: Pleroma.Captcha.Kocaptcha,
1823 type: :group,
1824 description:
1825 "Kocaptcha is a very simple captcha service with a single API endpoint, the source code is" <>
1826 " here: https://github.com/koto-bank/kocaptcha. The default endpoint (https://captcha.kotobank.ch) is hosted by the developer.",
1827 children: [
1828 %{
1829 key: :endpoint,
1830 type: :string,
1831 description: "The kocaptcha endpoint to use",
1832 suggestions: ["https://captcha.kotobank.ch"]
1833 }
1834 ]
1835 },
1836 %{
1837 group: :pleroma,
1838 label: "Pleroma Admin Token",
1839 type: :group,
1840 description:
1841 "Allows setting a token that can be used to authenticate requests with admin privileges without a normal user account token. Append the `admin_token` parameter to requests to utilize it. (Please reconsider using HTTP Basic Auth or OAuth-based authentication if possible)",
1842 children: [
1843 %{
1844 key: :admin_token,
1845 type: :string,
1846 description: "Admin token",
1847 suggestions: [
1848 "Please use a high entropy string or UUID"
1849 ]
1850 }
1851 ]
1852 },
1853 %{
1854 group: :pleroma,
1855 key: Oban,
1856 type: :group,
1857 description:
1858 "[Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.",
1859 children: [
1860 %{
1861 key: :log,
1862 type: {:dropdown, :atom},
1863 description: "Logs verbose mode",
1864 suggestions: [false, :error, :warn, :info, :debug]
1865 },
1866 %{
1867 key: :queues,
1868 type: {:keyword, :integer},
1869 description:
1870 "Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
1871 suggestions: [
1872 activity_expiration: 10,
1873 attachments_cleanup: 5,
1874 background: 5,
1875 federator_incoming: 50,
1876 federator_outgoing: 50,
1877 mailer: 10,
1878 scheduled_activities: 10,
1879 transmogrifier: 20,
1880 web_push: 50
1881 ],
1882 children: [
1883 %{
1884 key: :activity_expiration,
1885 type: :integer,
1886 description: "Activity expiration queue",
1887 suggestions: [10]
1888 },
1889 %{
1890 key: :backup,
1891 type: :integer,
1892 description: "Backup queue",
1893 suggestions: [1]
1894 },
1895 %{
1896 key: :attachments_cleanup,
1897 type: :integer,
1898 description: "Attachment deletion queue",
1899 suggestions: [5]
1900 },
1901 %{
1902 key: :background,
1903 type: :integer,
1904 description: "Background queue",
1905 suggestions: [5]
1906 },
1907 %{
1908 key: :federator_incoming,
1909 type: :integer,
1910 description: "Incoming federation queue",
1911 suggestions: [50]
1912 },
1913 %{
1914 key: :federator_outgoing,
1915 type: :integer,
1916 description: "Outgoing federation queue",
1917 suggestions: [50]
1918 },
1919 %{
1920 key: :mailer,
1921 type: :integer,
1922 description: "Email sender queue, see Pleroma.Emails.Mailer",
1923 suggestions: [10]
1924 },
1925 %{
1926 key: :scheduled_activities,
1927 type: :integer,
1928 description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
1929 suggestions: [10]
1930 },
1931 %{
1932 key: :transmogrifier,
1933 type: :integer,
1934 description: "Transmogrifier queue",
1935 suggestions: [20]
1936 },
1937 %{
1938 key: :web_push,
1939 type: :integer,
1940 description: "Web push notifications queue",
1941 suggestions: [50]
1942 }
1943 ]
1944 },
1945 %{
1946 key: :crontab,
1947 type: {:list, :tuple},
1948 description: "Settings for cron background jobs",
1949 suggestions: [
1950 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
1951 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
1952 ]
1953 }
1954 ]
1955 },
1956 %{
1957 group: :pleroma,
1958 key: :workers,
1959 type: :group,
1960 description: "Includes custom worker options not interpretable directly by `Oban`",
1961 children: [
1962 %{
1963 key: :retries,
1964 type: {:keyword, :integer},
1965 description: "Max retry attempts for failed jobs, per `Oban` queue",
1966 suggestions: [
1967 federator_incoming: 5,
1968 federator_outgoing: 5
1969 ]
1970 }
1971 ]
1972 },
1973 %{
1974 group: :pleroma,
1975 key: Pleroma.Web.Metadata,
1976 type: :group,
1977 description: "Metadata-related settings",
1978 children: [
1979 %{
1980 key: :providers,
1981 type: {:list, :module},
1982 description: "List of metadata providers to enable",
1983 suggestions: [
1984 Pleroma.Web.Metadata.Providers.OpenGraph,
1985 Pleroma.Web.Metadata.Providers.TwitterCard,
1986 Pleroma.Web.Metadata.Providers.RelMe,
1987 Pleroma.Web.Metadata.Providers.Feed
1988 ]
1989 },
1990 %{
1991 key: :unfurl_nsfw,
1992 label: "Unfurl NSFW",
1993 type: :boolean,
1994 description: "When enabled NSFW attachments will be shown in previews"
1995 }
1996 ]
1997 },
1998 %{
1999 group: :pleroma,
2000 key: :rich_media,
2001 type: :group,
2002 description:
2003 "If enabled the instance will parse metadata from attached links to generate link previews",
2004 children: [
2005 %{
2006 key: :enabled,
2007 type: :boolean,
2008 description: "Enables RichMedia parsing of URLs"
2009 },
2010 %{
2011 key: :ignore_hosts,
2012 type: {:list, :string},
2013 description: "List of hosts which will be ignored by the metadata parser",
2014 suggestions: ["accounts.google.com", "xss.website"]
2015 },
2016 %{
2017 key: :ignore_tld,
2018 label: "Ignore TLD",
2019 type: {:list, :string},
2020 description: "List TLDs (top-level domains) which will ignore for parse metadata",
2021 suggestions: ["local", "localdomain", "lan"]
2022 },
2023 %{
2024 key: :parsers,
2025 type: {:list, :module},
2026 description:
2027 "List of Rich Media parsers. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parsers.` part), but on adding custom module you need to use full name.",
2028 suggestions: [
2029 Pleroma.Web.RichMedia.Parsers.OEmbed,
2030 Pleroma.Web.RichMedia.Parsers.TwitterCard
2031 ]
2032 },
2033 %{
2034 key: :ttl_setters,
2035 label: "TTL setters",
2036 type: {:list, :module},
2037 description:
2038 "List of rich media TTL setters. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parser.` part), but on adding custom module you need to use full name.",
2039 suggestions: [
2040 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl
2041 ]
2042 },
2043 %{
2044 key: :failure_backoff,
2045 type: :integer,
2046 description:
2047 "Amount of milliseconds after request failure, during which the request will not be retried.",
2048 suggestions: [60_000]
2049 }
2050 ]
2051 },
2052 %{
2053 group: :pleroma,
2054 key: Pleroma.Formatter,
2055 label: "Linkify",
2056 type: :group,
2057 description:
2058 "Configuration for Pleroma's link formatter which parses mentions, hashtags, and URLs.",
2059 children: [
2060 %{
2061 key: :class,
2062 type: [:string, :boolean],
2063 description: "Specify the class to be added to the generated link. Disable to clear.",
2064 suggestions: ["auto-linker", false]
2065 },
2066 %{
2067 key: :rel,
2068 type: [:string, :boolean],
2069 description: "Override the rel attribute. Disable to clear.",
2070 suggestions: ["ugc", "noopener noreferrer", false]
2071 },
2072 %{
2073 key: :new_window,
2074 type: :boolean,
2075 description: "Link URLs will open in a new window/tab."
2076 },
2077 %{
2078 key: :truncate,
2079 type: [:integer, :boolean],
2080 description:
2081 "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
2082 suggestions: [15, false]
2083 },
2084 %{
2085 key: :strip_prefix,
2086 type: :boolean,
2087 description: "Strip the scheme prefix."
2088 },
2089 %{
2090 key: :extra,
2091 type: :boolean,
2092 description: "Link URLs with rarely used schemes (magnet, ipfs, irc, etc.)"
2093 },
2094 %{
2095 key: :validate_tld,
2096 type: [:atom, :boolean],
2097 description:
2098 "Set to false to disable TLD validation for URLs/emails. Can be set to :no_scheme to validate TLDs only for URLs without a scheme (e.g `example.com` will be validated, but `http://example.loki` won't)",
2099 suggestions: [:no_scheme, true]
2100 }
2101 ]
2102 },
2103 %{
2104 group: :pleroma,
2105 key: Pleroma.ScheduledActivity,
2106 type: :group,
2107 description: "Scheduled activities settings",
2108 children: [
2109 %{
2110 key: :daily_user_limit,
2111 type: :integer,
2112 description:
2113 "The number of scheduled activities a user is allowed to create in a single day. Default: 25.",
2114 suggestions: [25]
2115 },
2116 %{
2117 key: :total_user_limit,
2118 type: :integer,
2119 description:
2120 "The number of scheduled activities a user is allowed to create in total. Default: 300.",
2121 suggestions: [300]
2122 },
2123 %{
2124 key: :enabled,
2125 type: :boolean,
2126 description: "Whether scheduled activities are sent to the job queue to be executed"
2127 }
2128 ]
2129 },
2130 %{
2131 group: :pleroma,
2132 key: Pleroma.Workers.PurgeExpiredActivity,
2133 type: :group,
2134 description: "Expired activities settings",
2135 children: [
2136 %{
2137 key: :enabled,
2138 type: :boolean,
2139 description: "Enables expired activities addition & deletion"
2140 },
2141 %{
2142 key: :min_lifetime,
2143 type: :integer,
2144 description: "Minimum lifetime for ephemeral activity (in seconds)",
2145 suggestions: [600]
2146 }
2147 ]
2148 },
2149 %{
2150 group: :pleroma,
2151 label: "Pleroma Authenticator",
2152 type: :group,
2153 description: "Authenticator",
2154 children: [
2155 %{
2156 key: Pleroma.Web.Auth.Authenticator,
2157 type: :module,
2158 suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
2159 }
2160 ]
2161 },
2162 %{
2163 group: :pleroma,
2164 key: :ldap,
2165 label: "LDAP",
2166 type: :group,
2167 description:
2168 "Use LDAP for user authentication. When a user logs in to the Pleroma instance, the name and password" <>
2169 " will be verified by trying to authenticate (bind) to a LDAP server." <>
2170 " If a user exists in the LDAP directory but there is no account with the same name yet on the" <>
2171 " Pleroma instance then a new Pleroma account will be created with the same name as the LDAP user name.",
2172 children: [
2173 %{
2174 key: :enabled,
2175 type: :boolean,
2176 description: "Enables LDAP authentication"
2177 },
2178 %{
2179 key: :host,
2180 type: :string,
2181 description: "LDAP server hostname",
2182 suggestions: ["localhosts"]
2183 },
2184 %{
2185 key: :port,
2186 type: :integer,
2187 description: "LDAP port, e.g. 389 or 636",
2188 suggestions: [389, 636]
2189 },
2190 %{
2191 key: :ssl,
2192 label: "SSL",
2193 type: :boolean,
2194 description: "Enable to use SSL, usually implies the port 636"
2195 },
2196 %{
2197 key: :sslopts,
2198 label: "SSL options",
2199 type: :keyword,
2200 description: "Additional SSL options",
2201 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2202 children: [
2203 %{
2204 key: :cacertfile,
2205 type: :string,
2206 description: "Path to file with PEM encoded cacerts",
2207 suggestions: ["path/to/file/with/PEM/cacerts"]
2208 },
2209 %{
2210 key: :verify,
2211 type: :atom,
2212 description: "Type of cert verification",
2213 suggestions: [:verify_peer]
2214 }
2215 ]
2216 },
2217 %{
2218 key: :tls,
2219 label: "TLS",
2220 type: :boolean,
2221 description: "Enable to use STARTTLS, usually implies the port 389"
2222 },
2223 %{
2224 key: :tlsopts,
2225 label: "TLS options",
2226 type: :keyword,
2227 description: "Additional TLS options",
2228 suggestions: [cacertfile: "path/to/file/with/PEM/cacerts", verify: :verify_peer],
2229 children: [
2230 %{
2231 key: :cacertfile,
2232 type: :string,
2233 description: "Path to file with PEM encoded cacerts",
2234 suggestions: ["path/to/file/with/PEM/cacerts"]
2235 },
2236 %{
2237 key: :verify,
2238 type: :atom,
2239 description: "Type of cert verification",
2240 suggestions: [:verify_peer]
2241 }
2242 ]
2243 },
2244 %{
2245 key: :base,
2246 type: :string,
2247 description: "LDAP base, e.g. \"dc=example,dc=com\"",
2248 suggestions: ["dc=example,dc=com"]
2249 },
2250 %{
2251 key: :uid,
2252 label: "UID",
2253 type: :string,
2254 description:
2255 "LDAP attribute name to authenticate the user, e.g. when \"cn\", the filter will be \"cn=username,base\"",
2256 suggestions: ["cn"]
2257 }
2258 ]
2259 },
2260 %{
2261 group: :pleroma,
2262 key: :auth,
2263 type: :group,
2264 description: "Authentication / authorization settings",
2265 children: [
2266 %{
2267 key: :enforce_oauth_admin_scope_usage,
2268 label: "Enforce OAuth admin scope usage",
2269 type: :boolean,
2270 description:
2271 "OAuth admin scope requirement toggle. " <>
2272 "If enabled, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token " <>
2273 "(client app must support admin scopes). If disabled and token doesn't have admin scope(s), " <>
2274 "`is_admin` user flag grants access to admin-specific actions."
2275 },
2276 %{
2277 key: :auth_template,
2278 type: :string,
2279 description:
2280 "Authentication form template. By default it's `show.html` which corresponds to `lib/pleroma/web/templates/o_auth/o_auth/show.html.ee`.",
2281 suggestions: ["show.html"]
2282 },
2283 %{
2284 key: :oauth_consumer_template,
2285 label: "OAuth consumer template",
2286 type: :string,
2287 description:
2288 "OAuth consumer mode authentication form template. By default it's `consumer.html` which corresponds to" <>
2289 " `lib/pleroma/web/templates/o_auth/o_auth/consumer.html.eex`.",
2290 suggestions: ["consumer.html"]
2291 },
2292 %{
2293 key: :oauth_consumer_strategies,
2294 label: "OAuth consumer strategies",
2295 type: {:list, :string},
2296 description:
2297 "The list of enabled OAuth consumer strategies. By default it's set by OAUTH_CONSUMER_STRATEGIES environment variable." <>
2298 " Each entry in this space-delimited string should be of format \"strategy\" or \"strategy:dependency\"" <>
2299 " (e.g. twitter or keycloak:ueberauth_keycloak_strategy in case dependency is named differently than ueberauth_<strategy>).",
2300 suggestions: ["twitter", "keycloak:ueberauth_keycloak_strategy"]
2301 }
2302 ]
2303 },
2304 %{
2305 group: :pleroma,
2306 key: :email_notifications,
2307 type: :group,
2308 description: "Email notifications settings",
2309 children: [
2310 %{
2311 key: :digest,
2312 type: :map,
2313 description:
2314 "emails of \"what you've missed\" for users who have been inactive for a while",
2315 suggestions: [
2316 %{
2317 active: false,
2318 schedule: "0 0 * * 0",
2319 interval: 7,
2320 inactivity_threshold: 7
2321 }
2322 ],
2323 children: [
2324 %{
2325 key: :active,
2326 label: "Enabled",
2327 type: :boolean,
2328 description: "Globally enable or disable digest emails"
2329 },
2330 %{
2331 key: :schedule,
2332 type: :string,
2333 description:
2334 "When to send digest email, in crontab format. \"0 0 0\" is the default, meaning \"once a week at midnight on Sunday morning\".",
2335 suggestions: ["0 0 * * 0"]
2336 },
2337 %{
2338 key: :interval,
2339 type: :integer,
2340 description: "Minimum interval between digest emails to one user",
2341 suggestions: [7]
2342 },
2343 %{
2344 key: :inactivity_threshold,
2345 type: :integer,
2346 description: "Minimum user inactivity threshold",
2347 suggestions: [7]
2348 }
2349 ]
2350 }
2351 ]
2352 },
2353 %{
2354 group: :pleroma,
2355 key: Pleroma.Emails.UserEmail,
2356 type: :group,
2357 description: "Email template settings",
2358 children: [
2359 %{
2360 key: :logo,
2361 type: {:string, :image},
2362 description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
2363 suggestions: ["some/path/logo.png"]
2364 },
2365 %{
2366 key: :styling,
2367 type: :map,
2368 description: "A map with color settings for email templates.",
2369 suggestions: [
2370 %{
2371 link_color: "#d8a070",
2372 background_color: "#2C3645",
2373 content_background_color: "#1B2635",
2374 header_color: "#d8a070",
2375 text_color: "#b9b9ba",
2376 text_muted_color: "#b9b9ba"
2377 }
2378 ],
2379 children: [
2380 %{
2381 key: :link_color,
2382 type: :string,
2383 suggestions: ["#d8a070"]
2384 },
2385 %{
2386 key: :background_color,
2387 type: :string,
2388 suggestions: ["#2C3645"]
2389 },
2390 %{
2391 key: :content_background_color,
2392 type: :string,
2393 suggestions: ["#1B2635"]
2394 },
2395 %{
2396 key: :header_color,
2397 type: :string,
2398 suggestions: ["#d8a070"]
2399 },
2400 %{
2401 key: :text_color,
2402 type: :string,
2403 suggestions: ["#b9b9ba"]
2404 },
2405 %{
2406 key: :text_muted_color,
2407 type: :string,
2408 suggestions: ["#b9b9ba"]
2409 }
2410 ]
2411 }
2412 ]
2413 },
2414 %{
2415 group: :pleroma,
2416 key: Pleroma.Emails.NewUsersDigestEmail,
2417 type: :group,
2418 description: "New users admin email digest",
2419 children: [
2420 %{
2421 key: :enabled,
2422 type: :boolean,
2423 description: "Enables new users admin digest email when `true`"
2424 }
2425 ]
2426 },
2427 %{
2428 group: :pleroma,
2429 key: :oauth2,
2430 label: "OAuth2",
2431 type: :group,
2432 description: "Configure OAuth 2 provider capabilities",
2433 children: [
2434 %{
2435 key: :token_expires_in,
2436 type: :integer,
2437 description: "The lifetime in seconds of the access token",
2438 suggestions: [2_592_000]
2439 },
2440 %{
2441 key: :issue_new_refresh_token,
2442 type: :boolean,
2443 description:
2444 "Keeps old refresh token or generate new refresh token when to obtain an access token"
2445 },
2446 %{
2447 key: :clean_expired_tokens,
2448 type: :boolean,
2449 description: "Enable a background job to clean expired OAuth tokens. Default: disabled."
2450 }
2451 ]
2452 },
2453 %{
2454 group: :pleroma,
2455 key: :emoji,
2456 type: :group,
2457 children: [
2458 %{
2459 key: :shortcode_globs,
2460 type: {:list, :string},
2461 description: "Location of custom emoji files. * can be used as a wildcard.",
2462 suggestions: ["/emoji/custom/**/*.png"]
2463 },
2464 %{
2465 key: :pack_extensions,
2466 type: {:list, :string},
2467 description:
2468 "A list of file extensions for emojis, when no emoji.txt for a pack is present",
2469 suggestions: [".png", ".gif"]
2470 },
2471 %{
2472 key: :groups,
2473 type: {:keyword, {:list, :string}},
2474 description:
2475 "Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the group name" <>
2476 " and the value is the location or array of locations. * can be used as a wildcard.",
2477 suggestions: [
2478 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
2479 ]
2480 },
2481 %{
2482 key: :default_manifest,
2483 type: :string,
2484 description:
2485 "Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download." <>
2486 " Currently only one manifest can be added (no arrays).",
2487 suggestions: ["https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json"]
2488 },
2489 %{
2490 key: :shared_pack_cache_seconds_per_file,
2491 label: "Shared pack cache s/file",
2492 type: :integer,
2493 descpiption:
2494 "When an emoji pack is shared, the archive is created and cached in memory" <>
2495 " for this amount of seconds multiplied by the number of files.",
2496 suggestions: [60]
2497 }
2498 ]
2499 },
2500 %{
2501 group: :pleroma,
2502 key: :rate_limit,
2503 type: :group,
2504 description:
2505 "Rate limit settings. This is an advanced feature enabled only for :authentication by default.",
2506 children: [
2507 %{
2508 key: :search,
2509 type: [:tuple, {:list, :tuple}],
2510 description: "For the search requests (account & status search etc.)",
2511 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2512 },
2513 %{
2514 key: :timeline,
2515 type: [:tuple, {:list, :tuple}],
2516 description: "For requests to timelines (each timeline has it's own limiter)",
2517 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2518 },
2519 %{
2520 key: :app_account_creation,
2521 type: [:tuple, {:list, :tuple}],
2522 description: "For registering user accounts from the same IP address",
2523 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2524 },
2525 %{
2526 key: :relations_actions,
2527 type: [:tuple, {:list, :tuple}],
2528 description: "For actions on relationships with all users (follow, unfollow)",
2529 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2530 },
2531 %{
2532 key: :relation_id_action,
2533 label: "Relation ID action",
2534 type: [:tuple, {:list, :tuple}],
2535 description: "For actions on relation with a specific user (follow, unfollow)",
2536 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2537 },
2538 %{
2539 key: :statuses_actions,
2540 type: [:tuple, {:list, :tuple}],
2541 description:
2542 "For create / delete / fav / unfav / reblog / unreblog actions on any statuses",
2543 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2544 },
2545 %{
2546 key: :status_id_action,
2547 label: "Status ID action",
2548 type: [:tuple, {:list, :tuple}],
2549 description:
2550 "For fav / unfav or reblog / unreblog actions on the same status by the same user",
2551 suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]]
2552 },
2553 %{
2554 key: :authentication,
2555 type: [:tuple, {:list, :tuple}],
2556 description: "For authentication create / password check / user existence check requests",
2557 suggestions: [{60_000, 15}]
2558 }
2559 ]
2560 },
2561 %{
2562 group: :esshd,
2563 label: "ESSHD",
2564 type: :group,
2565 description:
2566 "Before enabling this you must add :esshd to mix.exs as one of the extra_applications " <>
2567 "and generate host keys in your priv dir with ssh-keygen -m PEM -N \"\" -b 2048 -t rsa -f ssh_host_rsa_key",
2568 children: [
2569 %{
2570 key: :enabled,
2571 type: :boolean,
2572 description: "Enables SSH"
2573 },
2574 %{
2575 key: :priv_dir,
2576 type: :string,
2577 description: "Dir with SSH keys",
2578 suggestions: ["/some/path/ssh_keys"]
2579 },
2580 %{
2581 key: :handler,
2582 type: :string,
2583 description: "Handler module",
2584 suggestions: ["Pleroma.BBS.Handler"]
2585 },
2586 %{
2587 key: :port,
2588 type: :integer,
2589 description: "Port to connect",
2590 suggestions: [10_022]
2591 },
2592 %{
2593 key: :password_authenticator,
2594 type: :string,
2595 description: "Authenticator module",
2596 suggestions: ["Pleroma.BBS.Authenticator"]
2597 }
2598 ]
2599 },
2600 %{
2601 group: :mime,
2602 label: "Mime Types",
2603 type: :group,
2604 description: "Mime Types settings",
2605 children: [
2606 %{
2607 key: :types,
2608 type: :map,
2609 suggestions: [
2610 %{
2611 "application/xml" => ["xml"],
2612 "application/xrd+xml" => ["xrd+xml"],
2613 "application/jrd+json" => ["jrd+json"],
2614 "application/activity+json" => ["activity+json"],
2615 "application/ld+json" => ["activity+json"]
2616 }
2617 ],
2618 children: [
2619 %{
2620 key: "application/xml",
2621 type: {:list, :string},
2622 suggestions: ["xml"]
2623 },
2624 %{
2625 key: "application/xrd+xml",
2626 type: {:list, :string},
2627 suggestions: ["xrd+xml"]
2628 },
2629 %{
2630 key: "application/jrd+json",
2631 type: {:list, :string},
2632 suggestions: ["jrd+json"]
2633 },
2634 %{
2635 key: "application/activity+json",
2636 type: {:list, :string},
2637 suggestions: ["activity+json"]
2638 },
2639 %{
2640 key: "application/ld+json",
2641 type: {:list, :string},
2642 suggestions: ["activity+json"]
2643 }
2644 ]
2645 }
2646 ]
2647 },
2648 %{
2649 group: :pleroma,
2650 key: :chat,
2651 type: :group,
2652 description: "Pleroma chat settings",
2653 children: [
2654 %{
2655 key: :enabled,
2656 type: :boolean
2657 }
2658 ]
2659 },
2660 %{
2661 group: :pleroma,
2662 key: :http,
2663 label: "HTTP",
2664 type: :group,
2665 description: "HTTP settings",
2666 children: [
2667 %{
2668 key: :proxy_url,
2669 label: "Proxy URL",
2670 type: [:string, :tuple],
2671 description: "Proxy URL",
2672 suggestions: ["localhost:9020", {:socks5, :localhost, 3090}]
2673 },
2674 %{
2675 key: :send_user_agent,
2676 type: :boolean
2677 },
2678 %{
2679 key: :user_agent,
2680 type: [:string, :atom],
2681 description:
2682 "What user agent to use. Must be a string or an atom `:default`. Default value is `:default`.",
2683 suggestions: ["Pleroma", :default]
2684 },
2685 %{
2686 key: :adapter,
2687 type: :keyword,
2688 description: "Adapter specific options",
2689 suggestions: [],
2690 children: [
2691 %{
2692 key: :ssl_options,
2693 type: :keyword,
2694 label: "SSL Options",
2695 description: "SSL options for HTTP adapter",
2696 children: [
2697 %{
2698 key: :versions,
2699 type: {:list, :atom},
2700 description: "List of TLS version to use",
2701 suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
2702 }
2703 ]
2704 }
2705 ]
2706 }
2707 ]
2708 },
2709 %{
2710 group: :pleroma,
2711 key: :markup,
2712 label: "Markup Settings",
2713 type: :group,
2714 children: [
2715 %{
2716 key: :allow_inline_images,
2717 type: :boolean
2718 },
2719 %{
2720 key: :allow_headings,
2721 type: :boolean
2722 },
2723 %{
2724 key: :allow_tables,
2725 type: :boolean
2726 },
2727 %{
2728 key: :allow_fonts,
2729 type: :boolean
2730 },
2731 %{
2732 key: :scrub_policy,
2733 type: {:list, :module},
2734 description:
2735 "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
2736 suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
2737 }
2738 ]
2739 },
2740 %{
2741 group: :pleroma,
2742 key: :user,
2743 type: :group,
2744 children: [
2745 %{
2746 key: :deny_follow_blocked,
2747 type: :boolean
2748 }
2749 ]
2750 },
2751 %{
2752 group: :pleroma,
2753 key: Pleroma.User,
2754 type: :group,
2755 children: [
2756 %{
2757 key: :restricted_nicknames,
2758 type: {:list, :string},
2759 description: "List of nicknames users may not register with.",
2760 suggestions: [
2761 ".well-known",
2762 "~",
2763 "about",
2764 "activities",
2765 "api",
2766 "auth",
2767 "check_password",
2768 "dev",
2769 "friend-requests",
2770 "inbox",
2771 "internal",
2772 "main",
2773 "media",
2774 "nodeinfo",
2775 "notice",
2776 "oauth",
2777 "objects",
2778 "ostatus_subscribe",
2779 "pleroma",
2780 "proxy",
2781 "push",
2782 "registration",
2783 "relay",
2784 "settings",
2785 "status",
2786 "tag",
2787 "user-search",
2788 "user_exists",
2789 "users",
2790 "web"
2791 ]
2792 },
2793 %{
2794 key: :email_blacklist,
2795 type: {:list, :string},
2796 description: "List of email domains users may not register with.",
2797 suggestions: ["mailinator.com", "maildrop.cc"]
2798 }
2799 ]
2800 },
2801 %{
2802 group: :cors_plug,
2803 label: "CORS plug config",
2804 type: :group,
2805 children: [
2806 %{
2807 key: :max_age,
2808 type: :integer,
2809 suggestions: [86_400]
2810 },
2811 %{
2812 key: :methods,
2813 type: {:list, :string},
2814 suggestions: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"]
2815 },
2816 %{
2817 key: :expose,
2818 type: {:list, :string},
2819 suggestions: [
2820 "Link",
2821 "X-RateLimit-Reset",
2822 "X-RateLimit-Limit",
2823 "X-RateLimit-Remaining",
2824 "X-Request-Id",
2825 "Idempotency-Key"
2826 ]
2827 },
2828 %{
2829 key: :credentials,
2830 type: :boolean
2831 },
2832 %{
2833 key: :headers,
2834 type: {:list, :string},
2835 suggestions: ["Authorization", "Content-Type", "Idempotency-Key"]
2836 }
2837 ]
2838 },
2839 %{
2840 group: :pleroma,
2841 key: Pleroma.Web.Plugs.RemoteIp,
2842 type: :group,
2843 description: """
2844 `Pleroma.Web.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration.
2845 **If your instance is not behind at least one reverse proxy, you should not enable this plug.**
2846 """,
2847 children: [
2848 %{
2849 key: :enabled,
2850 type: :boolean,
2851 description: "Enable/disable the plug. Default: disabled."
2852 },
2853 %{
2854 key: :headers,
2855 type: {:list, :string},
2856 description: """
2857 A list of strings naming the HTTP headers to use when deriving the true client IP. Default: `["x-forwarded-for"]`.
2858 """
2859 },
2860 %{
2861 key: :proxies,
2862 type: {:list, :string},
2863 description:
2864 "A list of upstream proxy IP subnets in CIDR notation from which we will parse the content of `headers`. Defaults to `[]`. IPv4 entries without a bitmask will be assumed to be /32 and IPv6 /128."
2865 },
2866 %{
2867 key: :reserved,
2868 type: {:list, :string},
2869 description: """
2870 A list of reserved IP subnets in CIDR notation which should be ignored if found in `headers`. Defaults to `["127.0.0.0/8", "::1/128", "fc00::/7", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]`
2871 """
2872 }
2873 ]
2874 },
2875 %{
2876 group: :pleroma,
2877 key: :web_cache_ttl,
2878 label: "Web cache TTL",
2879 type: :group,
2880 description:
2881 "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.",
2882 children: [
2883 %{
2884 key: :activity_pub,
2885 type: :integer,
2886 description:
2887 "Activity pub routes (except question activities). Default: `nil` (no expiration).",
2888 suggestions: [30_000, nil]
2889 },
2890 %{
2891 key: :activity_pub_question,
2892 type: :integer,
2893 description: "Activity pub routes (question activities). Default: `30_000` (30 seconds).",
2894 suggestions: [30_000]
2895 }
2896 ]
2897 },
2898 %{
2899 group: :pleroma,
2900 key: :static_fe,
2901 label: "Static FE",
2902 type: :group,
2903 description:
2904 "Render profiles and posts using server-generated HTML that is viewable without using JavaScript",
2905 children: [
2906 %{
2907 key: :enabled,
2908 type: :boolean,
2909 description: "Enables the rendering of static HTML. Default: disabled."
2910 }
2911 ]
2912 },
2913 %{
2914 group: :pleroma,
2915 key: :feed,
2916 type: :group,
2917 description: "Configure feed rendering",
2918 children: [
2919 %{
2920 key: :post_title,
2921 type: :map,
2922 description: "Configure title rendering",
2923 children: [
2924 %{
2925 key: :max_length,
2926 type: :integer,
2927 description: "Maximum number of characters before truncating title",
2928 suggestions: [100]
2929 },
2930 %{
2931 key: :omission,
2932 type: :string,
2933 description: "Replacement which will be used after truncating string",
2934 suggestions: ["..."]
2935 }
2936 ]
2937 }
2938 ]
2939 },
2940 %{
2941 group: :pleroma,
2942 key: :modules,
2943 type: :group,
2944 description: "Custom Runtime Modules",
2945 children: [
2946 %{
2947 key: :runtime_dir,
2948 type: :string,
2949 description: "A path to custom Elixir modules (such as MRF policies)."
2950 }
2951 ]
2952 },
2953 %{
2954 group: :pleroma,
2955 key: :streamer,
2956 type: :group,
2957 description: "Settings for notifications streamer",
2958 children: [
2959 %{
2960 key: :workers,
2961 type: :integer,
2962 description: "Number of workers to send notifications",
2963 suggestions: [3]
2964 },
2965 %{
2966 key: :overflow_workers,
2967 type: :integer,
2968 description: "Maximum number of workers created if pool is empty",
2969 suggestions: [2]
2970 }
2971 ]
2972 },
2973 %{
2974 group: :pleroma,
2975 key: :connections_pool,
2976 type: :group,
2977 description: "Advanced settings for `Gun` connections pool",
2978 children: [
2979 %{
2980 key: :connection_acquisition_wait,
2981 type: :integer,
2982 description:
2983 "Timeout to acquire a connection from pool. The total max time is this value multiplied by the number of retries. Default: 250ms.",
2984 suggestions: [250]
2985 },
2986 %{
2987 key: :connection_acquisition_retries,
2988 type: :integer,
2989 description:
2990 "Number of attempts to acquire the connection from the pool if it is overloaded. Default: 5",
2991 suggestions: [5]
2992 },
2993 %{
2994 key: :max_connections,
2995 type: :integer,
2996 description: "Maximum number of connections in the pool. Default: 250 connections.",
2997 suggestions: [250]
2998 },
2999 %{
3000 key: :connect_timeout,
3001 type: :integer,
3002 description: "Timeout while `gun` will wait until connection is up. Default: 5000ms.",
3003 suggestions: [5000]
3004 },
3005 %{
3006 key: :reclaim_multiplier,
3007 type: :integer,
3008 description:
3009 "Multiplier for the number of idle connection to be reclaimed if the pool is full. For example if the pool maxes out at 250 connections and this setting is set to 0.3, the pool will reclaim at most 75 idle connections if it's overloaded. Default: 0.1",
3010 suggestions: [0.1]
3011 }
3012 ]
3013 },
3014 %{
3015 group: :pleroma,
3016 key: :pools,
3017 type: :group,
3018 description: "Advanced settings for `Gun` workers pools",
3019 children:
3020 Enum.map([:federation, :media, :upload, :default], fn pool_name ->
3021 %{
3022 key: pool_name,
3023 type: :keyword,
3024 description: "Settings for #{pool_name} pool.",
3025 children: [
3026 %{
3027 key: :size,
3028 type: :integer,
3029 description: "Maximum number of concurrent requests in the pool.",
3030 suggestions: [50]
3031 },
3032 %{
3033 key: :max_waiting,
3034 type: :integer,
3035 description:
3036 "Maximum number of requests waiting for other requests to finish. After this number is reached, the pool will start returning errrors when a new request is made",
3037 suggestions: [10]
3038 },
3039 %{
3040 key: :recv_timeout,
3041 type: :integer,
3042 description: "Timeout for the pool while gun will wait for response",
3043 suggestions: [10_000]
3044 }
3045 ]
3046 }
3047 end)
3048 },
3049 %{
3050 group: :pleroma,
3051 key: :hackney_pools,
3052 type: :group,
3053 description: "Advanced settings for `Hackney` connections pools",
3054 children: [
3055 %{
3056 key: :federation,
3057 type: :keyword,
3058 description: "Settings for federation pool.",
3059 children: [
3060 %{
3061 key: :max_connections,
3062 type: :integer,
3063 description: "Number workers in the pool.",
3064 suggestions: [50]
3065 },
3066 %{
3067 key: :timeout,
3068 type: :integer,
3069 description: "Timeout while `hackney` will wait for response.",
3070 suggestions: [150_000]
3071 }
3072 ]
3073 },
3074 %{
3075 key: :media,
3076 type: :keyword,
3077 description: "Settings for media pool.",
3078 children: [
3079 %{
3080 key: :max_connections,
3081 type: :integer,
3082 description: "Number workers in the pool.",
3083 suggestions: [50]
3084 },
3085 %{
3086 key: :timeout,
3087 type: :integer,
3088 description: "Timeout while `hackney` will wait for response.",
3089 suggestions: [150_000]
3090 }
3091 ]
3092 },
3093 %{
3094 key: :upload,
3095 type: :keyword,
3096 description: "Settings for upload pool.",
3097 children: [
3098 %{
3099 key: :max_connections,
3100 type: :integer,
3101 description: "Number workers in the pool.",
3102 suggestions: [25]
3103 },
3104 %{
3105 key: :timeout,
3106 type: :integer,
3107 description: "Timeout while `hackney` will wait for response.",
3108 suggestions: [300_000]
3109 }
3110 ]
3111 }
3112 ]
3113 },
3114 %{
3115 group: :pleroma,
3116 key: :restrict_unauthenticated,
3117 label: "Restrict Unauthenticated",
3118 type: :group,
3119 description:
3120 "Disallow viewing timelines, user profiles and statuses for unauthenticated users.",
3121 children: [
3122 %{
3123 key: :timelines,
3124 type: :map,
3125 description: "Settings for public and federated timelines.",
3126 children: [
3127 %{
3128 key: :local,
3129 type: :boolean,
3130 description: "Disallow view public timeline."
3131 },
3132 %{
3133 key: :federated,
3134 type: :boolean,
3135 description: "Disallow view federated timeline."
3136 }
3137 ]
3138 },
3139 %{
3140 key: :profiles,
3141 type: :map,
3142 description: "Settings for user profiles.",
3143 children: [
3144 %{
3145 key: :local,
3146 type: :boolean,
3147 description: "Disallow view local user profiles."
3148 },
3149 %{
3150 key: :remote,
3151 type: :boolean,
3152 description: "Disallow view remote user profiles."
3153 }
3154 ]
3155 },
3156 %{
3157 key: :activities,
3158 type: :map,
3159 description: "Settings for statuses.",
3160 children: [
3161 %{
3162 key: :local,
3163 type: :boolean,
3164 description: "Disallow view local statuses."
3165 },
3166 %{
3167 key: :remote,
3168 type: :boolean,
3169 description: "Disallow view remote statuses."
3170 }
3171 ]
3172 }
3173 ]
3174 },
3175 %{
3176 group: :pleroma,
3177 key: Pleroma.Web.ApiSpec.CastAndValidate,
3178 type: :group,
3179 children: [
3180 %{
3181 key: :strict,
3182 type: :boolean,
3183 description:
3184 "Enables strict input validation (useful in development, not recommended in production)"
3185 }
3186 ]
3187 },
3188 %{
3189 group: :pleroma,
3190 key: :instances_favicons,
3191 type: :group,
3192 description: "Control favicons for instances",
3193 children: [
3194 %{
3195 key: :enabled,
3196 type: :boolean,
3197 description: "Allow/disallow displaying and getting instances favicons"
3198 }
3199 ]
3200 },
3201 %{
3202 group: :ex_aws,
3203 key: :s3,
3204 type: :group,
3205 descriptions: "S3 service related settings",
3206 children: [
3207 %{
3208 key: :access_key_id,
3209 type: :string,
3210 description: "S3 access key ID",
3211 suggestions: ["AKIAQ8UKHTGIYN7DMWWJ"]
3212 },
3213 %{
3214 key: :secret_access_key,
3215 type: :string,
3216 description: "Secret access key",
3217 suggestions: ["JFGt+fgH1UQ7vLUQjpW+WvjTdV/UNzVxcwn7DkaeFKtBS5LvoXvIiME4NQBsT6ZZ"]
3218 },
3219 %{
3220 key: :host,
3221 type: :string,
3222 description: "S3 host",
3223 suggestions: ["s3.eu-central-1.amazonaws.com"]
3224 },
3225 %{
3226 key: :region,
3227 type: :string,
3228 description: "S3 region (for AWS)",
3229 suggestions: ["us-east-1"]
3230 }
3231 ]
3232 },
3233 %{
3234 group: :pleroma,
3235 key: :frontends,
3236 type: :group,
3237 description: "Installed frontends management",
3238 children: [
3239 %{
3240 key: :primary,
3241 type: :map,
3242 description: "Primary frontend, the one that is served for all pages by default",
3243 children: installed_frontend_options
3244 },
3245 %{
3246 key: :admin,
3247 type: :map,
3248 description: "Admin frontend",
3249 children: installed_frontend_options
3250 },
3251 %{
3252 key: :available,
3253 type: :map,
3254 description:
3255 "A map containing available frontends and parameters for their installation.",
3256 children: frontend_options
3257 }
3258 ]
3259 },
3260 %{
3261 group: :pleroma,
3262 key: Pleroma.Web.Preload,
3263 type: :group,
3264 description: "Preload-related settings",
3265 children: [
3266 %{
3267 key: :providers,
3268 type: {:list, :module},
3269 description: "List of preload providers to enable",
3270 suggestions: [
3271 Pleroma.Web.Preload.Providers.Instance,
3272 Pleroma.Web.Preload.Providers.User,
3273 Pleroma.Web.Preload.Providers.Timelines,
3274 Pleroma.Web.Preload.Providers.StatusNet
3275 ]
3276 }
3277 ]
3278 },
3279 %{
3280 group: :pleroma,
3281 key: :majic_pool,
3282 type: :group,
3283 description: "Majic/libmagic configuration",
3284 children: [
3285 %{
3286 key: :size,
3287 type: :integer,
3288 description: "Number of majic workers to start.",
3289 suggestions: [2]
3290 }
3291 ]
3292 },
3293 %{
3294 group: :pleroma,
3295 key: Pleroma.User.Backup,
3296 type: :group,
3297 description: "Account Backup",
3298 children: [
3299 %{
3300 key: :purge_after_days,
3301 type: :integer,
3302 description: "Remove backup achives after N days",
3303 suggestions: [30]
3304 },
3305 %{
3306 key: :limit_days,
3307 type: :integer,
3308 description: "Limit user to export not more often than once per N days",
3309 suggestions: [7]
3310 }
3311 ]
3312 },
3313 %{
3314 group: :prometheus,
3315 key: Pleroma.Web.Endpoint.MetricsExporter,
3316 type: :group,
3317 description: "Prometheus app metrics endpoint configuration",
3318 children: [
3319 %{
3320 key: :enabled,
3321 type: :boolean,
3322 description: "[Pleroma extension] Enables app metrics endpoint."
3323 },
3324 %{
3325 key: :ip_whitelist,
3326 type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
3327 description:
3328 "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
3329 },
3330 %{
3331 key: :auth,
3332 type: [:boolean, :tuple],
3333 description: "Enables HTTP Basic Auth for app metrics endpoint.",
3334 suggestion: [false, {:basic, "myusername", "mypassword"}]
3335 },
3336 %{
3337 key: :path,
3338 type: :string,
3339 description: "App metrics endpoint URI path.",
3340 suggestions: ["/api/pleroma/app_metrics"]
3341 },
3342 %{
3343 key: :format,
3344 type: :atom,
3345 description: "App metrics endpoint output format.",
3346 suggestions: [:text, :protobuf]
3347 }
3348 ]
3349 },
3350 %{
3351 group: :pleroma,
3352 key: ConcurrentLimiter,
3353 type: :group,
3354 description: "Limits configuration for background tasks.",
3355 children: [
3356 %{
3357 key: Pleroma.Web.RichMedia.Helpers,
3358 type: :keyword,
3359 description: "Concurrent limits configuration for getting RichMedia for activities.",
3360 suggestions: [max_running: 5, max_waiting: 5],
3361 children: [
3362 %{
3363 key: :max_running,
3364 type: :integer,
3365 description: "Max running concurrently jobs.",
3366 suggestion: [5]
3367 },
3368 %{
3369 key: :max_waiting,
3370 type: :integer,
3371 description: "Max waiting jobs.",
3372 suggestion: [5]
3373 }
3374 ]
3375 },
3376 %{
3377 key: Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy,
3378 type: :keyword,
3379 description: "Concurrent limits configuration for MediaProxyWarmingPolicy.",
3380 suggestions: [max_running: 5, max_waiting: 5],
3381 children: [
3382 %{
3383 key: :max_running,
3384 type: :integer,
3385 description: "Max running concurrently jobs.",
3386 suggestion: [5]
3387 },
3388 %{
3389 key: :max_waiting,
3390 type: :integer,
3391 description: "Max waiting jobs.",
3392 suggestion: [5]
3393 }
3394 ]
3395 }
3396 ]
3397 }
3398 ]