Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

753 lines
19KB

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