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.

837 lines
22KB

  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. 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. proxy_opts: [
  62. redirect_on_failure: false,
  63. max_body_length: 25 * 1_048_576,
  64. http: [
  65. follow_redirect: true,
  66. pool: :upload
  67. ]
  68. ],
  69. filename_display_max_length: 30,
  70. default_description: nil
  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. url: [host: "localhost"],
  115. http: [
  116. ip: {127, 0, 0, 1},
  117. dispatch: [
  118. {:_,
  119. [
  120. {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
  121. {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
  122. {Phoenix.Transports.WebSocket,
  123. {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
  124. {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
  125. ]}
  126. ]
  127. ],
  128. protocol: "https",
  129. secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  130. signing_salt: "CqaoopA2",
  131. render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  132. pubsub_server: Pleroma.PubSub,
  133. secure_cookie_flag: true,
  134. extra_cookie_attrs: [
  135. "SameSite=Lax"
  136. ]
  137. # Configures Elixir's Logger
  138. config :logger, :console,
  139. level: :debug,
  140. format: "\n$time $metadata[$level] $message\n",
  141. metadata: [:request_id]
  142. config :logger, :ex_syslogger,
  143. level: :debug,
  144. ident: "pleroma",
  145. format: "$metadata[$level] $message",
  146. metadata: [:request_id]
  147. config :quack,
  148. level: :warn,
  149. meta: [:all],
  150. webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
  151. config :mime, :types, %{
  152. "application/xml" => ["xml"],
  153. "application/xrd+xml" => ["xrd+xml"],
  154. "application/jrd+json" => ["jrd+json"],
  155. "application/activity+json" => ["activity+json"],
  156. "application/ld+json" => ["activity+json"]
  157. }
  158. config :tesla, adapter: Tesla.Adapter.Hackney
  159. # Configures http settings, upstream proxy etc.
  160. config :pleroma, :http,
  161. proxy_url: nil,
  162. send_user_agent: true,
  163. user_agent: :default,
  164. adapter: []
  165. config :pleroma, :instance,
  166. name: "Pleroma",
  167. email: "example@example.com",
  168. notify_email: "noreply@example.com",
  169. description: "Pleroma: An efficient and flexible fediverse server",
  170. background_image: "/images/city.jpg",
  171. instance_thumbnail: "/instance/thumbnail.jpeg",
  172. limit: 5_000,
  173. description_limit: 5_000,
  174. chat_limit: 5_000,
  175. remote_limit: 100_000,
  176. upload_limit: 16_000_000,
  177. avatar_upload_limit: 2_000_000,
  178. background_upload_limit: 4_000_000,
  179. banner_upload_limit: 4_000_000,
  180. poll_limits: %{
  181. max_options: 20,
  182. max_option_chars: 200,
  183. min_expiration: 0,
  184. max_expiration: 365 * 24 * 60 * 60
  185. },
  186. registrations_open: true,
  187. invites_enabled: false,
  188. account_activation_required: false,
  189. account_approval_required: false,
  190. federating: true,
  191. federation_incoming_replies_max_depth: 100,
  192. federation_reachability_timeout_days: 7,
  193. federation_publisher_modules: [
  194. Pleroma.Web.ActivityPub.Publisher
  195. ],
  196. allow_relay: true,
  197. public: true,
  198. quarantined_instances: [],
  199. static_dir: "instance/static/",
  200. allowed_post_formats: [
  201. "text/plain",
  202. "text/html",
  203. "text/markdown",
  204. "text/bbcode"
  205. ],
  206. autofollowed_nicknames: [],
  207. autofollowing_nicknames: [],
  208. max_pinned_statuses: 1,
  209. attachment_links: false,
  210. max_report_comment_size: 1000,
  211. safe_dm_mentions: false,
  212. healthcheck: false,
  213. remote_post_retention_days: 90,
  214. skip_thread_containment: true,
  215. limit_to_local_content: :unauthenticated,
  216. user_bio_length: 5000,
  217. user_name_length: 100,
  218. max_account_fields: 10,
  219. max_remote_account_fields: 20,
  220. account_field_name_length: 512,
  221. account_field_value_length: 2048,
  222. registration_reason_length: 500,
  223. external_user_synchronization: true,
  224. extended_nickname_format: true,
  225. cleanup_attachments: false,
  226. multi_factor_authentication: [
  227. totp: [
  228. # digits 6 or 8
  229. digits: 6,
  230. period: 30
  231. ],
  232. backup_codes: [
  233. number: 5,
  234. length: 16
  235. ]
  236. ],
  237. show_reactions: true,
  238. password_reset_token_validity: 60 * 60 * 24
  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.svg",
  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.svg",
  322. type: "image/svg+xml"
  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. failure_backoff: 60_000,
  378. ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
  379. config :pleroma, :media_proxy,
  380. enabled: false,
  381. invalidation: [
  382. enabled: false,
  383. provider: Pleroma.Web.MediaProxy.Invalidation.Script
  384. ],
  385. proxy_opts: [
  386. redirect_on_failure: false,
  387. max_body_length: 25 * 1_048_576,
  388. # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
  389. max_read_duration: 30_000,
  390. http: [
  391. follow_redirect: true,
  392. pool: :media
  393. ]
  394. ],
  395. whitelist: []
  396. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
  397. method: :purge,
  398. headers: [],
  399. options: []
  400. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
  401. # Note: media preview proxy depends on media proxy to be enabled
  402. config :pleroma, :media_preview_proxy,
  403. enabled: false,
  404. thumbnail_max_width: 600,
  405. thumbnail_max_height: 600,
  406. image_quality: 85,
  407. min_content_length: 100 * 1024
  408. config :pleroma, :chat, enabled: true
  409. config :phoenix, :format_encoders, json: Jason
  410. config :phoenix, :json_library, Jason
  411. config :phoenix, :filter_parameters, ["password", "confirm"]
  412. config :pleroma, :gopher,
  413. enabled: false,
  414. ip: {0, 0, 0, 0},
  415. port: 9999
  416. config :pleroma, Pleroma.Web.Metadata,
  417. providers: [
  418. Pleroma.Web.Metadata.Providers.OpenGraph,
  419. Pleroma.Web.Metadata.Providers.TwitterCard
  420. ],
  421. unfurl_nsfw: false
  422. config :pleroma, Pleroma.Web.Preload,
  423. providers: [
  424. Pleroma.Web.Preload.Providers.Instance
  425. ]
  426. config :pleroma, :http_security,
  427. enabled: true,
  428. sts: false,
  429. sts_max_age: 31_536_000,
  430. ct_max_age: 2_592_000,
  431. referrer_policy: "same-origin"
  432. config :cors_plug,
  433. max_age: 86_400,
  434. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  435. expose: [
  436. "Link",
  437. "X-RateLimit-Reset",
  438. "X-RateLimit-Limit",
  439. "X-RateLimit-Remaining",
  440. "X-Request-Id",
  441. "Idempotency-Key"
  442. ],
  443. credentials: true,
  444. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  445. config :pleroma, Pleroma.User,
  446. restricted_nicknames: [
  447. ".well-known",
  448. "~",
  449. "about",
  450. "activities",
  451. "api",
  452. "auth",
  453. "check_password",
  454. "dev",
  455. "friend-requests",
  456. "inbox",
  457. "internal",
  458. "main",
  459. "media",
  460. "nodeinfo",
  461. "notice",
  462. "oauth",
  463. "objects",
  464. "ostatus_subscribe",
  465. "pleroma",
  466. "proxy",
  467. "push",
  468. "registration",
  469. "relay",
  470. "settings",
  471. "status",
  472. "tag",
  473. "user-search",
  474. "user_exists",
  475. "users",
  476. "web",
  477. "verify_credentials",
  478. "update_credentials",
  479. "relationships",
  480. "search",
  481. "confirmation_resend",
  482. "mfa"
  483. ],
  484. email_blacklist: []
  485. config :pleroma, Oban,
  486. repo: Pleroma.Repo,
  487. log: false,
  488. queues: [
  489. activity_expiration: 10,
  490. token_expiration: 5,
  491. backup: 1,
  492. federator_incoming: 50,
  493. federator_outgoing: 50,
  494. ingestion_queue: 50,
  495. web_push: 50,
  496. mailer: 10,
  497. transmogrifier: 20,
  498. scheduled_activities: 10,
  499. background: 5,
  500. remote_fetcher: 2,
  501. attachments_cleanup: 5,
  502. new_users_digest: 1,
  503. mute_expire: 5
  504. ],
  505. plugins: [Oban.Plugins.Pruner],
  506. crontab: [
  507. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  508. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  509. ]
  510. config :pleroma, :workers,
  511. retries: [
  512. federator_incoming: 5,
  513. federator_outgoing: 5
  514. ]
  515. config :pleroma, Pleroma.Formatter,
  516. class: false,
  517. rel: "ugc",
  518. new_window: false,
  519. truncate: false,
  520. strip_prefix: false,
  521. extra: true,
  522. validate_tld: :no_scheme
  523. config :pleroma, :ldap,
  524. enabled: System.get_env("LDAP_ENABLED") == "true",
  525. host: System.get_env("LDAP_HOST") || "localhost",
  526. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  527. ssl: System.get_env("LDAP_SSL") == "true",
  528. sslopts: [],
  529. tls: System.get_env("LDAP_TLS") == "true",
  530. tlsopts: [],
  531. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  532. uid: System.get_env("LDAP_UID") || "cn"
  533. config :esshd,
  534. enabled: false
  535. oauth_consumer_strategies =
  536. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  537. |> to_string()
  538. |> String.split()
  539. |> Enum.map(&hd(String.split(&1, ":")))
  540. ueberauth_providers =
  541. for strategy <- oauth_consumer_strategies do
  542. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  543. strategy_module = String.to_atom(strategy_module_name)
  544. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  545. end
  546. config :ueberauth,
  547. Ueberauth,
  548. base_path: "/oauth",
  549. providers: ueberauth_providers
  550. config :pleroma,
  551. :auth,
  552. enforce_oauth_admin_scope_usage: true,
  553. oauth_consumer_strategies: oauth_consumer_strategies
  554. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  555. config :pleroma, Pleroma.Emails.UserEmail,
  556. logo: nil,
  557. styling: %{
  558. link_color: "#d8a070",
  559. background_color: "#2C3645",
  560. content_background_color: "#1B2635",
  561. header_color: "#d8a070",
  562. text_color: "#b9b9ba",
  563. text_muted_color: "#b9b9ba"
  564. }
  565. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  566. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
  567. enabled: false,
  568. auth: false,
  569. ip_whitelist: [],
  570. path: "/api/pleroma/app_metrics",
  571. format: :text
  572. config :pleroma, Pleroma.ScheduledActivity,
  573. daily_user_limit: 25,
  574. total_user_limit: 300,
  575. enabled: true
  576. config :pleroma, :email_notifications,
  577. digest: %{
  578. active: false,
  579. interval: 7,
  580. inactivity_threshold: 7
  581. }
  582. config :pleroma, :oauth2,
  583. token_expires_in: 3600 * 24 * 365 * 100,
  584. issue_new_refresh_token: true,
  585. clean_expired_tokens: false
  586. config :pleroma, :database, rum_enabled: false
  587. config :pleroma, :env, Mix.env()
  588. config :http_signatures,
  589. adapter: Pleroma.Signature
  590. config :pleroma, :rate_limit,
  591. authentication: {60_000, 15},
  592. timeline: {500, 3},
  593. search: [{1000, 10}, {1000, 30}],
  594. app_account_creation: {1_800_000, 25},
  595. relations_actions: {10_000, 10},
  596. relation_id_action: {60_000, 2},
  597. statuses_actions: {10_000, 15},
  598. status_id_action: {60_000, 3},
  599. password_reset: {1_800_000, 5},
  600. account_confirmation_resend: {8_640_000, 5},
  601. ap_routes: {60_000, 15}
  602. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  603. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  604. enabled: true,
  605. headers: ["x-forwarded-for"],
  606. proxies: [],
  607. reserved: [
  608. "127.0.0.0/8",
  609. "::1/128",
  610. "fc00::/7",
  611. "10.0.0.0/8",
  612. "172.16.0.0/12",
  613. "192.168.0.0/16"
  614. ]
  615. config :pleroma, :static_fe, enabled: false
  616. # Example of frontend configuration
  617. # This example will make us serve the primary frontend from the
  618. # frontends directory within your `:pleroma, :instance, static_dir`.
  619. # e.g., instance/static/frontends/pleroma/develop/
  620. #
  621. # With no frontend configuration, the bundled files from the `static` directory will
  622. # be used.
  623. #
  624. # config :pleroma, :frontends,
  625. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  626. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  627. # available: %{...}
  628. config :pleroma, :frontends,
  629. available: %{
  630. "kenoma" => %{
  631. "name" => "kenoma",
  632. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  633. "build_url" =>
  634. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  635. "ref" => "master"
  636. },
  637. "pleroma-fe" => %{
  638. "name" => "pleroma-fe",
  639. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  640. "build_url" =>
  641. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  642. "ref" => "develop"
  643. },
  644. "fedi-fe" => %{
  645. "name" => "fedi-fe",
  646. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  647. "build_url" =>
  648. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  649. "ref" => "master"
  650. },
  651. "admin-fe" => %{
  652. "name" => "admin-fe",
  653. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  654. "build_url" =>
  655. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  656. "ref" => "develop"
  657. },
  658. "soapbox-fe" => %{
  659. "name" => "soapbox-fe",
  660. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  661. "build_url" =>
  662. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  663. "ref" => "v1.0.0",
  664. "build_dir" => "static"
  665. }
  666. }
  667. config :pleroma, :web_cache_ttl,
  668. activity_pub: nil,
  669. activity_pub_question: 30_000
  670. config :pleroma, :modules, runtime_dir: "instance/modules"
  671. config :pleroma, configurable_from_database: false
  672. config :pleroma, Pleroma.Repo,
  673. parameters: [gin_fuzzy_search_limit: "500"],
  674. prepare: :unnamed
  675. config :pleroma, :connections_pool,
  676. reclaim_multiplier: 0.1,
  677. connection_acquisition_wait: 250,
  678. connection_acquisition_retries: 5,
  679. max_connections: 250,
  680. max_idle_time: 30_000,
  681. retry: 0,
  682. connect_timeout: 5_000
  683. config :pleroma, :pools,
  684. federation: [
  685. size: 50,
  686. max_waiting: 10,
  687. recv_timeout: 10_000
  688. ],
  689. media: [
  690. size: 50,
  691. max_waiting: 20,
  692. recv_timeout: 15_000
  693. ],
  694. upload: [
  695. size: 25,
  696. max_waiting: 5,
  697. recv_timeout: 15_000
  698. ],
  699. default: [
  700. size: 10,
  701. max_waiting: 2,
  702. recv_timeout: 5_000
  703. ]
  704. config :pleroma, :hackney_pools,
  705. federation: [
  706. max_connections: 50,
  707. timeout: 150_000
  708. ],
  709. media: [
  710. max_connections: 50,
  711. timeout: 150_000
  712. ],
  713. upload: [
  714. max_connections: 25,
  715. timeout: 300_000
  716. ]
  717. config :pleroma, :majic_pool, size: 2
  718. private_instance? = :if_instance_is_private
  719. config :pleroma, :restrict_unauthenticated,
  720. timelines: %{local: private_instance?, federated: private_instance?},
  721. profiles: %{local: private_instance?, remote: private_instance?},
  722. activities: %{local: private_instance?, remote: private_instance?}
  723. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  724. config :pleroma, :mrf,
  725. policies: [Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, Pleroma.Web.ActivityPub.MRF.TagPolicy],
  726. transparency: true,
  727. transparency_exclusions: []
  728. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  729. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  730. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  731. config :pleroma, :instances_favicons, enabled: false
  732. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  733. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  734. config :pleroma, Pleroma.User.Backup,
  735. purge_after_days: 30,
  736. limit_days: 7,
  737. dir: nil
  738. # Import environment specific config. This must remain at the bottom
  739. # of this file so it overrides the configuration defined above.
  740. import_config "#{Mix.env()}.exs"