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