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