logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

config.exs (24463B)


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