Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into websearch
[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/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
133 {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
134 {Phoenix.Transports.WebSocket,
135 {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
136 {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
137 ]}
138 ]
139 ],
140 protocol: "https",
141 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
142 signing_salt: "CqaoopA2",
143 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
144 pubsub_server: Pleroma.PubSub,
145 secure_cookie_flag: true,
146 extra_cookie_attrs: [
147 "SameSite=Lax"
148 ]
149
150 config :pleroma, :fed_sockets,
151 enabled: false,
152 connection_duration: :timer.hours(8),
153 rejection_duration: :timer.minutes(15),
154 fed_socket_fetches: [
155 default: 12_000,
156 interval: 3_000,
157 lazy: false
158 ]
159
160 # Configures Elixir's Logger
161 config :logger, :console,
162 level: :debug,
163 format: "\n$time $metadata[$level] $message\n",
164 metadata: [:request_id]
165
166 config :logger, :ex_syslogger,
167 level: :debug,
168 ident: "pleroma",
169 format: "$metadata[$level] $message",
170 metadata: [:request_id]
171
172 config :quack,
173 level: :warn,
174 meta: [:all],
175 webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
176
177 config :mime, :types, %{
178 "application/xml" => ["xml"],
179 "application/xrd+xml" => ["xrd+xml"],
180 "application/jrd+json" => ["jrd+json"],
181 "application/activity+json" => ["activity+json"],
182 "application/ld+json" => ["activity+json"]
183 }
184
185 config :tesla, adapter: Tesla.Adapter.Hackney
186
187 # Configures http settings, upstream proxy etc.
188 config :pleroma, :http,
189 proxy_url: nil,
190 send_user_agent: true,
191 user_agent: :default,
192 adapter: []
193
194 config :pleroma, :instance,
195 name: "Pleroma",
196 email: "example@example.com",
197 notify_email: "noreply@example.com",
198 description: "Pleroma: An efficient and flexible fediverse server",
199 background_image: "/images/city.jpg",
200 instance_thumbnail: "/instance/thumbnail.jpeg",
201 limit: 5_000,
202 description_limit: 5_000,
203 chat_limit: 5_000,
204 remote_limit: 100_000,
205 upload_limit: 16_000_000,
206 avatar_upload_limit: 2_000_000,
207 background_upload_limit: 4_000_000,
208 banner_upload_limit: 4_000_000,
209 poll_limits: %{
210 max_options: 20,
211 max_option_chars: 200,
212 min_expiration: 0,
213 max_expiration: 365 * 24 * 60 * 60
214 },
215 registrations_open: true,
216 invites_enabled: false,
217 account_activation_required: false,
218 account_approval_required: false,
219 federating: true,
220 federation_incoming_replies_max_depth: 100,
221 federation_reachability_timeout_days: 7,
222 federation_publisher_modules: [
223 Pleroma.Web.ActivityPub.Publisher
224 ],
225 allow_relay: true,
226 public: true,
227 quarantined_instances: [],
228 static_dir: "instance/static/",
229 allowed_post_formats: [
230 "text/plain",
231 "text/html",
232 "text/markdown",
233 "text/bbcode"
234 ],
235 autofollowed_nicknames: [],
236 autofollowing_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 password_reset_token_validity: 60 * 60 * 24,
268 search_function: :websearch
269
270 config :pleroma, :welcome,
271 direct_message: [
272 enabled: false,
273 sender_nickname: nil,
274 message: nil
275 ],
276 chat_message: [
277 enabled: false,
278 sender_nickname: nil,
279 message: nil
280 ],
281 email: [
282 enabled: false,
283 sender: nil,
284 subject: "Welcome to <%= instance_name %>",
285 html: "Welcome to <%= instance_name %>",
286 text: "Welcome to <%= instance_name %>"
287 ]
288
289 config :pleroma, :feed,
290 post_title: %{
291 max_length: 100,
292 omission: "..."
293 }
294
295 config :pleroma, :markup,
296 # XXX - unfortunately, inline images must be enabled by default right now, because
297 # of custom emoji. Issue #275 discusses defanging that somehow.
298 allow_inline_images: true,
299 allow_headings: false,
300 allow_tables: false,
301 allow_fonts: false,
302 scrub_policy: [
303 Pleroma.HTML.Scrubber.Default,
304 Pleroma.HTML.Transform.MediaProxy
305 ]
306
307 config :pleroma, :frontend_configurations,
308 pleroma_fe: %{
309 alwaysShowSubjectInput: true,
310 background: "/images/city.jpg",
311 collapseMessageWithSubject: false,
312 disableChat: false,
313 greentext: false,
314 hideFilteredStatuses: false,
315 hideMutedPosts: false,
316 hidePostStats: false,
317 hideSitename: false,
318 hideUserStats: false,
319 loginMethod: "password",
320 logo: "/static/logo.png",
321 logoMargin: ".1em",
322 logoMask: true,
323 minimalScopesMode: false,
324 noAttachmentLinks: false,
325 nsfwCensorImage: "",
326 postContentType: "text/plain",
327 redirectRootLogin: "/main/friends",
328 redirectRootNoLogin: "/main/all",
329 scopeCopy: true,
330 sidebarRight: false,
331 showFeaturesPanel: true,
332 showInstanceSpecificPanel: false,
333 subjectLineBehavior: "email",
334 theme: "pleroma-dark",
335 webPushNotifications: false
336 },
337 masto_fe: %{
338 showInstanceSpecificPanel: true
339 }
340
341 config :pleroma, :assets,
342 mascots: [
343 pleroma_fox_tan: %{
344 url: "/images/pleroma-fox-tan-smol.png",
345 mime_type: "image/png"
346 },
347 pleroma_fox_tan_shy: %{
348 url: "/images/pleroma-fox-tan-shy.png",
349 mime_type: "image/png"
350 }
351 ],
352 default_mascot: :pleroma_fox_tan
353
354 config :pleroma, :manifest,
355 icons: [
356 %{
357 src: "/static/logo.png",
358 type: "image/png"
359 }
360 ],
361 theme_color: "#282c37",
362 background_color: "#191b22"
363
364 config :pleroma, :activitypub,
365 unfollow_blocked: true,
366 outgoing_blocks: true,
367 follow_handshake_timeout: 500,
368 note_replies_output_limit: 5,
369 sign_object_fetches: true,
370 authorized_fetch_mode: false
371
372 config :pleroma, :streamer,
373 workers: 3,
374 overflow_workers: 2
375
376 config :pleroma, :user, deny_follow_blocked: true
377
378 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
379
380 config :pleroma, :mrf_rejectnonpublic,
381 allow_followersonly: false,
382 allow_direct: false
383
384 config :pleroma, :mrf_hellthread,
385 delist_threshold: 10,
386 reject_threshold: 20
387
388 config :pleroma, :mrf_simple,
389 media_removal: [],
390 media_nsfw: [],
391 federated_timeline_removal: [],
392 report_removal: [],
393 reject: [],
394 followers_only: [],
395 accept: [],
396 avatar_removal: [],
397 banner_removal: [],
398 reject_deletes: []
399
400 config :pleroma, :mrf_keyword,
401 reject: [],
402 federated_timeline_removal: [],
403 replace: []
404
405 config :pleroma, :mrf_subchain, match_actor: %{}
406
407 config :pleroma, :mrf_activity_expiration, days: 365
408
409 config :pleroma, :mrf_vocabulary,
410 accept: [],
411 reject: []
412
413 # threshold of 7 days
414 config :pleroma, :mrf_object_age,
415 threshold: 604_800,
416 actions: [:delist, :strip_followers]
417
418 config :pleroma, :rich_media,
419 enabled: true,
420 ignore_hosts: [],
421 ignore_tld: ["local", "localdomain", "lan"],
422 parsers: [
423 Pleroma.Web.RichMedia.Parsers.TwitterCard,
424 Pleroma.Web.RichMedia.Parsers.OEmbed
425 ],
426 failure_backoff: 60_000,
427 ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
428
429 config :pleroma, :media_proxy,
430 enabled: false,
431 invalidation: [
432 enabled: false,
433 provider: Pleroma.Web.MediaProxy.Invalidation.Script
434 ],
435 proxy_opts: [
436 redirect_on_failure: false,
437 max_body_length: 25 * 1_048_576,
438 # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
439 max_read_duration: 30_000,
440 http: [
441 follow_redirect: true,
442 pool: :media
443 ]
444 ],
445 whitelist: []
446
447 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
448 method: :purge,
449 headers: [],
450 options: []
451
452 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
453
454 # Note: media preview proxy depends on media proxy to be enabled
455 config :pleroma, :media_preview_proxy,
456 enabled: false,
457 thumbnail_max_width: 600,
458 thumbnail_max_height: 600,
459 image_quality: 85,
460 min_content_length: 100 * 1024
461
462 config :pleroma, :chat, enabled: true
463
464 config :phoenix, :format_encoders, json: Jason
465
466 config :phoenix, :json_library, Jason
467
468 config :phoenix, :filter_parameters, ["password", "confirm"]
469
470 config :pleroma, :gopher,
471 enabled: false,
472 ip: {0, 0, 0, 0},
473 port: 9999
474
475 config :pleroma, Pleroma.Web.Metadata,
476 providers: [
477 Pleroma.Web.Metadata.Providers.OpenGraph,
478 Pleroma.Web.Metadata.Providers.TwitterCard
479 ],
480 unfurl_nsfw: false
481
482 config :pleroma, Pleroma.Web.Preload,
483 providers: [
484 Pleroma.Web.Preload.Providers.Instance
485 ]
486
487 config :pleroma, :http_security,
488 enabled: true,
489 sts: false,
490 sts_max_age: 31_536_000,
491 ct_max_age: 2_592_000,
492 referrer_policy: "same-origin"
493
494 config :cors_plug,
495 max_age: 86_400,
496 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
497 expose: [
498 "Link",
499 "X-RateLimit-Reset",
500 "X-RateLimit-Limit",
501 "X-RateLimit-Remaining",
502 "X-Request-Id",
503 "Idempotency-Key"
504 ],
505 credentials: true,
506 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
507
508 config :pleroma, Pleroma.User,
509 restricted_nicknames: [
510 ".well-known",
511 "~",
512 "about",
513 "activities",
514 "api",
515 "auth",
516 "check_password",
517 "dev",
518 "friend-requests",
519 "inbox",
520 "internal",
521 "main",
522 "media",
523 "nodeinfo",
524 "notice",
525 "oauth",
526 "objects",
527 "ostatus_subscribe",
528 "pleroma",
529 "proxy",
530 "push",
531 "registration",
532 "relay",
533 "settings",
534 "status",
535 "tag",
536 "user-search",
537 "user_exists",
538 "users",
539 "web",
540 "verify_credentials",
541 "update_credentials",
542 "relationships",
543 "search",
544 "confirmation_resend",
545 "mfa"
546 ],
547 email_blacklist: []
548
549 config :pleroma, Oban,
550 repo: Pleroma.Repo,
551 log: false,
552 queues: [
553 activity_expiration: 10,
554 token_expiration: 5,
555 backup: 1,
556 federator_incoming: 50,
557 federator_outgoing: 50,
558 ingestion_queue: 50,
559 web_push: 50,
560 mailer: 10,
561 transmogrifier: 20,
562 scheduled_activities: 10,
563 background: 5,
564 remote_fetcher: 2,
565 attachments_cleanup: 5,
566 new_users_digest: 1,
567 mute_expire: 5
568 ],
569 plugins: [Oban.Plugins.Pruner],
570 crontab: [
571 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
572 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
573 ]
574
575 config :pleroma, :workers,
576 retries: [
577 federator_incoming: 5,
578 federator_outgoing: 5
579 ]
580
581 config :pleroma, Pleroma.Formatter,
582 class: false,
583 rel: "ugc",
584 new_window: false,
585 truncate: false,
586 strip_prefix: false,
587 extra: true,
588 validate_tld: :no_scheme
589
590 config :pleroma, :ldap,
591 enabled: System.get_env("LDAP_ENABLED") == "true",
592 host: System.get_env("LDAP_HOST") || "localhost",
593 port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
594 ssl: System.get_env("LDAP_SSL") == "true",
595 sslopts: [],
596 tls: System.get_env("LDAP_TLS") == "true",
597 tlsopts: [],
598 base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
599 uid: System.get_env("LDAP_UID") || "cn"
600
601 config :esshd,
602 enabled: false
603
604 oauth_consumer_strategies =
605 System.get_env("OAUTH_CONSUMER_STRATEGIES")
606 |> to_string()
607 |> String.split()
608 |> Enum.map(&hd(String.split(&1, ":")))
609
610 ueberauth_providers =
611 for strategy <- oauth_consumer_strategies do
612 strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
613 strategy_module = String.to_atom(strategy_module_name)
614 {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
615 end
616
617 config :ueberauth,
618 Ueberauth,
619 base_path: "/oauth",
620 providers: ueberauth_providers
621
622 config :pleroma,
623 :auth,
624 enforce_oauth_admin_scope_usage: true,
625 oauth_consumer_strategies: oauth_consumer_strategies
626
627 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
628
629 config :pleroma, Pleroma.Emails.UserEmail,
630 logo: nil,
631 styling: %{
632 link_color: "#d8a070",
633 background_color: "#2C3645",
634 content_background_color: "#1B2635",
635 header_color: "#d8a070",
636 text_color: "#b9b9ba",
637 text_muted_color: "#b9b9ba"
638 }
639
640 config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
641
642 config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
643 enabled: false,
644 auth: false,
645 ip_whitelist: [],
646 path: "/api/pleroma/app_metrics",
647 format: :text
648
649 config :pleroma, Pleroma.ScheduledActivity,
650 daily_user_limit: 25,
651 total_user_limit: 300,
652 enabled: true
653
654 config :pleroma, :email_notifications,
655 digest: %{
656 active: false,
657 interval: 7,
658 inactivity_threshold: 7
659 }
660
661 config :pleroma, :oauth2,
662 token_expires_in: 600,
663 issue_new_refresh_token: true,
664 clean_expired_tokens: false
665
666 config :pleroma, :database, rum_enabled: false
667
668 config :pleroma, :env, Mix.env()
669
670 config :http_signatures,
671 adapter: Pleroma.Signature
672
673 config :pleroma, :rate_limit,
674 authentication: {60_000, 15},
675 timeline: {500, 3},
676 search: [{1000, 10}, {1000, 30}],
677 app_account_creation: {1_800_000, 25},
678 relations_actions: {10_000, 10},
679 relation_id_action: {60_000, 2},
680 statuses_actions: {10_000, 15},
681 status_id_action: {60_000, 3},
682 password_reset: {1_800_000, 5},
683 account_confirmation_resend: {8_640_000, 5},
684 ap_routes: {60_000, 15}
685
686 config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
687
688 config :pleroma, Pleroma.Web.Plugs.RemoteIp,
689 enabled: true,
690 headers: ["x-forwarded-for"],
691 proxies: [],
692 reserved: [
693 "127.0.0.0/8",
694 "::1/128",
695 "fc00::/7",
696 "10.0.0.0/8",
697 "172.16.0.0/12",
698 "192.168.0.0/16"
699 ]
700
701 config :pleroma, :static_fe, enabled: false
702
703 # Example of frontend configuration
704 # This example will make us serve the primary frontend from the
705 # frontends directory within your `:pleroma, :instance, static_dir`.
706 # e.g., instance/static/frontends/pleroma/develop/
707 #
708 # With no frontend configuration, the bundled files from the `static` directory will
709 # be used.
710 #
711 # config :pleroma, :frontends,
712 # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
713 # admin: %{"name" => "admin-fe", "ref" => "stable"},
714 # available: %{...}
715
716 config :pleroma, :frontends,
717 available: %{
718 "kenoma" => %{
719 "name" => "kenoma",
720 "git" => "https://git.pleroma.social/lambadalambda/kenoma",
721 "build_url" =>
722 "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
723 "ref" => "master"
724 },
725 "pleroma-fe" => %{
726 "name" => "pleroma-fe",
727 "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
728 "build_url" =>
729 "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
730 "ref" => "develop"
731 },
732 "fedi-fe" => %{
733 "name" => "fedi-fe",
734 "git" => "https://git.pleroma.social/pleroma/fedi-fe",
735 "build_url" =>
736 "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
737 "ref" => "master"
738 },
739 "admin-fe" => %{
740 "name" => "admin-fe",
741 "git" => "https://git.pleroma.social/pleroma/admin-fe",
742 "build_url" =>
743 "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
744 "ref" => "develop"
745 },
746 "soapbox-fe" => %{
747 "name" => "soapbox-fe",
748 "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
749 "build_url" =>
750 "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
751 "ref" => "v1.0.0",
752 "build_dir" => "static"
753 }
754 }
755
756 config :pleroma, :web_cache_ttl,
757 activity_pub: nil,
758 activity_pub_question: 30_000
759
760 config :pleroma, :modules, runtime_dir: "instance/modules"
761
762 config :pleroma, configurable_from_database: false
763
764 config :pleroma, Pleroma.Repo,
765 parameters: [gin_fuzzy_search_limit: "500"],
766 prepare: :unnamed
767
768 config :pleroma, :connections_pool,
769 reclaim_multiplier: 0.1,
770 connection_acquisition_wait: 250,
771 connection_acquisition_retries: 5,
772 max_connections: 250,
773 max_idle_time: 30_000,
774 retry: 0,
775 connect_timeout: 5_000
776
777 config :pleroma, :pools,
778 federation: [
779 size: 50,
780 max_waiting: 10,
781 recv_timeout: 10_000
782 ],
783 media: [
784 size: 50,
785 max_waiting: 20,
786 recv_timeout: 15_000
787 ],
788 upload: [
789 size: 25,
790 max_waiting: 5,
791 recv_timeout: 15_000
792 ],
793 default: [
794 size: 10,
795 max_waiting: 2,
796 recv_timeout: 5_000
797 ]
798
799 config :pleroma, :hackney_pools,
800 federation: [
801 max_connections: 50,
802 timeout: 150_000
803 ],
804 media: [
805 max_connections: 50,
806 timeout: 150_000
807 ],
808 upload: [
809 max_connections: 25,
810 timeout: 300_000
811 ]
812
813 config :pleroma, :majic_pool, size: 2
814
815 private_instance? = :if_instance_is_private
816
817 config :pleroma, :restrict_unauthenticated,
818 timelines: %{local: private_instance?, federated: private_instance?},
819 profiles: %{local: private_instance?, remote: private_instance?},
820 activities: %{local: private_instance?, remote: private_instance?}
821
822 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
823
824 config :pleroma, :mrf,
825 policies: [Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, Pleroma.Web.ActivityPub.MRF.TagPolicy],
826 transparency: true,
827 transparency_exclusions: []
828
829 config :tzdata, :http_client, Pleroma.HTTP.Tzdata
830
831 config :ex_aws, http_client: Pleroma.HTTP.ExAws
832
833 config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
834
835 config :pleroma, :instances_favicons, enabled: false
836
837 config :floki, :html_parser, Floki.HTMLParser.FastHtml
838
839 config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
840
841 config :pleroma, Pleroma.User.Backup,
842 purge_after_days: 30,
843 limit_days: 7,
844 dir: nil
845
846 # Import environment specific config. This must remain at the bottom
847 # of this file so it overrides the configuration defined above.
848 import_config "#{Mix.env()}.exs"