Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / config / config.exs
1 # .i;;;;i.
2 # iYcviii;vXY:
3 # .YXi .i1c.
4 # .YC. . in7.
5 # .vc. ...... ;1c.
6 # i7, .. .;1;
7 # i7, .. ... .Y1i
8 # ,7v .6MMM@; .YX,
9 # .7;. ..IMMMMMM1 :t7.
10 # .;Y. ;$MMMMMM9. :tc.
11 # vY. .. .nMMM@MMU. ;1v.
12 # i7i ... .#MM@M@C. .....:71i
13 # it: .... $MMM@9;.,i;;;i,;tti
14 # :t7. ..... 0MMMWv.,iii:::,,;St.
15 # .nC. ..... IMMMQ..,::::::,.,czX.
16 # .ct: ....... .ZMMMI..,:::::::,,:76Y.
17 # c2: ......,i..Y$M@t..:::::::,,..inZY
18 # vov ......:ii..c$MBc..,,,,,,,,,,..iI9i
19 # i9Y ......iii:..7@MA,..,,,,,,,,,....;AA:
20 # iIS. ......:ii::..;@MI....,............;Ez.
21 # .I9. ......:i::::...8M1..................C0z.
22 # .z9; ......:i::::,.. .i:...................zWX.
23 # vbv ......,i::::,,. ................. :AQY
24 # c6Y. .,...,::::,,..:t0@@QY. ................ :8bi
25 # :6S. ..,,...,:::,,,..EMMMMMMI. ............... .;bZ,
26 # :6o, .,,,,..:::,,,..i#MMMMMM#v................. YW2.
27 # .n8i ..,,,,,,,::,,,,.. tMMMMM@C:.................. .1Wn
28 # 7Uc. .:::,,,,,::,,,,.. i1t;,..................... .UEi
29 # 7C...::::::::::::,,,,.. .................... vSi.
30 # ;1;...,,::::::,......... .................. Yz:
31 # v97,......... .voC.
32 # izAotX7777777777777777777777777777777777777777Y7n92:
33 # .;CoIIIIIUAA666666699999ZZZZZZZZZZZZZZZZZZZZ6ov.
34 #
35 # !!! ATTENTION !!!
36 # DO NOT EDIT THIS FILE! THIS FILE CONTAINS THE DEFAULT VALUES FOR THE CON-
37 # FIGURATION! EDIT YOUR SECRET FILE (either prod.secret.exs, dev.secret.exs).
38 #
39 # This file is responsible for configuring your application
40 # and its dependencies with the aid of the Mix.Config module.
41 #
42 # This configuration file is loaded before any dependency and
43 # is restricted to this project.
44 use Mix.Config
45
46 # General application configuration
47 config :pleroma, ecto_repos: [Pleroma.Repo]
48
49 config :pleroma, Pleroma.Repo,
50 types: Pleroma.PostgresTypes,
51 telemetry_event: [Pleroma.Repo.Instrumenter],
52 migration_lock: nil
53
54 config :pleroma, Pleroma.Captcha,
55 enabled: true,
56 seconds_valid: 300,
57 method: Pleroma.Captcha.Native
58
59 config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
60
61 # Upload configuration
62 config :pleroma, Pleroma.Upload,
63 uploader: Pleroma.Uploaders.Local,
64 filters: [Pleroma.Upload.Filter.Dedupe],
65 link_name: false,
66 proxy_remote: false,
67 proxy_opts: [
68 redirect_on_failure: false,
69 max_body_length: 25 * 1_048_576,
70 http: [
71 follow_redirect: true,
72 pool: :upload
73 ]
74 ],
75 filename_display_max_length: 30,
76 default_description: nil
77
78 config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
79
80 config :pleroma, Pleroma.Uploaders.S3,
81 bucket: nil,
82 streaming_enabled: true,
83 public_endpoint: "https://s3.amazonaws.com"
84
85 config :pleroma, :emoji,
86 shortcode_globs: ["/emoji/custom/**/*.png"],
87 pack_extensions: [".png", ".gif"],
88 groups: [
89 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
90 ],
91 default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json",
92 shared_pack_cache_seconds_per_file: 60
93
94 config :pleroma, :uri_schemes,
95 valid_schemes: [
96 "https",
97 "http",
98 "dat",
99 "dweb",
100 "gopher",
101 "hyper",
102 "ipfs",
103 "ipns",
104 "irc",
105 "ircs",
106 "magnet",
107 "mailto",
108 "mumble",
109 "ssb",
110 "xmpp"
111 ]
112
113 websocket_config = [
114 path: "/websocket",
115 serializer: [
116 {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
117 {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
118 ],
119 timeout: 60_000,
120 transport_log: false,
121 compress: false
122 ]
123
124 # Configures the endpoint
125 config :pleroma, Pleroma.Web.Endpoint,
126 url: [host: "localhost"],
127 http: [
128 ip: {127, 0, 0, 1},
129 dispatch: [
130 {:_,
131 [
132 {"/api/fedsocket/v1", Pleroma.Web.FedSockets.IncomingHandler, []},
133 {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
134 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
135 {Phoenix.Transports.WebSocket,
136 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
137 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
138 ]}
139 ]
140 ],
141 protocol: "https",
142 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
143 signing_salt: "CqaoopA2",
144 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
145 pubsub_server: Pleroma.PubSub,
146 secure_cookie_flag: true,
147 extra_cookie_attrs: [
148 "SameSite=Lax"
149 ]
150
151 config :pleroma, :fed_sockets,
152 enabled: false,
153 connection_duration: :timer.hours(8),
154 rejection_duration: :timer.minutes(15),
155 fed_socket_fetches: [
156 default: 12_000,
157 interval: 3_000,
158 lazy: false
159 ]
160
161 # Configures Elixir's Logger
162 config :logger, :console,
163 level: :debug,
164 format: "\n$time $metadata[$level] $message\n",
165 metadata: [:request_id]
166
167 config :logger, :ex_syslogger,
168 level: :debug,
169 ident: "pleroma",
170 format: "$metadata[$level] $message",
171 metadata: [:request_id]
172
173 config :quack,
174 level: :warn,
175 meta: [:all],
176 webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
177
178 config :mime, :types, %{
179 "application/xml" => ["xml"],
180 "application/xrd+xml" => ["xrd+xml"],
181 "application/jrd+json" => ["jrd+json"],
182 "application/activity+json" => ["activity+json"],
183 "application/ld+json" => ["activity+json"]
184 }
185
186 config :tesla, adapter: Tesla.Adapter.Hackney
187
188 # Configures http settings, upstream proxy etc.
189 config :pleroma, :http,
190 proxy_url: nil,
191 send_user_agent: true,
192 user_agent: :default,
193 adapter: []
194
195 config :pleroma, :instance,
196 name: "Pleroma",
197 email: "example@example.com",
198 notify_email: "noreply@example.com",
199 description: "Pleroma: An efficient and flexible fediverse server",
200 background_image: "/images/city.jpg",
201 instance_thumbnail: "/instance/thumbnail.jpeg",
202 limit: 5_000,
203 description_limit: 5_000,
204 chat_limit: 5_000,
205 remote_limit: 100_000,
206 upload_limit: 16_000_000,
207 avatar_upload_limit: 2_000_000,
208 background_upload_limit: 4_000_000,
209 banner_upload_limit: 4_000_000,
210 poll_limits: %{
211 max_options: 20,
212 max_option_chars: 200,
213 min_expiration: 0,
214 max_expiration: 365 * 24 * 60 * 60
215 },
216 registrations_open: true,
217 invites_enabled: false,
218 account_activation_required: false,
219 account_approval_required: false,
220 federating: true,
221 federation_incoming_replies_max_depth: 100,
222 federation_reachability_timeout_days: 7,
223 federation_publisher_modules: [
224 Pleroma.Web.ActivityPub.Publisher
225 ],
226 allow_relay: true,
227 public: true,
228 quarantined_instances: [],
229 static_dir: "instance/static/",
230 allowed_post_formats: [
231 "text/plain",
232 "text/html",
233 "text/markdown",
234 "text/bbcode"
235 ],
236 mrf_transparency: true,
237 mrf_transparency_exclusions: [],
238 staff_transparency: [],
239 autofollowed_nicknames: [],
240 autofollowing_nicknames: [],
241 max_pinned_statuses: 1,
242 attachment_links: false,
243 max_report_comment_size: 1000,
244 safe_dm_mentions: false,
245 healthcheck: false,
246 remote_post_retention_days: 90,
247 skip_thread_containment: true,
248 limit_to_local_content: :unauthenticated,
249 user_bio_length: 5000,
250 user_name_length: 100,
251 max_account_fields: 10,
252 max_remote_account_fields: 20,
253 account_field_name_length: 512,
254 account_field_value_length: 2048,
255 registration_reason_length: 500,
256 external_user_synchronization: true,
257 extended_nickname_format: true,
258 cleanup_attachments: false,
259 multi_factor_authentication: [
260 totp: [
261 # digits 6 or 8
262 digits: 6,
263 period: 30
264 ],
265 backup_codes: [
266 number: 5,
267 length: 16
268 ]
269 ],
270 show_reactions: true
271
272 config :pleroma, :welcome,
273 direct_message: [
274 enabled: false,
275 sender_nickname: nil,
276 message: nil
277 ],
278 chat_message: [
279 enabled: false,
280 sender_nickname: nil,
281 message: nil
282 ],
283 email: [
284 enabled: false,
285 sender: nil,
286 subject: "Welcome to <%= instance_name %>",
287 html: "Welcome to <%= instance_name %>",
288 text: "Welcome to <%= instance_name %>"
289 ]
290
291 config :pleroma, :feed,
292 post_title: %{
293 max_length: 100,
294 omission: "..."
295 }
296
297 config :pleroma, :markup,
298 # XXX - unfortunately, inline images must be enabled by default right now, because
299 # of custom emoji. Issue #275 discusses defanging that somehow.
300 allow_inline_images: true,
301 allow_headings: false,
302 allow_tables: false,
303 allow_fonts: false,
304 scrub_policy: [
305 Pleroma.HTML.Scrubber.Default,
306 Pleroma.HTML.Transform.MediaProxy
307 ]
308
309 config :pleroma, :frontend_configurations,
310 pleroma_fe: %{
311 alwaysShowSubjectInput: true,
312 background: "/images/city.jpg",
313 collapseMessageWithSubject: false,
314 disableChat: false,
315 greentext: false,
316 hideFilteredStatuses: false,
317 hideMutedPosts: false,
318 hidePostStats: false,
319 hideSitename: false,
320 hideUserStats: false,
321 loginMethod: "password",
322 logo: "/static/logo.png",
323 logoMargin: ".1em",
324 logoMask: true,
325 minimalScopesMode: false,
326 noAttachmentLinks: false,
327 nsfwCensorImage: "",
328 postContentType: "text/plain",
329 redirectRootLogin: "/main/friends",
330 redirectRootNoLogin: "/main/all",
331 scopeCopy: true,
332 sidebarRight: false,
333 showFeaturesPanel: true,
334 showInstanceSpecificPanel: false,
335 subjectLineBehavior: "email",
336 theme: "pleroma-dark",
337 webPushNotifications: false
338 },
339 masto_fe: %{
340 showInstanceSpecificPanel: true
341 }
342
343 config :pleroma, :assets,
344 mascots: [
345 pleroma_fox_tan: %{
346 url: "/images/pleroma-fox-tan-smol.png",
347 mime_type: "image/png"
348 },
349 pleroma_fox_tan_shy: %{
350 url: "/images/pleroma-fox-tan-shy.png",
351 mime_type: "image/png"
352 }
353 ],
354 default_mascot: :pleroma_fox_tan
355
356 config :pleroma, :manifest,
357 icons: [
358 %{
359 src: "/static/logo.png",
360 type: "image/png"
361 }
362 ],
363 theme_color: "#282c37",
364 background_color: "#191b22"
365
366 config :pleroma, :activitypub,
367 unfollow_blocked: true,
368 outgoing_blocks: true,
369 follow_handshake_timeout: 500,
370 note_replies_output_limit: 5,
371 sign_object_fetches: true,
372 authorized_fetch_mode: false
373
374 config :pleroma, :streamer,
375 workers: 3,
376 overflow_workers: 2
377
378 config :pleroma, :user, deny_follow_blocked: true
379
380 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
381
382 config :pleroma, :mrf_rejectnonpublic,
383 allow_followersonly: false,
384 allow_direct: false
385
386 config :pleroma, :mrf_hellthread,
387 delist_threshold: 10,
388 reject_threshold: 20
389
390 config :pleroma, :mrf_simple,
391 media_removal: [],
392 media_nsfw: [],
393 federated_timeline_removal: [],
394 report_removal: [],
395 reject: [],
396 followers_only: [],
397 accept: [],
398 avatar_removal: [],
399 banner_removal: [],
400 reject_deletes: []
401
402 config :pleroma, :mrf_keyword,
403 reject: [],
404 federated_timeline_removal: [],
405 replace: []
406
407 config :pleroma, :mrf_subchain, match_actor: %{}
408
409 config :pleroma, :mrf_activity_expiration, days: 365
410
411 config :pleroma, :mrf_vocabulary,
412 accept: [],
413 reject: []
414
415 # threshold of 7 days
416 config :pleroma, :mrf_object_age,
417 threshold: 604_800,
418 actions: [:delist, :strip_followers]
419
420 config :pleroma, :rich_media,
421 enabled: true,
422 ignore_hosts: [],
423 ignore_tld: ["local", "localdomain", "lan"],
424 parsers: [
425 Pleroma.Web.RichMedia.Parsers.TwitterCard,
426 Pleroma.Web.RichMedia.Parsers.OEmbed
427 ],
428 failure_backoff: 60_000,
429 ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
430
431 config :pleroma, :media_proxy,
432 enabled: false,
433 invalidation: [
434 enabled: false,
435 provider: Pleroma.Web.MediaProxy.Invalidation.Script
436 ],
437 proxy_opts: [
438 redirect_on_failure: false,
439 max_body_length: 25 * 1_048_576,
440 # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
441 max_read_duration: 30_000,
442 http: [
443 follow_redirect: true,
444 pool: :media
445 ]
446 ],
447 whitelist: []
448
449 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
450 method: :purge,
451 headers: [],
452 options: []
453
454 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
455
456 # Note: media preview proxy depends on media proxy to be enabled
457 config :pleroma, :media_preview_proxy,
458 enabled: false,
459 thumbnail_max_width: 600,
460 thumbnail_max_height: 600,
461 image_quality: 85,
462 min_content_length: 100 * 1024
463
464 config :pleroma, :chat, enabled: true
465
466 config :phoenix, :format_encoders, json: Jason
467
468 config :phoenix, :json_library, Jason
469
470 config :phoenix, :filter_parameters, ["password", "confirm"]
471
472 config :pleroma, :gopher,
473 enabled: false,
474 ip: {0, 0, 0, 0},
475 port: 9999
476
477 config :pleroma, Pleroma.Web.Metadata,
478 providers: [
479 Pleroma.Web.Metadata.Providers.OpenGraph,
480 Pleroma.Web.Metadata.Providers.TwitterCard
481 ],
482 unfurl_nsfw: false
483
484 config :pleroma, Pleroma.Web.Preload,
485 providers: [
486 Pleroma.Web.Preload.Providers.Instance
487 ]
488
489 config :pleroma, :http_security,
490 enabled: true,
491 sts: false,
492 sts_max_age: 31_536_000,
493 ct_max_age: 2_592_000,
494 referrer_policy: "same-origin"
495
496 config :cors_plug,
497 max_age: 86_400,
498 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
499 expose: [
500 "Link",
501 "X-RateLimit-Reset",
502 "X-RateLimit-Limit",
503 "X-RateLimit-Remaining",
504 "X-Request-Id",
505 "Idempotency-Key"
506 ],
507 credentials: true,
508 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
509
510 config :pleroma, Pleroma.User,
511 restricted_nicknames: [
512 ".well-known",
513 "~",
514 "about",
515 "activities",
516 "api",
517 "auth",
518 "check_password",
519 "dev",
520 "friend-requests",
521 "inbox",
522 "internal",
523 "main",
524 "media",
525 "nodeinfo",
526 "notice",
527 "oauth",
528 "objects",
529 "ostatus_subscribe",
530 "pleroma",
531 "proxy",
532 "push",
533 "registration",
534 "relay",
535 "settings",
536 "status",
537 "tag",
538 "user-search",
539 "user_exists",
540 "users",
541 "web",
542 "verify_credentials",
543 "update_credentials",
544 "relationships",
545 "search",
546 "confirmation_resend",
547 "mfa"
548 ],
549 email_blacklist: []
550
551 config :pleroma, Oban,
552 repo: Pleroma.Repo,
553 log: false,
554 queues: [
555 activity_expiration: 10,
556 token_expiration: 5,
557 backup: 1,
558 federator_incoming: 50,
559 federator_outgoing: 50,
560 ingestion_queue: 50,
561 web_push: 50,
562 mailer: 10,
563 transmogrifier: 20,
564 scheduled_activities: 10,
565 background: 5,
566 remote_fetcher: 2,
567 attachments_cleanup: 5,
568 new_users_digest: 1
569 ],
570 plugins: [Oban.Plugins.Pruner],
571 crontab: [
572 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
573 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
574 ]
575
576 config :pleroma, :workers,
577 retries: [
578 federator_incoming: 5,
579 federator_outgoing: 5
580 ]
581
582 config :pleroma, Pleroma.Formatter,
583 class: false,
584 rel: "ugc",
585 new_window: false,
586 truncate: false,
587 strip_prefix: false,
588 extra: true,
589 validate_tld: :no_scheme
590
591 config :pleroma, :ldap,
592 enabled: System.get_env("LDAP_ENABLED") == "true",
593 host: System.get_env("LDAP_HOST") || "localhost",
594 port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
595 ssl: System.get_env("LDAP_SSL") == "true",
596 sslopts: [],
597 tls: System.get_env("LDAP_TLS") == "true",
598 tlsopts: [],
599 base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
600 uid: System.get_env("LDAP_UID") || "cn"
601
602 config :esshd,
603 enabled: false
604
605 oauth_consumer_strategies =
606 System.get_env("OAUTH_CONSUMER_STRATEGIES")
607 |> to_string()
608 |> String.split()
609 |> Enum.map(&hd(String.split(&1, ":")))
610
611 ueberauth_providers =
612 for strategy <- oauth_consumer_strategies do
613 strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
614 strategy_module = String.to_atom(strategy_module_name)
615 {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
616 end
617
618 config :ueberauth,
619 Ueberauth,
620 base_path: "/oauth",
621 providers: ueberauth_providers
622
623 config :pleroma,
624 :auth,
625 enforce_oauth_admin_scope_usage: true,
626 oauth_consumer_strategies: oauth_consumer_strategies
627
628 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
629
630 config :pleroma, Pleroma.Emails.UserEmail,
631 logo: nil,
632 styling: %{
633 link_color: "#d8a070",
634 background_color: "#2C3645",
635 content_background_color: "#1B2635",
636 header_color: "#d8a070",
637 text_color: "#b9b9ba",
638 text_muted_color: "#b9b9ba"
639 }
640
641 config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
642
643 config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
644 enabled: false,
645 auth: false,
646 ip_whitelist: [],
647 path: "/api/pleroma/app_metrics",
648 format: :text
649
650 config :pleroma, Pleroma.ScheduledActivity,
651 daily_user_limit: 25,
652 total_user_limit: 300,
653 enabled: true
654
655 config :pleroma, :email_notifications,
656 digest: %{
657 active: false,
658 interval: 7,
659 inactivity_threshold: 7
660 }
661
662 config :pleroma, :oauth2,
663 token_expires_in: 600,
664 issue_new_refresh_token: true,
665 clean_expired_tokens: false
666
667 config :pleroma, :database, rum_enabled: false
668
669 config :pleroma, :env, Mix.env()
670
671 config :http_signatures,
672 adapter: Pleroma.Signature
673
674 config :pleroma, :rate_limit,
675 authentication: {60_000, 15},
676 timeline: {500, 3},
677 search: [{1000, 10}, {1000, 30}],
678 app_account_creation: {1_800_000, 25},
679 relations_actions: {10_000, 10},
680 relation_id_action: {60_000, 2},
681 statuses_actions: {10_000, 15},
682 status_id_action: {60_000, 3},
683 password_reset: {1_800_000, 5},
684 account_confirmation_resend: {8_640_000, 5},
685 ap_routes: {60_000, 15}
686
687 config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
688
689 config :pleroma, Pleroma.Web.Plugs.RemoteIp,
690 enabled: true,
691 headers: ["x-forwarded-for"],
692 proxies: [],
693 reserved: [
694 "127.0.0.0/8",
695 "::1/128",
696 "fc00::/7",
697 "10.0.0.0/8",
698 "172.16.0.0/12",
699 "192.168.0.0/16"
700 ]
701
702 config :pleroma, :static_fe, enabled: false
703
704 # Example of frontend configuration
705 # This example will make us serve the primary frontend from the
706 # frontends directory within your `:pleroma, :instance, static_dir`.
707 # e.g., instance/static/frontends/pleroma/develop/
708 #
709 # With no frontend configuration, the bundled files from the `static` directory will
710 # be used.
711 #
712 # config :pleroma, :frontends,
713 # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
714 # admin: %{"name" => "admin-fe", "ref" => "stable"},
715 # available: %{...}
716
717 config :pleroma, :frontends,
718 available: %{
719 "kenoma" => %{
720 "name" => "kenoma",
721 "git" => "https://git.pleroma.social/lambadalambda/kenoma",
722 "build_url" =>
723 "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
724 "ref" => "master"
725 },
726 "pleroma-fe" => %{
727 "name" => "pleroma-fe",
728 "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
729 "build_url" =>
730 "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
731 "ref" => "develop"
732 },
733 "fedi-fe" => %{
734 "name" => "fedi-fe",
735 "git" => "https://git.pleroma.social/pleroma/fedi-fe",
736 "build_url" =>
737 "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
738 "ref" => "master"
739 },
740 "admin-fe" => %{
741 "name" => "admin-fe",
742 "git" => "https://git.pleroma.social/pleroma/admin-fe",
743 "build_url" =>
744 "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
745 "ref" => "develop"
746 },
747 "soapbox-fe" => %{
748 "name" => "soapbox-fe",
749 "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
750 "build_url" =>
751 "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
752 "ref" => "v1.0.0",
753 "build_dir" => "static"
754 }
755 }
756
757 config :pleroma, :web_cache_ttl,
758 activity_pub: nil,
759 activity_pub_question: 30_000
760
761 config :pleroma, :modules, runtime_dir: "instance/modules"
762
763 config :pleroma, configurable_from_database: false
764
765 config :pleroma, Pleroma.Repo,
766 parameters: [gin_fuzzy_search_limit: "500"],
767 prepare: :unnamed
768
769 config :pleroma, :connections_pool,
770 reclaim_multiplier: 0.1,
771 connection_acquisition_wait: 250,
772 connection_acquisition_retries: 5,
773 max_connections: 250,
774 max_idle_time: 30_000,
775 retry: 0,
776 connect_timeout: 5_000
777
778 config :pleroma, :pools,
779 federation: [
780 size: 50,
781 max_waiting: 10,
782 recv_timeout: 10_000
783 ],
784 media: [
785 size: 50,
786 max_waiting: 20,
787 recv_timeout: 15_000
788 ],
789 upload: [
790 size: 25,
791 max_waiting: 5,
792 recv_timeout: 15_000
793 ],
794 default: [
795 size: 10,
796 max_waiting: 2,
797 recv_timeout: 5_000
798 ]
799
800 config :pleroma, :hackney_pools,
801 federation: [
802 max_connections: 50,
803 timeout: 150_000
804 ],
805 media: [
806 max_connections: 50,
807 timeout: 150_000
808 ],
809 upload: [
810 max_connections: 25,
811 timeout: 300_000
812 ]
813
814 config :pleroma, :majic_pool, size: 2
815
816 private_instance? = :if_instance_is_private
817
818 config :pleroma, :restrict_unauthenticated,
819 timelines: %{local: private_instance?, federated: private_instance?},
820 profiles: %{local: private_instance?, remote: private_instance?},
821 activities: %{local: private_instance?, remote: private_instance?}
822
823 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
824
825 config :pleroma, :mrf,
826 policies: Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
827 transparency: true,
828 transparency_exclusions: []
829
830 config :tzdata, :http_client, Pleroma.HTTP.Tzdata
831
832 config :ex_aws, http_client: Pleroma.HTTP.ExAws
833
834 config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
835
836 config :pleroma, :instances_favicons, enabled: false
837
838 config :floki, :html_parser, Floki.HTMLParser.FastHtml
839
840 config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
841
842 config :pleroma, Pleroma.User.Backup,
843 purge_after_days: 30,
844 limit_days: 7,
845 dir: nil
846
847 # Import environment specific config. This must remain at the bottom
848 # of this file so it overrides the configuration defined above.
849 import_config "#{Mix.env()}.exs"