Merge remote-tracking branch 'remotes/origin/develop' into chore/elixir-1.11
[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 autofollowed_nicknames: [],
237 max_pinned_statuses: 1,
238 attachment_links: false,
239 max_report_comment_size: 1000,
240 safe_dm_mentions: false,
241 healthcheck: false,
242 remote_post_retention_days: 90,
243 skip_thread_containment: true,
244 limit_to_local_content: :unauthenticated,
245 user_bio_length: 5000,
246 user_name_length: 100,
247 max_account_fields: 10,
248 max_remote_account_fields: 20,
249 account_field_name_length: 512,
250 account_field_value_length: 2048,
251 registration_reason_length: 500,
252 external_user_synchronization: true,
253 extended_nickname_format: true,
254 cleanup_attachments: false,
255 multi_factor_authentication: [
256 totp: [
257 # digits 6 or 8
258 digits: 6,
259 period: 30
260 ],
261 backup_codes: [
262 number: 5,
263 length: 16
264 ]
265 ],
266 show_reactions: true
267
268 config :pleroma, :welcome,
269 direct_message: [
270 enabled: false,
271 sender_nickname: nil,
272 message: nil
273 ],
274 chat_message: [
275 enabled: false,
276 sender_nickname: nil,
277 message: nil
278 ],
279 email: [
280 enabled: false,
281 sender: nil,
282 subject: "Welcome to <%= instance_name %>",
283 html: "Welcome to <%= instance_name %>",
284 text: "Welcome to <%= instance_name %>"
285 ]
286
287 config :pleroma, :feed,
288 post_title: %{
289 max_length: 100,
290 omission: "..."
291 }
292
293 config :pleroma, :markup,
294 # XXX - unfortunately, inline images must be enabled by default right now, because
295 # of custom emoji. Issue #275 discusses defanging that somehow.
296 allow_inline_images: true,
297 allow_headings: false,
298 allow_tables: false,
299 allow_fonts: false,
300 scrub_policy: [
301 Pleroma.HTML.Scrubber.Default,
302 Pleroma.HTML.Transform.MediaProxy
303 ]
304
305 config :pleroma, :frontend_configurations,
306 pleroma_fe: %{
307 alwaysShowSubjectInput: true,
308 background: "/images/city.jpg",
309 collapseMessageWithSubject: false,
310 disableChat: false,
311 greentext: false,
312 hideFilteredStatuses: false,
313 hideMutedPosts: false,
314 hidePostStats: false,
315 hideSitename: false,
316 hideUserStats: false,
317 loginMethod: "password",
318 logo: "/static/logo.png",
319 logoMargin: ".1em",
320 logoMask: true,
321 minimalScopesMode: false,
322 noAttachmentLinks: false,
323 nsfwCensorImage: "",
324 postContentType: "text/plain",
325 redirectRootLogin: "/main/friends",
326 redirectRootNoLogin: "/main/all",
327 scopeCopy: true,
328 sidebarRight: false,
329 showFeaturesPanel: true,
330 showInstanceSpecificPanel: false,
331 subjectLineBehavior: "email",
332 theme: "pleroma-dark",
333 webPushNotifications: false
334 },
335 masto_fe: %{
336 showInstanceSpecificPanel: true
337 }
338
339 config :pleroma, :assets,
340 mascots: [
341 pleroma_fox_tan: %{
342 url: "/images/pleroma-fox-tan-smol.png",
343 mime_type: "image/png"
344 },
345 pleroma_fox_tan_shy: %{
346 url: "/images/pleroma-fox-tan-shy.png",
347 mime_type: "image/png"
348 }
349 ],
350 default_mascot: :pleroma_fox_tan
351
352 config :pleroma, :manifest,
353 icons: [
354 %{
355 src: "/static/logo.png",
356 type: "image/png"
357 }
358 ],
359 theme_color: "#282c37",
360 background_color: "#191b22"
361
362 config :pleroma, :activitypub,
363 unfollow_blocked: true,
364 outgoing_blocks: true,
365 follow_handshake_timeout: 500,
366 note_replies_output_limit: 5,
367 sign_object_fetches: true,
368 authorized_fetch_mode: false
369
370 config :pleroma, :streamer,
371 workers: 3,
372 overflow_workers: 2
373
374 config :pleroma, :user, deny_follow_blocked: true
375
376 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
377
378 config :pleroma, :mrf_rejectnonpublic,
379 allow_followersonly: false,
380 allow_direct: false
381
382 config :pleroma, :mrf_hellthread,
383 delist_threshold: 10,
384 reject_threshold: 20
385
386 config :pleroma, :mrf_simple,
387 media_removal: [],
388 media_nsfw: [],
389 federated_timeline_removal: [],
390 report_removal: [],
391 reject: [],
392 followers_only: [],
393 accept: [],
394 avatar_removal: [],
395 banner_removal: [],
396 reject_deletes: []
397
398 config :pleroma, :mrf_keyword,
399 reject: [],
400 federated_timeline_removal: [],
401 replace: []
402
403 config :pleroma, :mrf_subchain, match_actor: %{}
404
405 config :pleroma, :mrf_activity_expiration, days: 365
406
407 config :pleroma, :mrf_vocabulary,
408 accept: [],
409 reject: []
410
411 # threshold of 7 days
412 config :pleroma, :mrf_object_age,
413 threshold: 604_800,
414 actions: [:delist, :strip_followers]
415
416 config :pleroma, :rich_media,
417 enabled: true,
418 ignore_hosts: [],
419 ignore_tld: ["local", "localdomain", "lan"],
420 parsers: [
421 Pleroma.Web.RichMedia.Parsers.TwitterCard,
422 Pleroma.Web.RichMedia.Parsers.OEmbed
423 ],
424 failure_backoff: 60_000,
425 ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
426
427 config :pleroma, :media_proxy,
428 enabled: false,
429 invalidation: [
430 enabled: false,
431 provider: Pleroma.Web.MediaProxy.Invalidation.Script
432 ],
433 proxy_opts: [
434 redirect_on_failure: false,
435 max_body_length: 25 * 1_048_576,
436 # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
437 max_read_duration: 30_000,
438 http: [
439 follow_redirect: true,
440 pool: :media
441 ]
442 ],
443 whitelist: []
444
445 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
446 method: :purge,
447 headers: [],
448 options: []
449
450 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
451
452 # Note: media preview proxy depends on media proxy to be enabled
453 config :pleroma, :media_preview_proxy,
454 enabled: false,
455 thumbnail_max_width: 600,
456 thumbnail_max_height: 600,
457 image_quality: 85,
458 min_content_length: 100 * 1024
459
460 config :pleroma, :chat, enabled: true
461
462 config :phoenix, :format_encoders, json: Jason
463
464 config :phoenix, :json_library, Jason
465
466 config :phoenix, :filter_parameters, ["password", "confirm"]
467
468 config :pleroma, :gopher,
469 enabled: false,
470 ip: {0, 0, 0, 0},
471 port: 9999
472
473 config :pleroma, Pleroma.Web.Metadata,
474 providers: [
475 Pleroma.Web.Metadata.Providers.OpenGraph,
476 Pleroma.Web.Metadata.Providers.TwitterCard
477 ],
478 unfurl_nsfw: false
479
480 config :pleroma, Pleroma.Web.Preload,
481 providers: [
482 Pleroma.Web.Preload.Providers.Instance
483 ]
484
485 config :pleroma, :http_security,
486 enabled: true,
487 sts: false,
488 sts_max_age: 31_536_000,
489 ct_max_age: 2_592_000,
490 referrer_policy: "same-origin"
491
492 config :cors_plug,
493 max_age: 86_400,
494 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
495 expose: [
496 "Link",
497 "X-RateLimit-Reset",
498 "X-RateLimit-Limit",
499 "X-RateLimit-Remaining",
500 "X-Request-Id",
501 "Idempotency-Key"
502 ],
503 credentials: true,
504 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
505
506 config :pleroma, Pleroma.User,
507 restricted_nicknames: [
508 ".well-known",
509 "~",
510 "about",
511 "activities",
512 "api",
513 "auth",
514 "check_password",
515 "dev",
516 "friend-requests",
517 "inbox",
518 "internal",
519 "main",
520 "media",
521 "nodeinfo",
522 "notice",
523 "oauth",
524 "objects",
525 "ostatus_subscribe",
526 "pleroma",
527 "proxy",
528 "push",
529 "registration",
530 "relay",
531 "settings",
532 "status",
533 "tag",
534 "user-search",
535 "user_exists",
536 "users",
537 "web",
538 "verify_credentials",
539 "update_credentials",
540 "relationships",
541 "search",
542 "confirmation_resend",
543 "mfa"
544 ],
545 email_blacklist: []
546
547 config :pleroma, Oban,
548 repo: Pleroma.Repo,
549 log: false,
550 queues: [
551 activity_expiration: 10,
552 token_expiration: 5,
553 federator_incoming: 50,
554 federator_outgoing: 50,
555 ingestion_queue: 50,
556 web_push: 50,
557 mailer: 10,
558 transmogrifier: 20,
559 scheduled_activities: 10,
560 background: 5,
561 remote_fetcher: 2,
562 attachments_cleanup: 5,
563 new_users_digest: 1
564 ],
565 plugins: [Oban.Plugins.Pruner],
566 crontab: [
567 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
568 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
569 ]
570
571 config :pleroma, :workers,
572 retries: [
573 federator_incoming: 5,
574 federator_outgoing: 5
575 ]
576
577 config :pleroma, Pleroma.Formatter,
578 class: false,
579 rel: "ugc",
580 new_window: false,
581 truncate: false,
582 strip_prefix: false,
583 extra: true,
584 validate_tld: :no_scheme
585
586 config :pleroma, :ldap,
587 enabled: System.get_env("LDAP_ENABLED") == "true",
588 host: System.get_env("LDAP_HOST") || "localhost",
589 port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
590 ssl: System.get_env("LDAP_SSL") == "true",
591 sslopts: [],
592 tls: System.get_env("LDAP_TLS") == "true",
593 tlsopts: [],
594 base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
595 uid: System.get_env("LDAP_UID") || "cn"
596
597 config :esshd,
598 enabled: false
599
600 oauth_consumer_strategies =
601 System.get_env("OAUTH_CONSUMER_STRATEGIES")
602 |> to_string()
603 |> String.split()
604 |> Enum.map(&hd(String.split(&1, ":")))
605
606 ueberauth_providers =
607 for strategy <- oauth_consumer_strategies do
608 strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
609 strategy_module = String.to_atom(strategy_module_name)
610 {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
611 end
612
613 config :ueberauth,
614 Ueberauth,
615 base_path: "/oauth",
616 providers: ueberauth_providers
617
618 config :pleroma,
619 :auth,
620 enforce_oauth_admin_scope_usage: true,
621 oauth_consumer_strategies: oauth_consumer_strategies
622
623 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
624
625 config :pleroma, Pleroma.Emails.UserEmail,
626 logo: nil,
627 styling: %{
628 link_color: "#d8a070",
629 background_color: "#2C3645",
630 content_background_color: "#1B2635",
631 header_color: "#d8a070",
632 text_color: "#b9b9ba",
633 text_muted_color: "#b9b9ba"
634 }
635
636 config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
637
638 config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
639
640 config :pleroma, Pleroma.ScheduledActivity,
641 daily_user_limit: 25,
642 total_user_limit: 300,
643 enabled: true
644
645 config :pleroma, :email_notifications,
646 digest: %{
647 active: false,
648 interval: 7,
649 inactivity_threshold: 7
650 }
651
652 config :pleroma, :oauth2,
653 token_expires_in: 600,
654 issue_new_refresh_token: true,
655 clean_expired_tokens: false
656
657 config :pleroma, :database, rum_enabled: false
658
659 config :pleroma, :env, Mix.env()
660
661 config :http_signatures,
662 adapter: Pleroma.Signature
663
664 config :pleroma, :rate_limit,
665 authentication: {60_000, 15},
666 timeline: {500, 3},
667 search: [{1000, 10}, {1000, 30}],
668 app_account_creation: {1_800_000, 25},
669 relations_actions: {10_000, 10},
670 relation_id_action: {60_000, 2},
671 statuses_actions: {10_000, 15},
672 status_id_action: {60_000, 3},
673 password_reset: {1_800_000, 5},
674 account_confirmation_resend: {8_640_000, 5},
675 ap_routes: {60_000, 15}
676
677 config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
678
679 config :pleroma, Pleroma.Web.Plugs.RemoteIp,
680 enabled: true,
681 headers: ["x-forwarded-for"],
682 proxies: [],
683 reserved: [
684 "127.0.0.0/8",
685 "::1/128",
686 "fc00::/7",
687 "10.0.0.0/8",
688 "172.16.0.0/12",
689 "192.168.0.0/16"
690 ]
691
692 config :pleroma, :static_fe, enabled: false
693
694 # Example of frontend configuration
695 # This example will make us serve the primary frontend from the
696 # frontends directory within your `:pleroma, :instance, static_dir`.
697 # e.g., instance/static/frontends/pleroma/develop/
698 #
699 # With no frontend configuration, the bundled files from the `static` directory will
700 # be used.
701 #
702 # config :pleroma, :frontends,
703 # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
704 # admin: %{"name" => "admin-fe", "ref" => "stable"},
705 # available: %{...}
706
707 config :pleroma, :frontends,
708 available: %{
709 "kenoma" => %{
710 "name" => "kenoma",
711 "git" => "https://git.pleroma.social/lambadalambda/kenoma",
712 "build_url" =>
713 "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
714 "ref" => "master"
715 },
716 "pleroma-fe" => %{
717 "name" => "pleroma-fe",
718 "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
719 "build_url" =>
720 "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
721 "ref" => "develop"
722 },
723 "fedi-fe" => %{
724 "name" => "fedi-fe",
725 "git" => "https://git.pleroma.social/pleroma/fedi-fe",
726 "build_url" =>
727 "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
728 "ref" => "master"
729 },
730 "admin-fe" => %{
731 "name" => "admin-fe",
732 "git" => "https://git.pleroma.social/pleroma/admin-fe",
733 "build_url" =>
734 "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
735 "ref" => "develop"
736 },
737 "soapbox-fe" => %{
738 "name" => "soapbox-fe",
739 "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
740 "build_url" =>
741 "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
742 "ref" => "v1.0.0",
743 "build_dir" => "static"
744 }
745 }
746
747 config :pleroma, :web_cache_ttl,
748 activity_pub: nil,
749 activity_pub_question: 30_000
750
751 config :pleroma, :modules, runtime_dir: "instance/modules"
752
753 config :pleroma, configurable_from_database: false
754
755 config :pleroma, Pleroma.Repo,
756 parameters: [gin_fuzzy_search_limit: "500"],
757 prepare: :unnamed
758
759 config :pleroma, :connections_pool,
760 reclaim_multiplier: 0.1,
761 connection_acquisition_wait: 250,
762 connection_acquisition_retries: 5,
763 max_connections: 250,
764 max_idle_time: 30_000,
765 retry: 0,
766 connect_timeout: 5_000
767
768 config :pleroma, :pools,
769 federation: [
770 size: 50,
771 max_waiting: 10,
772 recv_timeout: 10_000
773 ],
774 media: [
775 size: 50,
776 max_waiting: 20,
777 recv_timeout: 15_000
778 ],
779 upload: [
780 size: 25,
781 max_waiting: 5,
782 recv_timeout: 15_000
783 ],
784 default: [
785 size: 10,
786 max_waiting: 2,
787 recv_timeout: 5_000
788 ]
789
790 config :pleroma, :hackney_pools,
791 federation: [
792 max_connections: 50,
793 timeout: 150_000
794 ],
795 media: [
796 max_connections: 50,
797 timeout: 150_000
798 ],
799 upload: [
800 max_connections: 25,
801 timeout: 300_000
802 ]
803
804 config :pleroma, :majic_pool, size: 2
805
806 private_instance? = :if_instance_is_private
807
808 config :pleroma, :restrict_unauthenticated,
809 timelines: %{local: private_instance?, federated: private_instance?},
810 profiles: %{local: private_instance?, remote: private_instance?},
811 activities: %{local: private_instance?, remote: private_instance?}
812
813 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
814
815 config :pleroma, :mrf,
816 policies: Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
817 transparency: true,
818 transparency_exclusions: []
819
820 config :tzdata, :http_client, Pleroma.HTTP.Tzdata
821
822 config :ex_aws, http_client: Pleroma.HTTP.ExAws
823
824 config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
825
826 config :pleroma, :instances_favicons, enabled: false
827
828 config :floki, :html_parser, Floki.HTMLParser.FastHtml
829
830 config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
831
832 # Import environment specific config. This must remain at the bottom
833 # of this file so it overrides the configuration defined above.
834 import_config "#{Mix.env()}.exs"