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.

804 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. managed_config: true,
  202. static_dir: "instance/static/",
  203. allowed_post_formats: [
  204. "text/plain",
  205. "text/html",
  206. "text/markdown",
  207. "text/bbcode"
  208. ],
  209. autofollowed_nicknames: [],
  210. max_pinned_statuses: 1,
  211. attachment_links: false,
  212. max_report_comment_size: 1000,
  213. safe_dm_mentions: false,
  214. healthcheck: false,
  215. remote_post_retention_days: 90,
  216. skip_thread_containment: true,
  217. limit_to_local_content: :unauthenticated,
  218. user_bio_length: 5000,
  219. user_name_length: 100,
  220. max_account_fields: 10,
  221. max_remote_account_fields: 20,
  222. account_field_name_length: 512,
  223. account_field_value_length: 2048,
  224. registration_reason_length: 500,
  225. external_user_synchronization: true,
  226. extended_nickname_format: true,
  227. cleanup_attachments: false,
  228. multi_factor_authentication: [
  229. totp: [
  230. # digits 6 or 8
  231. digits: 6,
  232. period: 30
  233. ],
  234. backup_codes: [
  235. number: 5,
  236. length: 16
  237. ]
  238. ],
  239. show_reactions: true
  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. http: [
  390. follow_redirect: true,
  391. pool: :media
  392. ]
  393. ],
  394. whitelist: []
  395. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
  396. method: :purge,
  397. headers: [],
  398. options: []
  399. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
  400. config :pleroma, :chat, enabled: true
  401. config :phoenix, :format_encoders, json: Jason
  402. config :phoenix, :json_library, Jason
  403. config :phoenix, :filter_parameters, ["password", "confirm"]
  404. config :pleroma, :gopher,
  405. enabled: false,
  406. ip: {0, 0, 0, 0},
  407. port: 9999
  408. config :pleroma, Pleroma.Web.Metadata,
  409. providers: [
  410. Pleroma.Web.Metadata.Providers.OpenGraph,
  411. Pleroma.Web.Metadata.Providers.TwitterCard,
  412. Pleroma.Web.Metadata.Providers.RelMe,
  413. Pleroma.Web.Metadata.Providers.Feed
  414. ],
  415. unfurl_nsfw: false
  416. config :pleroma, Pleroma.Web.Preload,
  417. providers: [
  418. Pleroma.Web.Preload.Providers.Instance
  419. ]
  420. config :pleroma, :http_security,
  421. enabled: true,
  422. sts: false,
  423. sts_max_age: 31_536_000,
  424. ct_max_age: 2_592_000,
  425. referrer_policy: "same-origin"
  426. config :cors_plug,
  427. max_age: 86_400,
  428. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  429. expose: [
  430. "Link",
  431. "X-RateLimit-Reset",
  432. "X-RateLimit-Limit",
  433. "X-RateLimit-Remaining",
  434. "X-Request-Id",
  435. "Idempotency-Key"
  436. ],
  437. credentials: true,
  438. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  439. config :pleroma, Pleroma.User,
  440. restricted_nicknames: [
  441. ".well-known",
  442. "~",
  443. "about",
  444. "activities",
  445. "api",
  446. "auth",
  447. "check_password",
  448. "dev",
  449. "friend-requests",
  450. "inbox",
  451. "internal",
  452. "main",
  453. "media",
  454. "nodeinfo",
  455. "notice",
  456. "oauth",
  457. "objects",
  458. "ostatus_subscribe",
  459. "pleroma",
  460. "proxy",
  461. "push",
  462. "registration",
  463. "relay",
  464. "settings",
  465. "status",
  466. "tag",
  467. "user-search",
  468. "user_exists",
  469. "users",
  470. "web",
  471. "verify_credentials",
  472. "update_credentials",
  473. "relationships",
  474. "search",
  475. "confirmation_resend",
  476. "mfa"
  477. ],
  478. email_blacklist: []
  479. config :pleroma, Oban,
  480. repo: Pleroma.Repo,
  481. log: false,
  482. queues: [
  483. activity_expiration: 10,
  484. federator_incoming: 50,
  485. federator_outgoing: 50,
  486. web_push: 50,
  487. mailer: 10,
  488. transmogrifier: 20,
  489. scheduled_activities: 10,
  490. background: 5,
  491. remote_fetcher: 2,
  492. attachments_cleanup: 5,
  493. new_users_digest: 1
  494. ],
  495. plugins: [Oban.Plugins.Pruner],
  496. crontab: [
  497. {"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker},
  498. {"0 * * * *", Pleroma.Workers.Cron.StatsWorker},
  499. {"* * * * *", Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker},
  500. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  501. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  502. ]
  503. config :pleroma, :workers,
  504. retries: [
  505. federator_incoming: 5,
  506. federator_outgoing: 5
  507. ]
  508. config :pleroma, Pleroma.Formatter,
  509. class: false,
  510. rel: "ugc",
  511. new_window: false,
  512. truncate: false,
  513. strip_prefix: false,
  514. extra: true,
  515. validate_tld: :no_scheme
  516. config :pleroma, :ldap,
  517. enabled: System.get_env("LDAP_ENABLED") == "true",
  518. host: System.get_env("LDAP_HOST") || "localhost",
  519. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  520. ssl: System.get_env("LDAP_SSL") == "true",
  521. sslopts: [],
  522. tls: System.get_env("LDAP_TLS") == "true",
  523. tlsopts: [],
  524. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  525. uid: System.get_env("LDAP_UID") || "cn"
  526. config :esshd,
  527. enabled: false
  528. oauth_consumer_strategies =
  529. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  530. |> to_string()
  531. |> String.split()
  532. |> Enum.map(&hd(String.split(&1, ":")))
  533. ueberauth_providers =
  534. for strategy <- oauth_consumer_strategies do
  535. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  536. strategy_module = String.to_atom(strategy_module_name)
  537. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  538. end
  539. config :ueberauth,
  540. Ueberauth,
  541. base_path: "/oauth",
  542. providers: ueberauth_providers
  543. config :pleroma,
  544. :auth,
  545. enforce_oauth_admin_scope_usage: true,
  546. oauth_consumer_strategies: oauth_consumer_strategies
  547. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  548. config :pleroma, Pleroma.Emails.UserEmail,
  549. logo: nil,
  550. styling: %{
  551. link_color: "#d8a070",
  552. background_color: "#2C3645",
  553. content_background_color: "#1B2635",
  554. header_color: "#d8a070",
  555. text_color: "#b9b9ba",
  556. text_muted_color: "#b9b9ba"
  557. }
  558. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  559. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
  560. config :pleroma, Pleroma.ScheduledActivity,
  561. daily_user_limit: 25,
  562. total_user_limit: 300,
  563. enabled: true
  564. config :pleroma, :email_notifications,
  565. digest: %{
  566. active: false,
  567. interval: 7,
  568. inactivity_threshold: 7
  569. }
  570. config :pleroma, :oauth2,
  571. token_expires_in: 600,
  572. issue_new_refresh_token: true,
  573. clean_expired_tokens: false
  574. config :pleroma, :database, rum_enabled: false
  575. config :pleroma, :env, Mix.env()
  576. config :http_signatures,
  577. adapter: Pleroma.Signature
  578. config :pleroma, :rate_limit,
  579. authentication: {60_000, 15},
  580. timeline: {500, 3},
  581. search: [{1000, 10}, {1000, 30}],
  582. app_account_creation: {1_800_000, 25},
  583. relations_actions: {10_000, 10},
  584. relation_id_action: {60_000, 2},
  585. statuses_actions: {10_000, 15},
  586. status_id_action: {60_000, 3},
  587. password_reset: {1_800_000, 5},
  588. account_confirmation_resend: {8_640_000, 5},
  589. ap_routes: {60_000, 15}
  590. config :pleroma, Pleroma.ActivityExpiration, enabled: true
  591. config :pleroma, Pleroma.Plugs.RemoteIp, enabled: true
  592. config :pleroma, :static_fe, enabled: false
  593. # Example of frontend configuration
  594. # This example will make us serve the primary frontend from the
  595. # frontends directory within your `:pleroma, :instance, static_dir`.
  596. # e.g., instance/static/frontends/pleroma/develop/
  597. #
  598. # With no frontend configuration, the bundled files from the `static` directory will
  599. # be used.
  600. #
  601. # config :pleroma, :frontends,
  602. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  603. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  604. # available: %{...}
  605. config :pleroma, :frontends,
  606. available: %{
  607. "kenoma" => %{
  608. "name" => "kenoma",
  609. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  610. "build_url" =>
  611. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  612. "ref" => "master"
  613. },
  614. "pleroma-fe" => %{
  615. "name" => "pleroma-fe",
  616. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  617. "build_url" =>
  618. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  619. "ref" => "develop"
  620. },
  621. "fedi-fe" => %{
  622. "name" => "fedi-fe",
  623. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  624. "build_url" =>
  625. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  626. "ref" => "master"
  627. },
  628. "admin-fe" => %{
  629. "name" => "admin-fe",
  630. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  631. "build_url" =>
  632. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  633. "ref" => "develop"
  634. },
  635. "soapbox-fe" => %{
  636. "name" => "soapbox-fe",
  637. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  638. "build_url" =>
  639. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  640. "ref" => "v1.0.0",
  641. "build_dir" => "static"
  642. }
  643. }
  644. config :pleroma, :web_cache_ttl,
  645. activity_pub: nil,
  646. activity_pub_question: 30_000
  647. config :pleroma, :modules, runtime_dir: "instance/modules"
  648. config :pleroma, configurable_from_database: false
  649. config :pleroma, Pleroma.Repo,
  650. parameters: [gin_fuzzy_search_limit: "500"],
  651. prepare: :unnamed
  652. config :pleroma, :connections_pool,
  653. reclaim_multiplier: 0.1,
  654. connection_acquisition_wait: 250,
  655. connection_acquisition_retries: 5,
  656. max_connections: 250,
  657. max_idle_time: 30_000,
  658. retry: 0,
  659. await_up_timeout: 5_000
  660. config :pleroma, :pools,
  661. federation: [
  662. size: 50,
  663. max_waiting: 10,
  664. timeout: 10_000
  665. ],
  666. media: [
  667. size: 50,
  668. max_waiting: 10,
  669. timeout: 10_000
  670. ],
  671. upload: [
  672. size: 25,
  673. max_waiting: 5,
  674. timeout: 15_000
  675. ],
  676. default: [
  677. size: 10,
  678. max_waiting: 2,
  679. timeout: 5_000
  680. ]
  681. config :pleroma, :hackney_pools,
  682. federation: [
  683. max_connections: 50,
  684. timeout: 150_000
  685. ],
  686. media: [
  687. max_connections: 50,
  688. timeout: 150_000
  689. ],
  690. upload: [
  691. max_connections: 25,
  692. timeout: 300_000
  693. ]
  694. private_instance? = :if_instance_is_private
  695. config :pleroma, :restrict_unauthenticated,
  696. timelines: %{local: private_instance?, federated: private_instance?},
  697. profiles: %{local: private_instance?, remote: private_instance?},
  698. activities: %{local: private_instance?, remote: private_instance?}
  699. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  700. config :pleroma, :mrf,
  701. policies: Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
  702. transparency: true,
  703. transparency_exclusions: []
  704. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  705. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  706. config :pleroma, :instances_favicons, enabled: false
  707. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  708. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  709. # Import environment specific config. This must remain at the bottom
  710. # of this file so it overrides the configuration defined above.
  711. import_config "#{Mix.env()}.exs"