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.

799 lines
21KB

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