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