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:
32 # izAotX7777777777777777777777777777777777777777Y7n92:
33 # .;CoIIIIIUAA666666699999ZZZZZZZZZZZZZZZZZZZZ6ov.
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).
39 # This file is responsible for configuring your application
40 # and its dependencies with the aid of the Config module.
42 # This configuration file is loaded before any dependency and
43 # is restricted to this project.
46 # General application configuration
47 config :pleroma, ecto_repos: [Pleroma.Repo]
49 config :pleroma, Pleroma.Repo,
50 telemetry_event: [Pleroma.Repo.Instrumenter],
53 config :pleroma, Pleroma.Captcha,
56 method: Pleroma.Captcha.Native
58 config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
60 # Upload configuration
61 config :pleroma, Pleroma.Upload,
62 uploader: Pleroma.Uploaders.Local,
63 filters: [Pleroma.Upload.Filter.Dedupe],
66 filename_display_max_length: 30,
67 default_description: nil,
70 config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
72 config :pleroma, Pleroma.Uploaders.S3,
74 bucket_namespace: nil,
75 truncated_namespace: nil,
76 streaming_enabled: true
79 # host: "s3.wasabisys.com", # required if not Amazon AWS
81 secret_access_key: nil,
82 # region: "us-east-1", # may be required for Amazon AWS
85 config :pleroma, :emoji,
86 shortcode_globs: ["/emoji/custom/**/*.png"],
87 pack_extensions: [".png", ".gif"],
89 Custom: ["/emoji/*.png", "/emoji/**/*.png"]
91 default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json",
92 shared_pack_cache_seconds_per_file: 60
94 config :pleroma, :uri_schemes,
113 # Configures the endpoint
114 config :pleroma, Pleroma.Web.Endpoint,
115 url: [host: "localhost"],
120 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
121 live_view: [signing_salt: "U5ELgdEwTD3n1+D5s0rY0AMg8/y1STxZ3Zvsl3bWh+oBcGrYdil0rXqPMRd3Glcq"],
122 signing_salt: "CqaoopA2",
123 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
124 pubsub_server: Pleroma.PubSub,
125 secure_cookie_flag: true,
126 extra_cookie_attrs: [
130 # Configures Elixir's Logger
131 config :logger, :console,
133 format: "\n$time $metadata[$level] $message\n",
134 metadata: [:request_id]
136 config :logger, :ex_syslogger,
139 format: "$metadata[$level] $message",
140 metadata: [:request_id]
142 config :mime, :types, %{
143 "application/xml" => ["xml"],
144 "application/xrd+xml" => ["xrd+xml"],
145 "application/jrd+json" => ["jrd+json"],
146 "application/activity+json" => ["activity+json"],
147 "application/ld+json" => ["activity+json"]
150 config :tesla, adapter: Tesla.Adapter.Hackney
152 # Configures http settings, upstream proxy etc.
153 config :pleroma, :http,
155 send_user_agent: true,
156 user_agent: :default,
159 config :pleroma, :instance,
161 email: "example@example.com",
162 notify_email: "noreply@example.com",
163 description: "Pleroma: An efficient and flexible fediverse server",
164 short_description: "",
165 background_image: "/images/city.jpg",
166 instance_thumbnail: "/instance/thumbnail.jpeg",
167 favicon: "/favicon.png",
169 description_limit: 5_000,
170 remote_limit: 100_000,
171 upload_limit: 16_000_000,
172 avatar_upload_limit: 2_000_000,
173 background_upload_limit: 4_000_000,
174 banner_upload_limit: 4_000_000,
177 max_option_chars: 200,
179 max_expiration: 365 * 24 * 60 * 60
181 registrations_open: true,
182 invites_enabled: false,
183 account_activation_required: false,
184 account_approval_required: false,
186 federation_incoming_replies_max_depth: 100,
187 federation_reachability_timeout_days: 7,
190 quarantined_instances: [],
191 static_dir: "instance/static/",
192 allowed_post_formats: [
198 autofollowed_nicknames: [],
199 autofollowing_nicknames: [],
200 max_pinned_statuses: 1,
201 attachment_links: false,
202 max_report_comment_size: 1000,
203 report_strip_status: true,
204 safe_dm_mentions: false,
206 remote_post_retention_days: 90,
207 skip_thread_containment: true,
208 limit_to_local_content: :unauthenticated,
209 user_bio_length: 5000,
210 user_name_length: 100,
211 max_account_fields: 10,
212 max_remote_account_fields: 20,
213 account_field_name_length: 512,
214 account_field_value_length: 2048,
215 registration_reason_length: 500,
216 external_user_synchronization: true,
217 extended_nickname_format: true,
218 cleanup_attachments: false,
219 multi_factor_authentication: [
230 show_reactions: true,
231 password_reset_token_validity: 60 * 60 * 24,
232 profile_directory: true,
235 :users_manage_invites,
236 :users_manage_activation_state,
238 :users_manage_credentials,
243 :reports_manage_reports,
244 :moderation_log_read,
245 :announcements_manage_announcements,
249 moderator_privileges: [:messages_delete, :reports_manage_reports],
250 max_endorsed_users: 20,
251 birthday_required: false,
253 max_media_attachments: 1_000
255 config :pleroma, :welcome,
258 sender_nickname: nil,
263 sender_nickname: nil,
269 subject: "Welcome to <%= instance_name %>",
270 html: "Welcome to <%= instance_name %>",
271 text: "Welcome to <%= instance_name %>"
274 config :pleroma, :feed,
280 config :pleroma, :markup,
281 # XXX - unfortunately, inline images must be enabled by default right now, because
282 # of custom emoji. Issue #275 discusses defanging that somehow.
283 allow_inline_images: true,
284 allow_headings: false,
288 Pleroma.HTML.Scrubber.Default,
289 Pleroma.HTML.Transform.MediaProxy
292 config :pleroma, :frontend_configurations,
294 alwaysShowSubjectInput: true,
295 background: "/images/city.jpg",
296 collapseMessageWithSubject: false,
299 hideFilteredStatuses: false,
300 hideMutedPosts: false,
301 hidePostStats: false,
303 hideUserStats: false,
304 loginMethod: "password",
305 logo: "/static/logo.svg",
308 minimalScopesMode: false,
309 noAttachmentLinks: false,
311 postContentType: "text/plain",
312 redirectRootLogin: "/main/friends",
313 redirectRootNoLogin: "/main/all",
316 showFeaturesPanel: true,
317 showInstanceSpecificPanel: false,
318 subjectLineBehavior: "email",
319 theme: "pleroma-dark",
320 webPushNotifications: false
323 config :pleroma, :assets,
326 url: "/images/pleroma-fox-tan-smol.png",
327 mime_type: "image/png"
329 pleroma_fox_tan_shy: %{
330 url: "/images/pleroma-fox-tan-shy.png",
331 mime_type: "image/png"
334 default_mascot: :pleroma_fox_tan
336 config :pleroma, :manifest,
339 src: "/static/logo.svg",
342 type: "image/svg+xml"
345 theme_color: "#282c37",
346 background_color: "#191b22"
348 config :pleroma, :activitypub,
349 unfollow_blocked: true,
350 outgoing_blocks: true,
351 blockers_visible: true,
352 follow_handshake_timeout: 500,
353 note_replies_output_limit: 5,
354 sign_object_fetches: true,
355 authorized_fetch_mode: false,
356 spoof_object_fetch_signatures: false,
357 spoofed_key: "-----BEGIN RSA PRIVATE KEY-----
358 overwrite this with your internal.fetch key rippen from donor instance DB
359 yes, just like that, newlines are important
360 -----END RSA PRIVATE KEY-----",
361 spoofed_instance: "https://funnydomain.example"
363 config :pleroma, :streamer,
367 config :pleroma, :user, deny_follow_blocked: true
369 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
371 config :pleroma, :mrf_rejectnonpublic,
372 allow_followersonly: false,
375 config :pleroma, :mrf_hellthread,
376 delist_threshold: 10,
379 config :pleroma, :mrf_simple,
382 federated_timeline_removal: [],
391 config :pleroma, :mrf_keyword,
393 federated_timeline_removal: [],
396 config :pleroma, :mrf_emoji,
398 remove_shortcode: [],
399 federated_timeline_removal_url: [],
400 federated_timeline_removal_shortcode: []
402 config :pleroma, :mrf_hashtag,
405 federated_timeline_removal: []
407 config :pleroma, :mrf_subchain, match_actor: %{}
409 config :pleroma, :mrf_activity_expiration, days: 365
411 config :pleroma, :mrf_vocabulary,
415 # threshold of 7 days
416 config :pleroma, :mrf_object_age,
418 actions: [:delist, :strip_followers]
420 config :pleroma, :mrf_follow_bot, follower_nickname: nil
422 config :pleroma, :mrf_inline_quote, template: "<bdi>RT:</bdi> {url}"
424 config :pleroma, :mrf_force_mention,
425 mention_parent: true,
428 config :pleroma, :rich_media,
431 ignore_tld: ["local", "localdomain", "lan"],
433 Pleroma.Web.RichMedia.Parsers.TwitterCard,
434 Pleroma.Web.RichMedia.Parsers.OEmbed
436 failure_backoff: 60_000,
438 Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl,
439 Pleroma.Web.RichMedia.Parser.TTL.Opengraph
443 config :pleroma, :media_proxy,
447 provider: Pleroma.Web.MediaProxy.Invalidation.Script
450 redirect_on_failure: false,
451 max_body_length: 25 * 1_048_576,
452 # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
453 max_read_duration: 30_000,
455 follow_redirect: true,
461 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
466 config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script,
470 # Note: media preview proxy depends on media proxy to be enabled
471 config :pleroma, :media_preview_proxy,
473 thumbnail_max_width: 600,
474 thumbnail_max_height: 600,
476 min_content_length: 100 * 1024
478 config :pleroma, :shout,
482 config :phoenix, :format_encoders, json: Jason, "activity+json": Jason
484 config :phoenix, :json_library, Jason
486 config :phoenix, :filter_parameters, ["password", "confirm"]
488 config :pleroma, :gopher,
493 config :pleroma, Pleroma.Web.Metadata,
495 Pleroma.Web.Metadata.Providers.OpenGraph,
496 Pleroma.Web.Metadata.Providers.TwitterCard
500 config :pleroma, Pleroma.Web.Preload,
502 Pleroma.Web.Preload.Providers.Instance
505 config :pleroma, :http_security,
508 sts_max_age: 31_536_000,
509 ct_max_age: 2_592_000,
510 referrer_policy: "same-origin"
514 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
519 "X-RateLimit-Remaining",
524 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
526 config :pleroma, Pleroma.User,
527 restricted_nicknames: [
558 "verify_credentials",
559 "update_credentials",
562 "confirmation_resend",
567 config :pleroma, Oban,
571 activity_expiration: 10,
573 filter_expiration: 1,
575 federator_incoming: 5,
576 federator_outgoing: 5,
581 scheduled_activities: 10,
582 poll_notifications: 10,
585 attachments_cleanup: 1,
589 rich_media_expiration: 2
591 plugins: [Oban.Plugins.Pruner],
593 {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
594 {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
597 config :pleroma, :workers,
599 federator_incoming: 5,
600 federator_outgoing: 5,
604 config :pleroma, Pleroma.Formatter,
611 validate_tld: :no_scheme
613 config :pleroma, :ldap,
614 enabled: System.get_env("LDAP_ENABLED") == "true",
615 host: System.get_env("LDAP_HOST") || "localhost",
616 port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
617 ssl: System.get_env("LDAP_SSL") == "true",
619 tls: System.get_env("LDAP_TLS") == "true",
621 base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
622 uid: System.get_env("LDAP_UID") || "cn"
624 oauth_consumer_strategies =
625 System.get_env("OAUTH_CONSUMER_STRATEGIES")
628 |> Enum.map(&hd(String.split(&1, ":")))
630 ueberauth_providers =
631 for strategy <- oauth_consumer_strategies do
632 strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
633 strategy_module = String.to_atom(strategy_module_name)
634 {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
640 providers: ueberauth_providers
642 config :pleroma, :auth, oauth_consumer_strategies: oauth_consumer_strategies
644 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
646 config :pleroma, Pleroma.Emails.UserEmail,
649 link_color: "#d8a070",
650 background_color: "#2C3645",
651 content_background_color: "#1B2635",
652 header_color: "#d8a070",
653 text_color: "#b9b9ba",
654 text_muted_color: "#b9b9ba"
657 config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
659 config :pleroma, Pleroma.PromEx,
661 manual_metrics_start_delay: :no_delay,
662 drop_metrics_groups: [],
664 host: System.get_env("GRAFANA_HOST", "http://localhost:3000"),
665 auth_token: System.get_env("GRAFANA_TOKEN"),
666 upload_dashboards_on_start: false,
668 annotate_app_lifecycle: true
678 datasource: "Prometheus"
680 config :pleroma, Pleroma.ScheduledActivity,
681 daily_user_limit: 25,
682 total_user_limit: 300,
685 config :pleroma, :email_notifications,
689 inactivity_threshold: 7
692 config :pleroma, :oauth2,
693 token_expires_in: 3600 * 24 * 365 * 100,
694 issue_new_refresh_token: true,
695 clean_expired_tokens: false
697 config :pleroma, :database, rum_enabled: false
699 config :pleroma, :features, improved_hashtag_timeline: :auto
701 config :pleroma, :populate_hashtags_table, fault_rate_allowance: 0.01
703 config :pleroma, :delete_context_objects, fault_rate_allowance: 0.01
705 config :pleroma, :env, Mix.env()
707 config :http_signatures,
708 adapter: Pleroma.Signature
710 config :pleroma, :rate_limit,
711 authentication: {60_000, 15},
713 search: [{1000, 10}, {1000, 30}],
714 app_account_creation: {1_800_000, 25},
715 relations_actions: {10_000, 10},
716 relation_id_action: {60_000, 2},
717 statuses_actions: {10_000, 15},
718 status_id_action: {60_000, 3},
719 password_reset: {1_800_000, 5},
720 account_confirmation_resend: {8_640_000, 5},
721 ap_routes: {60_000, 15}
723 config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
725 config :pleroma, Pleroma.Web.Plugs.RemoteIp,
727 headers: ["x-forwarded-for"],
738 config :pleroma, :static_fe, enabled: false
740 # Example of frontend configuration
741 # This example will make us serve the primary frontend from the
742 # frontends directory within your `:pleroma, :instance, static_dir`.
743 # e.g., instance/static/frontends/pleroma/develop/
745 # With no frontend configuration, the bundled files from the `static` directory will
748 # config :pleroma, :frontends,
749 # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
750 # admin: %{"name" => "admin-fe", "ref" => "stable"},
753 config :pleroma, :frontends,
757 "git" => "https://git.pleroma.social/lambadalambda/kenoma",
759 "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
763 "name" => "pleroma-fe",
764 "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
766 "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
771 "git" => "https://git.pleroma.social/pleroma/fedi-fe",
773 "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build_release",
775 "custom-http-headers" => [
776 {"service-worker-allowed", "/"}
780 "name" => "admin-fe",
781 "git" => "https://git.pleroma.social/pleroma/admin-fe",
783 "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
788 "git" => "https://gitlab.com/soapbox-pub/soapbox",
790 "https://gitlab.com/soapbox-pub/soapbox/-/jobs/artifacts/${ref}/download?job=build-production",
791 "ref" => "v3.0.0-beta.1",
792 "build_dir" => "static"
795 "name" => "glitch-lily",
796 "git" => "https://lily-is.land/infra/glitch-lily",
798 "https://lily-is.land/infra/glitch-lily/-/jobs/artifacts/${ref}/download?job=build",
800 "build_dir" => "public"
804 config :pleroma, :web_cache_ttl,
806 activity_pub_question: 30_000
808 config :pleroma, :modules, runtime_dir: "instance/modules"
810 config :pleroma, configurable_from_database: false
812 config :pleroma, Pleroma.Repo,
813 parameters: [gin_fuzzy_search_limit: "500", jit: "off"],
816 config :pleroma, :connections_pool,
817 reclaim_multiplier: 0.1,
818 connection_acquisition_wait: 250,
819 connection_acquisition_retries: 5,
820 max_connections: 250,
821 max_idle_time: 30_000,
823 connect_timeout: 5_000
825 config :pleroma, :pools,
847 config :pleroma, :hackney_pools,
861 config :pleroma, :majic_pool, size: 2
863 private_instance? = :if_instance_is_private
865 config :pleroma, :restrict_unauthenticated,
866 timelines: %{local: private_instance?, federated: private_instance?},
867 profiles: %{local: private_instance?, remote: private_instance?},
868 activities: %{local: private_instance?, remote: private_instance?}
870 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
872 config :pleroma, :mrf,
874 Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
875 Pleroma.Web.ActivityPub.MRF.TagPolicy,
876 Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy
879 transparency_exclusions: []
881 config :tzdata, :http_client, Pleroma.HTTP.Tzdata
883 config :ex_aws, http_client: Pleroma.HTTP.ExAws
885 config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
887 config :pleroma, :instances_favicons, enabled: false
889 config :floki, :html_parser, Floki.HTMLParser.FastHtml
891 config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
893 config :pleroma, Pleroma.User.Backup,
894 purge_after_days: 30,
897 process_wait_time: 30_000,
898 process_chunk_size: 100
900 config :pleroma, ConcurrentLimiter, [
901 {Pleroma.Web.RichMedia.Helpers, [max_running: 5, max_waiting: 5]},
902 {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]},
903 {Pleroma.Search, [max_running: 30, max_waiting: 50]}
906 config :pleroma, Pleroma.Web.WebFinger, domain: nil, update_nickname_on_user_fetch: true
908 config :pleroma, Pleroma.Search, module: Pleroma.Search.DatabaseSearch
910 config :pleroma, Pleroma.Search.Meilisearch,
911 url: "http://127.0.0.1:7700/",
913 initial_indexing_chunk_size: 100_000
915 config :pleroma, Pleroma.Application,
916 background_migrators: true,
917 internal_fetch: true,
918 load_custom_modules: true,
920 streamer_registry: true
922 config :pleroma, Pleroma.Uploaders.Uploader, timeout: 30_000
924 # Import environment specific config. This must remain at the bottom
925 # of this file so it overrides the configuration defined above.
926 import_config "#{Mix.env()}.exs"