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.

838 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. 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. default_description: nil
  72. config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
  73. config :pleroma, Pleroma.Uploaders.S3,
  74. bucket: nil,
  75. streaming_enabled: true,
  76. public_endpoint: "https://s3.amazonaws.com"
  77. config :pleroma, :emoji,
  78. shortcode_globs: ["/emoji/custom/**/*.png"],
  79. pack_extensions: [".png", ".gif"],
  80. groups: [
  81. Custom: ["/emoji/*.png", "/emoji/**/*.png"]
  82. ],
  83. default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json",
  84. shared_pack_cache_seconds_per_file: 60
  85. config :pleroma, :uri_schemes,
  86. valid_schemes: [
  87. "https",
  88. "http",
  89. "dat",
  90. "dweb",
  91. "gopher",
  92. "hyper",
  93. "ipfs",
  94. "ipns",
  95. "irc",
  96. "ircs",
  97. "magnet",
  98. "mailto",
  99. "mumble",
  100. "ssb",
  101. "xmpp"
  102. ]
  103. websocket_config = [
  104. path: "/websocket",
  105. serializer: [
  106. {Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
  107. {Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
  108. ],
  109. timeout: 60_000,
  110. transport_log: false,
  111. compress: false
  112. ]
  113. # Configures the endpoint
  114. config :pleroma, Pleroma.Web.Endpoint,
  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_server: Pleroma.PubSub,
  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. static_dir: "instance/static/",
  201. allowed_post_formats: [
  202. "text/plain",
  203. "text/html",
  204. "text/markdown",
  205. "text/bbcode"
  206. ],
  207. autofollowed_nicknames: [],
  208. autofollowing_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. password_reset_token_validity: 60 * 60 * 24
  240. config :pleroma, :welcome,
  241. direct_message: [
  242. enabled: false,
  243. sender_nickname: nil,
  244. message: nil
  245. ],
  246. chat_message: [
  247. enabled: false,
  248. sender_nickname: nil,
  249. message: nil
  250. ],
  251. email: [
  252. enabled: false,
  253. sender: nil,
  254. subject: "Welcome to <%= instance_name %>",
  255. html: "Welcome to <%= instance_name %>",
  256. text: "Welcome to <%= instance_name %>"
  257. ]
  258. config :pleroma, :feed,
  259. post_title: %{
  260. max_length: 100,
  261. omission: "..."
  262. }
  263. config :pleroma, :markup,
  264. # XXX - unfortunately, inline images must be enabled by default right now, because
  265. # of custom emoji. Issue #275 discusses defanging that somehow.
  266. allow_inline_images: true,
  267. allow_headings: false,
  268. allow_tables: false,
  269. allow_fonts: false,
  270. scrub_policy: [
  271. Pleroma.HTML.Scrubber.Default,
  272. Pleroma.HTML.Transform.MediaProxy
  273. ]
  274. config :pleroma, :frontend_configurations,
  275. pleroma_fe: %{
  276. alwaysShowSubjectInput: true,
  277. background: "/images/city.jpg",
  278. collapseMessageWithSubject: false,
  279. disableChat: false,
  280. greentext: false,
  281. hideFilteredStatuses: false,
  282. hideMutedPosts: false,
  283. hidePostStats: false,
  284. hideSitename: false,
  285. hideUserStats: false,
  286. loginMethod: "password",
  287. logo: "/static/logo.png",
  288. logoMargin: ".1em",
  289. logoMask: true,
  290. minimalScopesMode: false,
  291. noAttachmentLinks: false,
  292. nsfwCensorImage: "",
  293. postContentType: "text/plain",
  294. redirectRootLogin: "/main/friends",
  295. redirectRootNoLogin: "/main/all",
  296. scopeCopy: true,
  297. sidebarRight: false,
  298. showFeaturesPanel: true,
  299. showInstanceSpecificPanel: false,
  300. subjectLineBehavior: "email",
  301. theme: "pleroma-dark",
  302. webPushNotifications: false
  303. },
  304. masto_fe: %{
  305. showInstanceSpecificPanel: true
  306. }
  307. config :pleroma, :assets,
  308. mascots: [
  309. pleroma_fox_tan: %{
  310. url: "/images/pleroma-fox-tan-smol.png",
  311. mime_type: "image/png"
  312. },
  313. pleroma_fox_tan_shy: %{
  314. url: "/images/pleroma-fox-tan-shy.png",
  315. mime_type: "image/png"
  316. }
  317. ],
  318. default_mascot: :pleroma_fox_tan
  319. config :pleroma, :manifest,
  320. icons: [
  321. %{
  322. src: "/static/logo.png",
  323. type: "image/png"
  324. }
  325. ],
  326. theme_color: "#282c37",
  327. background_color: "#191b22"
  328. config :pleroma, :activitypub,
  329. unfollow_blocked: true,
  330. outgoing_blocks: true,
  331. follow_handshake_timeout: 500,
  332. note_replies_output_limit: 5,
  333. sign_object_fetches: true,
  334. authorized_fetch_mode: false
  335. config :pleroma, :streamer,
  336. workers: 3,
  337. overflow_workers: 2
  338. config :pleroma, :user, deny_follow_blocked: true
  339. config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
  340. config :pleroma, :mrf_rejectnonpublic,
  341. allow_followersonly: false,
  342. allow_direct: false
  343. config :pleroma, :mrf_hellthread,
  344. delist_threshold: 10,
  345. reject_threshold: 20
  346. config :pleroma, :mrf_simple,
  347. media_removal: [],
  348. media_nsfw: [],
  349. federated_timeline_removal: [],
  350. report_removal: [],
  351. reject: [],
  352. followers_only: [],
  353. accept: [],
  354. avatar_removal: [],
  355. banner_removal: [],
  356. reject_deletes: []
  357. config :pleroma, :mrf_keyword,
  358. reject: [],
  359. federated_timeline_removal: [],
  360. replace: []
  361. config :pleroma, :mrf_subchain, match_actor: %{}
  362. config :pleroma, :mrf_activity_expiration, days: 365
  363. config :pleroma, :mrf_vocabulary,
  364. accept: [],
  365. reject: []
  366. # threshold of 7 days
  367. config :pleroma, :mrf_object_age,
  368. threshold: 604_800,
  369. actions: [:delist, :strip_followers]
  370. config :pleroma, :rich_media,
  371. enabled: true,
  372. ignore_hosts: [],
  373. ignore_tld: ["local", "localdomain", "lan"],
  374. parsers: [
  375. Pleroma.Web.RichMedia.Parsers.TwitterCard,
  376. Pleroma.Web.RichMedia.Parsers.OEmbed
  377. ],
  378. failure_backoff: 60_000,
  379. ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
  380. config :pleroma, :media_proxy,
  381. enabled: false,
  382. invalidation: [
  383. enabled: false,
  384. provider: Pleroma.Web.MediaProxy.Invalidation.Script
  385. ],
  386. proxy_opts: [
  387. redirect_on_failure: false,
  388. max_body_length: 25 * 1_048_576,
  389. # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
  390. max_read_duration: 30_000,
  391. http: [
  392. follow_redirect: true,
  393. pool: :media
  394. ]
  395. ],
  396. whitelist: []
  397. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
  398. method: :purge,
  399. headers: [],
  400. options: []
  401. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
  402. # Note: media preview proxy depends on media proxy to be enabled
  403. config :pleroma, :media_preview_proxy,
  404. enabled: false,
  405. thumbnail_max_width: 600,
  406. thumbnail_max_height: 600,
  407. image_quality: 85,
  408. min_content_length: 100 * 1024
  409. config :pleroma, :chat, enabled: true
  410. config :phoenix, :format_encoders, json: Jason
  411. config :phoenix, :json_library, Jason
  412. config :phoenix, :filter_parameters, ["password", "confirm"]
  413. config :pleroma, :gopher,
  414. enabled: false,
  415. ip: {0, 0, 0, 0},
  416. port: 9999
  417. config :pleroma, Pleroma.Web.Metadata,
  418. providers: [
  419. Pleroma.Web.Metadata.Providers.OpenGraph,
  420. Pleroma.Web.Metadata.Providers.TwitterCard
  421. ],
  422. unfurl_nsfw: false
  423. config :pleroma, Pleroma.Web.Preload,
  424. providers: [
  425. Pleroma.Web.Preload.Providers.Instance
  426. ]
  427. config :pleroma, :http_security,
  428. enabled: true,
  429. sts: false,
  430. sts_max_age: 31_536_000,
  431. ct_max_age: 2_592_000,
  432. referrer_policy: "same-origin"
  433. config :cors_plug,
  434. max_age: 86_400,
  435. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  436. expose: [
  437. "Link",
  438. "X-RateLimit-Reset",
  439. "X-RateLimit-Limit",
  440. "X-RateLimit-Remaining",
  441. "X-Request-Id",
  442. "Idempotency-Key"
  443. ],
  444. credentials: true,
  445. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  446. config :pleroma, Pleroma.User,
  447. restricted_nicknames: [
  448. ".well-known",
  449. "~",
  450. "about",
  451. "activities",
  452. "api",
  453. "auth",
  454. "check_password",
  455. "dev",
  456. "friend-requests",
  457. "inbox",
  458. "internal",
  459. "main",
  460. "media",
  461. "nodeinfo",
  462. "notice",
  463. "oauth",
  464. "objects",
  465. "ostatus_subscribe",
  466. "pleroma",
  467. "proxy",
  468. "push",
  469. "registration",
  470. "relay",
  471. "settings",
  472. "status",
  473. "tag",
  474. "user-search",
  475. "user_exists",
  476. "users",
  477. "web",
  478. "verify_credentials",
  479. "update_credentials",
  480. "relationships",
  481. "search",
  482. "confirmation_resend",
  483. "mfa"
  484. ],
  485. email_blacklist: []
  486. config :pleroma, Oban,
  487. repo: Pleroma.Repo,
  488. log: false,
  489. queues: [
  490. activity_expiration: 10,
  491. token_expiration: 5,
  492. backup: 1,
  493. federator_incoming: 50,
  494. federator_outgoing: 50,
  495. ingestion_queue: 50,
  496. web_push: 50,
  497. mailer: 10,
  498. transmogrifier: 20,
  499. scheduled_activities: 10,
  500. background: 5,
  501. remote_fetcher: 2,
  502. attachments_cleanup: 5,
  503. new_users_digest: 1,
  504. mute_expire: 5
  505. ],
  506. plugins: [Oban.Plugins.Pruner],
  507. crontab: [
  508. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  509. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  510. ]
  511. config :pleroma, :workers,
  512. retries: [
  513. federator_incoming: 5,
  514. federator_outgoing: 5
  515. ]
  516. config :pleroma, Pleroma.Formatter,
  517. class: false,
  518. rel: "ugc",
  519. new_window: false,
  520. truncate: false,
  521. strip_prefix: false,
  522. extra: true,
  523. validate_tld: :no_scheme
  524. config :pleroma, :ldap,
  525. enabled: System.get_env("LDAP_ENABLED") == "true",
  526. host: System.get_env("LDAP_HOST") || "localhost",
  527. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  528. ssl: System.get_env("LDAP_SSL") == "true",
  529. sslopts: [],
  530. tls: System.get_env("LDAP_TLS") == "true",
  531. tlsopts: [],
  532. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  533. uid: System.get_env("LDAP_UID") || "cn"
  534. config :esshd,
  535. enabled: false
  536. oauth_consumer_strategies =
  537. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  538. |> to_string()
  539. |> String.split()
  540. |> Enum.map(&hd(String.split(&1, ":")))
  541. ueberauth_providers =
  542. for strategy <- oauth_consumer_strategies do
  543. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  544. strategy_module = String.to_atom(strategy_module_name)
  545. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  546. end
  547. config :ueberauth,
  548. Ueberauth,
  549. base_path: "/oauth",
  550. providers: ueberauth_providers
  551. config :pleroma,
  552. :auth,
  553. enforce_oauth_admin_scope_usage: true,
  554. oauth_consumer_strategies: oauth_consumer_strategies
  555. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  556. config :pleroma, Pleroma.Emails.UserEmail,
  557. logo: nil,
  558. styling: %{
  559. link_color: "#d8a070",
  560. background_color: "#2C3645",
  561. content_background_color: "#1B2635",
  562. header_color: "#d8a070",
  563. text_color: "#b9b9ba",
  564. text_muted_color: "#b9b9ba"
  565. }
  566. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  567. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
  568. enabled: false,
  569. auth: false,
  570. ip_whitelist: [],
  571. path: "/api/pleroma/app_metrics",
  572. format: :text
  573. config :pleroma, Pleroma.ScheduledActivity,
  574. daily_user_limit: 25,
  575. total_user_limit: 300,
  576. enabled: true
  577. config :pleroma, :email_notifications,
  578. digest: %{
  579. active: false,
  580. interval: 7,
  581. inactivity_threshold: 7
  582. }
  583. config :pleroma, :oauth2,
  584. token_expires_in: 600,
  585. issue_new_refresh_token: true,
  586. clean_expired_tokens: false
  587. config :pleroma, :database, rum_enabled: false
  588. config :pleroma, :env, Mix.env()
  589. config :http_signatures,
  590. adapter: Pleroma.Signature
  591. config :pleroma, :rate_limit,
  592. authentication: {60_000, 15},
  593. timeline: {500, 3},
  594. search: [{1000, 10}, {1000, 30}],
  595. app_account_creation: {1_800_000, 25},
  596. relations_actions: {10_000, 10},
  597. relation_id_action: {60_000, 2},
  598. statuses_actions: {10_000, 15},
  599. status_id_action: {60_000, 3},
  600. password_reset: {1_800_000, 5},
  601. account_confirmation_resend: {8_640_000, 5},
  602. ap_routes: {60_000, 15}
  603. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  604. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  605. enabled: true,
  606. headers: ["x-forwarded-for"],
  607. proxies: [],
  608. reserved: [
  609. "127.0.0.0/8",
  610. "::1/128",
  611. "fc00::/7",
  612. "10.0.0.0/8",
  613. "172.16.0.0/12",
  614. "192.168.0.0/16"
  615. ]
  616. config :pleroma, :static_fe, enabled: false
  617. # Example of frontend configuration
  618. # This example will make us serve the primary frontend from the
  619. # frontends directory within your `:pleroma, :instance, static_dir`.
  620. # e.g., instance/static/frontends/pleroma/develop/
  621. #
  622. # With no frontend configuration, the bundled files from the `static` directory will
  623. # be used.
  624. #
  625. # config :pleroma, :frontends,
  626. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  627. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  628. # available: %{...}
  629. config :pleroma, :frontends,
  630. available: %{
  631. "kenoma" => %{
  632. "name" => "kenoma",
  633. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  634. "build_url" =>
  635. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  636. "ref" => "master"
  637. },
  638. "pleroma-fe" => %{
  639. "name" => "pleroma-fe",
  640. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  641. "build_url" =>
  642. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  643. "ref" => "develop"
  644. },
  645. "fedi-fe" => %{
  646. "name" => "fedi-fe",
  647. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  648. "build_url" =>
  649. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  650. "ref" => "master"
  651. },
  652. "admin-fe" => %{
  653. "name" => "admin-fe",
  654. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  655. "build_url" =>
  656. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  657. "ref" => "develop"
  658. },
  659. "soapbox-fe" => %{
  660. "name" => "soapbox-fe",
  661. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  662. "build_url" =>
  663. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  664. "ref" => "v1.0.0",
  665. "build_dir" => "static"
  666. }
  667. }
  668. config :pleroma, :web_cache_ttl,
  669. activity_pub: nil,
  670. activity_pub_question: 30_000
  671. config :pleroma, :modules, runtime_dir: "instance/modules"
  672. config :pleroma, configurable_from_database: false
  673. config :pleroma, Pleroma.Repo,
  674. parameters: [gin_fuzzy_search_limit: "500"],
  675. prepare: :unnamed
  676. config :pleroma, :connections_pool,
  677. reclaim_multiplier: 0.1,
  678. connection_acquisition_wait: 250,
  679. connection_acquisition_retries: 5,
  680. max_connections: 250,
  681. max_idle_time: 30_000,
  682. retry: 0,
  683. connect_timeout: 5_000
  684. config :pleroma, :pools,
  685. federation: [
  686. size: 50,
  687. max_waiting: 10,
  688. recv_timeout: 10_000
  689. ],
  690. media: [
  691. size: 50,
  692. max_waiting: 20,
  693. recv_timeout: 15_000
  694. ],
  695. upload: [
  696. size: 25,
  697. max_waiting: 5,
  698. recv_timeout: 15_000
  699. ],
  700. default: [
  701. size: 10,
  702. max_waiting: 2,
  703. recv_timeout: 5_000
  704. ]
  705. config :pleroma, :hackney_pools,
  706. federation: [
  707. max_connections: 50,
  708. timeout: 150_000
  709. ],
  710. media: [
  711. max_connections: 50,
  712. timeout: 150_000
  713. ],
  714. upload: [
  715. max_connections: 25,
  716. timeout: 300_000
  717. ]
  718. config :pleroma, :majic_pool, size: 2
  719. private_instance? = :if_instance_is_private
  720. config :pleroma, :restrict_unauthenticated,
  721. timelines: %{local: private_instance?, federated: private_instance?},
  722. profiles: %{local: private_instance?, remote: private_instance?},
  723. activities: %{local: private_instance?, remote: private_instance?}
  724. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  725. config :pleroma, :mrf,
  726. policies: [Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, Pleroma.Web.ActivityPub.MRF.TagPolicy],
  727. transparency: true,
  728. transparency_exclusions: []
  729. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  730. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  731. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  732. config :pleroma, :instances_favicons, enabled: false
  733. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  734. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  735. config :pleroma, Pleroma.User.Backup,
  736. purge_after_days: 30,
  737. limit_days: 7,
  738. dir: nil
  739. # Import environment specific config. This must remain at the bottom
  740. # of this file so it overrides the configuration defined above.
  741. import_config "#{Mix.env()}.exs"