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.

846 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. 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. 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,
  401. script_path: nil,
  402. url_format: nil
  403. # Note: media preview proxy depends on media proxy to be enabled
  404. config :pleroma, :media_preview_proxy,
  405. enabled: false,
  406. thumbnail_max_width: 600,
  407. thumbnail_max_height: 600,
  408. image_quality: 85,
  409. min_content_length: 100 * 1024
  410. config :pleroma, :chat, enabled: true
  411. config :phoenix, :format_encoders, json: Jason
  412. config :phoenix, :json_library, Jason
  413. config :phoenix, :filter_parameters, ["password", "confirm"]
  414. config :pleroma, :gopher,
  415. enabled: false,
  416. ip: {0, 0, 0, 0},
  417. port: 9999
  418. config :pleroma, Pleroma.Web.Metadata,
  419. providers: [
  420. Pleroma.Web.Metadata.Providers.OpenGraph,
  421. Pleroma.Web.Metadata.Providers.TwitterCard
  422. ],
  423. unfurl_nsfw: false
  424. config :pleroma, Pleroma.Web.Preload,
  425. providers: [
  426. Pleroma.Web.Preload.Providers.Instance
  427. ]
  428. config :pleroma, :http_security,
  429. enabled: true,
  430. sts: false,
  431. sts_max_age: 31_536_000,
  432. ct_max_age: 2_592_000,
  433. referrer_policy: "same-origin"
  434. config :cors_plug,
  435. max_age: 86_400,
  436. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  437. expose: [
  438. "Link",
  439. "X-RateLimit-Reset",
  440. "X-RateLimit-Limit",
  441. "X-RateLimit-Remaining",
  442. "X-Request-Id",
  443. "Idempotency-Key"
  444. ],
  445. credentials: true,
  446. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  447. config :pleroma, Pleroma.User,
  448. restricted_nicknames: [
  449. ".well-known",
  450. "~",
  451. "about",
  452. "activities",
  453. "api",
  454. "auth",
  455. "check_password",
  456. "dev",
  457. "friend-requests",
  458. "inbox",
  459. "internal",
  460. "main",
  461. "media",
  462. "nodeinfo",
  463. "notice",
  464. "oauth",
  465. "objects",
  466. "ostatus_subscribe",
  467. "pleroma",
  468. "proxy",
  469. "push",
  470. "registration",
  471. "relay",
  472. "settings",
  473. "status",
  474. "tag",
  475. "user-search",
  476. "user_exists",
  477. "users",
  478. "web",
  479. "verify_credentials",
  480. "update_credentials",
  481. "relationships",
  482. "search",
  483. "confirmation_resend",
  484. "mfa"
  485. ],
  486. email_blacklist: []
  487. config :pleroma, Oban,
  488. repo: Pleroma.Repo,
  489. log: false,
  490. queues: [
  491. activity_expiration: 10,
  492. token_expiration: 5,
  493. filter_expiration: 1,
  494. backup: 1,
  495. federator_incoming: 50,
  496. federator_outgoing: 50,
  497. ingestion_queue: 50,
  498. web_push: 50,
  499. mailer: 10,
  500. transmogrifier: 20,
  501. scheduled_activities: 10,
  502. background: 5,
  503. remote_fetcher: 2,
  504. attachments_cleanup: 1,
  505. new_users_digest: 1,
  506. mute_expire: 5
  507. ],
  508. plugins: [Oban.Plugins.Pruner],
  509. crontab: [
  510. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  511. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  512. ]
  513. config :pleroma, :workers,
  514. retries: [
  515. federator_incoming: 5,
  516. federator_outgoing: 5
  517. ]
  518. config :pleroma, Pleroma.Formatter,
  519. class: false,
  520. rel: "ugc",
  521. new_window: false,
  522. truncate: false,
  523. strip_prefix: false,
  524. extra: true,
  525. validate_tld: :no_scheme
  526. config :pleroma, :ldap,
  527. enabled: System.get_env("LDAP_ENABLED") == "true",
  528. host: System.get_env("LDAP_HOST") || "localhost",
  529. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  530. ssl: System.get_env("LDAP_SSL") == "true",
  531. sslopts: [],
  532. tls: System.get_env("LDAP_TLS") == "true",
  533. tlsopts: [],
  534. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  535. uid: System.get_env("LDAP_UID") || "cn"
  536. config :esshd,
  537. enabled: false
  538. oauth_consumer_strategies =
  539. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  540. |> to_string()
  541. |> String.split()
  542. |> Enum.map(&hd(String.split(&1, ":")))
  543. ueberauth_providers =
  544. for strategy <- oauth_consumer_strategies do
  545. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  546. strategy_module = String.to_atom(strategy_module_name)
  547. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  548. end
  549. config :ueberauth,
  550. Ueberauth,
  551. base_path: "/oauth",
  552. providers: ueberauth_providers
  553. config :pleroma,
  554. :auth,
  555. enforce_oauth_admin_scope_usage: true,
  556. oauth_consumer_strategies: oauth_consumer_strategies
  557. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  558. config :pleroma, Pleroma.Emails.UserEmail,
  559. logo: nil,
  560. styling: %{
  561. link_color: "#d8a070",
  562. background_color: "#2C3645",
  563. content_background_color: "#1B2635",
  564. header_color: "#d8a070",
  565. text_color: "#b9b9ba",
  566. text_muted_color: "#b9b9ba"
  567. }
  568. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  569. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
  570. enabled: false,
  571. auth: false,
  572. ip_whitelist: [],
  573. path: "/api/pleroma/app_metrics",
  574. format: :text
  575. config :pleroma, Pleroma.ScheduledActivity,
  576. daily_user_limit: 25,
  577. total_user_limit: 300,
  578. enabled: true
  579. config :pleroma, :email_notifications,
  580. digest: %{
  581. active: false,
  582. interval: 7,
  583. inactivity_threshold: 7
  584. }
  585. config :pleroma, :oauth2,
  586. token_expires_in: 3600 * 24 * 365 * 100,
  587. issue_new_refresh_token: true,
  588. clean_expired_tokens: false
  589. config :pleroma, :database, rum_enabled: false
  590. config :pleroma, :env, Mix.env()
  591. config :http_signatures,
  592. adapter: Pleroma.Signature
  593. config :pleroma, :rate_limit,
  594. authentication: {60_000, 15},
  595. timeline: {500, 3},
  596. search: [{1000, 10}, {1000, 30}],
  597. app_account_creation: {1_800_000, 25},
  598. relations_actions: {10_000, 10},
  599. relation_id_action: {60_000, 2},
  600. statuses_actions: {10_000, 15},
  601. status_id_action: {60_000, 3},
  602. password_reset: {1_800_000, 5},
  603. account_confirmation_resend: {8_640_000, 5},
  604. ap_routes: {60_000, 15}
  605. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  606. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  607. enabled: true,
  608. headers: ["x-forwarded-for"],
  609. proxies: [],
  610. reserved: [
  611. "127.0.0.0/8",
  612. "::1/128",
  613. "fc00::/7",
  614. "10.0.0.0/8",
  615. "172.16.0.0/12",
  616. "192.168.0.0/16"
  617. ]
  618. config :pleroma, :static_fe, enabled: false
  619. # Example of frontend configuration
  620. # This example will make us serve the primary frontend from the
  621. # frontends directory within your `:pleroma, :instance, static_dir`.
  622. # e.g., instance/static/frontends/pleroma/develop/
  623. #
  624. # With no frontend configuration, the bundled files from the `static` directory will
  625. # be used.
  626. #
  627. # config :pleroma, :frontends,
  628. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  629. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  630. # available: %{...}
  631. config :pleroma, :frontends,
  632. available: %{
  633. "kenoma" => %{
  634. "name" => "kenoma",
  635. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  636. "build_url" =>
  637. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  638. "ref" => "master"
  639. },
  640. "pleroma-fe" => %{
  641. "name" => "pleroma-fe",
  642. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  643. "build_url" =>
  644. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  645. "ref" => "develop"
  646. },
  647. "fedi-fe" => %{
  648. "name" => "fedi-fe",
  649. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  650. "build_url" =>
  651. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  652. "ref" => "master"
  653. },
  654. "admin-fe" => %{
  655. "name" => "admin-fe",
  656. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  657. "build_url" =>
  658. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  659. "ref" => "develop"
  660. },
  661. "soapbox-fe" => %{
  662. "name" => "soapbox-fe",
  663. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  664. "build_url" =>
  665. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  666. "ref" => "v1.0.0",
  667. "build_dir" => "static"
  668. }
  669. }
  670. config :pleroma, :web_cache_ttl,
  671. activity_pub: nil,
  672. activity_pub_question: 30_000
  673. config :pleroma, :modules, runtime_dir: "instance/modules"
  674. config :pleroma, configurable_from_database: false
  675. config :pleroma, Pleroma.Repo,
  676. parameters: [gin_fuzzy_search_limit: "500"],
  677. prepare: :unnamed
  678. config :pleroma, :connections_pool,
  679. reclaim_multiplier: 0.1,
  680. connection_acquisition_wait: 250,
  681. connection_acquisition_retries: 5,
  682. max_connections: 250,
  683. max_idle_time: 30_000,
  684. retry: 0,
  685. connect_timeout: 5_000
  686. config :pleroma, :pools,
  687. federation: [
  688. size: 50,
  689. max_waiting: 10,
  690. recv_timeout: 10_000
  691. ],
  692. media: [
  693. size: 50,
  694. max_waiting: 20,
  695. recv_timeout: 15_000
  696. ],
  697. upload: [
  698. size: 25,
  699. max_waiting: 5,
  700. recv_timeout: 15_000
  701. ],
  702. default: [
  703. size: 10,
  704. max_waiting: 2,
  705. recv_timeout: 5_000
  706. ]
  707. config :pleroma, :hackney_pools,
  708. federation: [
  709. max_connections: 50,
  710. timeout: 150_000
  711. ],
  712. media: [
  713. max_connections: 50,
  714. timeout: 150_000
  715. ],
  716. upload: [
  717. max_connections: 25,
  718. timeout: 300_000
  719. ]
  720. config :pleroma, :majic_pool, size: 2
  721. private_instance? = :if_instance_is_private
  722. config :pleroma, :restrict_unauthenticated,
  723. timelines: %{local: private_instance?, federated: private_instance?},
  724. profiles: %{local: private_instance?, remote: private_instance?},
  725. activities: %{local: private_instance?, remote: private_instance?}
  726. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  727. config :pleroma, :mrf,
  728. policies: [Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, Pleroma.Web.ActivityPub.MRF.TagPolicy],
  729. transparency: true,
  730. transparency_exclusions: []
  731. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  732. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  733. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  734. config :pleroma, :instances_favicons, enabled: false
  735. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  736. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  737. config :pleroma, Pleroma.User.Backup,
  738. purge_after_days: 30,
  739. limit_days: 7,
  740. dir: nil
  741. config :pleroma, ConcurrentLimiter, [
  742. {Pleroma.Web.RichMedia.Helpers, [max_running: 5, max_waiting: 5]},
  743. {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
  744. ]
  745. # Import environment specific config. This must remain at the bottom
  746. # of this file so it overrides the configuration defined above.
  747. import_config "#{Mix.env()}.exs"