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.

848 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. config :pleroma, :fed_sockets,
  139. enabled: false,
  140. connection_duration: :timer.hours(8),
  141. rejection_duration: :timer.minutes(15),
  142. fed_socket_fetches: [
  143. default: 12_000,
  144. interval: 3_000,
  145. lazy: false
  146. ]
  147. # Configures Elixir's Logger
  148. config :logger, :console,
  149. level: :debug,
  150. format: "\n$time $metadata[$level] $message\n",
  151. metadata: [:request_id]
  152. config :logger, :ex_syslogger,
  153. level: :debug,
  154. ident: "pleroma",
  155. format: "$metadata[$level] $message",
  156. metadata: [:request_id]
  157. config :quack,
  158. level: :warn,
  159. meta: [:all],
  160. webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
  161. config :mime, :types, %{
  162. "application/xml" => ["xml"],
  163. "application/xrd+xml" => ["xrd+xml"],
  164. "application/jrd+json" => ["jrd+json"],
  165. "application/activity+json" => ["activity+json"],
  166. "application/ld+json" => ["activity+json"]
  167. }
  168. config :tesla, adapter: Tesla.Adapter.Hackney
  169. # Configures http settings, upstream proxy etc.
  170. config :pleroma, :http,
  171. proxy_url: nil,
  172. send_user_agent: true,
  173. user_agent: :default,
  174. adapter: []
  175. config :pleroma, :instance,
  176. name: "Pleroma",
  177. email: "example@example.com",
  178. notify_email: "noreply@example.com",
  179. description: "Pleroma: An efficient and flexible fediverse server",
  180. background_image: "/images/city.jpg",
  181. instance_thumbnail: "/instance/thumbnail.jpeg",
  182. limit: 5_000,
  183. description_limit: 5_000,
  184. chat_limit: 5_000,
  185. remote_limit: 100_000,
  186. upload_limit: 16_000_000,
  187. avatar_upload_limit: 2_000_000,
  188. background_upload_limit: 4_000_000,
  189. banner_upload_limit: 4_000_000,
  190. poll_limits: %{
  191. max_options: 20,
  192. max_option_chars: 200,
  193. min_expiration: 0,
  194. max_expiration: 365 * 24 * 60 * 60
  195. },
  196. registrations_open: true,
  197. invites_enabled: false,
  198. account_activation_required: false,
  199. account_approval_required: false,
  200. federating: true,
  201. federation_incoming_replies_max_depth: 100,
  202. federation_reachability_timeout_days: 7,
  203. federation_publisher_modules: [
  204. Pleroma.Web.ActivityPub.Publisher
  205. ],
  206. allow_relay: true,
  207. public: true,
  208. quarantined_instances: [],
  209. static_dir: "instance/static/",
  210. allowed_post_formats: [
  211. "text/plain",
  212. "text/html",
  213. "text/markdown",
  214. "text/bbcode"
  215. ],
  216. autofollowed_nicknames: [],
  217. autofollowing_nicknames: [],
  218. max_pinned_statuses: 1,
  219. attachment_links: false,
  220. max_report_comment_size: 1000,
  221. safe_dm_mentions: false,
  222. healthcheck: false,
  223. remote_post_retention_days: 90,
  224. skip_thread_containment: true,
  225. limit_to_local_content: :unauthenticated,
  226. user_bio_length: 5000,
  227. user_name_length: 100,
  228. max_account_fields: 10,
  229. max_remote_account_fields: 20,
  230. account_field_name_length: 512,
  231. account_field_value_length: 2048,
  232. registration_reason_length: 500,
  233. external_user_synchronization: true,
  234. extended_nickname_format: true,
  235. cleanup_attachments: false,
  236. multi_factor_authentication: [
  237. totp: [
  238. # digits 6 or 8
  239. digits: 6,
  240. period: 30
  241. ],
  242. backup_codes: [
  243. number: 5,
  244. length: 16
  245. ]
  246. ],
  247. show_reactions: true,
  248. search_function: :websearch
  249. config :pleroma, :welcome,
  250. direct_message: [
  251. enabled: false,
  252. sender_nickname: nil,
  253. message: nil
  254. ],
  255. chat_message: [
  256. enabled: false,
  257. sender_nickname: nil,
  258. message: nil
  259. ],
  260. email: [
  261. enabled: false,
  262. sender: nil,
  263. subject: "Welcome to <%= instance_name %>",
  264. html: "Welcome to <%= instance_name %>",
  265. text: "Welcome to <%= instance_name %>"
  266. ]
  267. config :pleroma, :feed,
  268. post_title: %{
  269. max_length: 100,
  270. omission: "..."
  271. }
  272. config :pleroma, :markup,
  273. # XXX - unfortunately, inline images must be enabled by default right now, because
  274. # of custom emoji. Issue #275 discusses defanging that somehow.
  275. allow_inline_images: true,
  276. allow_headings: false,
  277. allow_tables: false,
  278. allow_fonts: false,
  279. scrub_policy: [
  280. Pleroma.HTML.Scrubber.Default,
  281. Pleroma.HTML.Transform.MediaProxy
  282. ]
  283. config :pleroma, :frontend_configurations,
  284. pleroma_fe: %{
  285. alwaysShowSubjectInput: true,
  286. background: "/images/city.jpg",
  287. collapseMessageWithSubject: false,
  288. disableChat: false,
  289. greentext: false,
  290. hideFilteredStatuses: false,
  291. hideMutedPosts: false,
  292. hidePostStats: false,
  293. hideSitename: false,
  294. hideUserStats: false,
  295. loginMethod: "password",
  296. logo: "/static/logo.png",
  297. logoMargin: ".1em",
  298. logoMask: true,
  299. minimalScopesMode: false,
  300. noAttachmentLinks: false,
  301. nsfwCensorImage: "",
  302. postContentType: "text/plain",
  303. redirectRootLogin: "/main/friends",
  304. redirectRootNoLogin: "/main/all",
  305. scopeCopy: true,
  306. sidebarRight: false,
  307. showFeaturesPanel: true,
  308. showInstanceSpecificPanel: false,
  309. subjectLineBehavior: "email",
  310. theme: "pleroma-dark",
  311. webPushNotifications: false
  312. },
  313. masto_fe: %{
  314. showInstanceSpecificPanel: true
  315. }
  316. config :pleroma, :assets,
  317. mascots: [
  318. pleroma_fox_tan: %{
  319. url: "/images/pleroma-fox-tan-smol.png",
  320. mime_type: "image/png"
  321. },
  322. pleroma_fox_tan_shy: %{
  323. url: "/images/pleroma-fox-tan-shy.png",
  324. mime_type: "image/png"
  325. }
  326. ],
  327. default_mascot: :pleroma_fox_tan
  328. config :pleroma, :manifest,
  329. icons: [
  330. %{
  331. src: "/static/logo.png",
  332. type: "image/png"
  333. }
  334. ],
  335. theme_color: "#282c37",
  336. background_color: "#191b22"
  337. config :pleroma, :activitypub,
  338. unfollow_blocked: true,
  339. outgoing_blocks: true,
  340. follow_handshake_timeout: 500,
  341. note_replies_output_limit: 5,
  342. sign_object_fetches: true,
  343. authorized_fetch_mode: false
  344. config :pleroma, :streamer,
  345. workers: 3,
  346. overflow_workers: 2
  347. config :pleroma, :user, deny_follow_blocked: true
  348. config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
  349. config :pleroma, :mrf_rejectnonpublic,
  350. allow_followersonly: false,
  351. allow_direct: false
  352. config :pleroma, :mrf_hellthread,
  353. delist_threshold: 10,
  354. reject_threshold: 20
  355. config :pleroma, :mrf_simple,
  356. media_removal: [],
  357. media_nsfw: [],
  358. federated_timeline_removal: [],
  359. report_removal: [],
  360. reject: [],
  361. followers_only: [],
  362. accept: [],
  363. avatar_removal: [],
  364. banner_removal: [],
  365. reject_deletes: []
  366. config :pleroma, :mrf_keyword,
  367. reject: [],
  368. federated_timeline_removal: [],
  369. replace: []
  370. config :pleroma, :mrf_subchain, match_actor: %{}
  371. config :pleroma, :mrf_activity_expiration, days: 365
  372. config :pleroma, :mrf_vocabulary,
  373. accept: [],
  374. reject: []
  375. # threshold of 7 days
  376. config :pleroma, :mrf_object_age,
  377. threshold: 604_800,
  378. actions: [:delist, :strip_followers]
  379. config :pleroma, :rich_media,
  380. enabled: true,
  381. ignore_hosts: [],
  382. ignore_tld: ["local", "localdomain", "lan"],
  383. parsers: [
  384. Pleroma.Web.RichMedia.Parsers.TwitterCard,
  385. Pleroma.Web.RichMedia.Parsers.OEmbed
  386. ],
  387. failure_backoff: 60_000,
  388. ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
  389. config :pleroma, :media_proxy,
  390. enabled: false,
  391. invalidation: [
  392. enabled: false,
  393. provider: Pleroma.Web.MediaProxy.Invalidation.Script
  394. ],
  395. proxy_opts: [
  396. redirect_on_failure: false,
  397. max_body_length: 25 * 1_048_576,
  398. # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
  399. max_read_duration: 30_000,
  400. http: [
  401. follow_redirect: true,
  402. pool: :media
  403. ]
  404. ],
  405. whitelist: []
  406. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
  407. method: :purge,
  408. headers: [],
  409. options: []
  410. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
  411. # Note: media preview proxy depends on media proxy to be enabled
  412. config :pleroma, :media_preview_proxy,
  413. enabled: false,
  414. thumbnail_max_width: 600,
  415. thumbnail_max_height: 600,
  416. image_quality: 85,
  417. min_content_length: 100 * 1024
  418. config :pleroma, :chat, enabled: true
  419. config :phoenix, :format_encoders, json: Jason
  420. config :phoenix, :json_library, Jason
  421. config :phoenix, :filter_parameters, ["password", "confirm"]
  422. config :pleroma, :gopher,
  423. enabled: false,
  424. ip: {0, 0, 0, 0},
  425. port: 9999
  426. config :pleroma, Pleroma.Web.Metadata,
  427. providers: [
  428. Pleroma.Web.Metadata.Providers.OpenGraph,
  429. Pleroma.Web.Metadata.Providers.TwitterCard
  430. ],
  431. unfurl_nsfw: false
  432. config :pleroma, Pleroma.Web.Preload,
  433. providers: [
  434. Pleroma.Web.Preload.Providers.Instance
  435. ]
  436. config :pleroma, :http_security,
  437. enabled: true,
  438. sts: false,
  439. sts_max_age: 31_536_000,
  440. ct_max_age: 2_592_000,
  441. referrer_policy: "same-origin"
  442. config :cors_plug,
  443. max_age: 86_400,
  444. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  445. expose: [
  446. "Link",
  447. "X-RateLimit-Reset",
  448. "X-RateLimit-Limit",
  449. "X-RateLimit-Remaining",
  450. "X-Request-Id",
  451. "Idempotency-Key"
  452. ],
  453. credentials: true,
  454. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  455. config :pleroma, Pleroma.User,
  456. restricted_nicknames: [
  457. ".well-known",
  458. "~",
  459. "about",
  460. "activities",
  461. "api",
  462. "auth",
  463. "check_password",
  464. "dev",
  465. "friend-requests",
  466. "inbox",
  467. "internal",
  468. "main",
  469. "media",
  470. "nodeinfo",
  471. "notice",
  472. "oauth",
  473. "objects",
  474. "ostatus_subscribe",
  475. "pleroma",
  476. "proxy",
  477. "push",
  478. "registration",
  479. "relay",
  480. "settings",
  481. "status",
  482. "tag",
  483. "user-search",
  484. "user_exists",
  485. "users",
  486. "web",
  487. "verify_credentials",
  488. "update_credentials",
  489. "relationships",
  490. "search",
  491. "confirmation_resend",
  492. "mfa"
  493. ],
  494. email_blacklist: []
  495. config :pleroma, Oban,
  496. repo: Pleroma.Repo,
  497. log: false,
  498. queues: [
  499. activity_expiration: 10,
  500. token_expiration: 5,
  501. backup: 1,
  502. federator_incoming: 50,
  503. federator_outgoing: 50,
  504. ingestion_queue: 50,
  505. web_push: 50,
  506. mailer: 10,
  507. transmogrifier: 20,
  508. scheduled_activities: 10,
  509. background: 5,
  510. remote_fetcher: 2,
  511. attachments_cleanup: 5,
  512. new_users_digest: 1,
  513. mute_expire: 5
  514. ],
  515. plugins: [Oban.Plugins.Pruner],
  516. crontab: [
  517. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  518. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  519. ]
  520. config :pleroma, :workers,
  521. retries: [
  522. federator_incoming: 5,
  523. federator_outgoing: 5
  524. ]
  525. config :pleroma, Pleroma.Formatter,
  526. class: false,
  527. rel: "ugc",
  528. new_window: false,
  529. truncate: false,
  530. strip_prefix: false,
  531. extra: true,
  532. validate_tld: :no_scheme
  533. config :pleroma, :ldap,
  534. enabled: System.get_env("LDAP_ENABLED") == "true",
  535. host: System.get_env("LDAP_HOST") || "localhost",
  536. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  537. ssl: System.get_env("LDAP_SSL") == "true",
  538. sslopts: [],
  539. tls: System.get_env("LDAP_TLS") == "true",
  540. tlsopts: [],
  541. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  542. uid: System.get_env("LDAP_UID") || "cn"
  543. config :esshd,
  544. enabled: false
  545. oauth_consumer_strategies =
  546. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  547. |> to_string()
  548. |> String.split()
  549. |> Enum.map(&hd(String.split(&1, ":")))
  550. ueberauth_providers =
  551. for strategy <- oauth_consumer_strategies do
  552. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  553. strategy_module = String.to_atom(strategy_module_name)
  554. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  555. end
  556. config :ueberauth,
  557. Ueberauth,
  558. base_path: "/oauth",
  559. providers: ueberauth_providers
  560. config :pleroma,
  561. :auth,
  562. enforce_oauth_admin_scope_usage: true,
  563. oauth_consumer_strategies: oauth_consumer_strategies
  564. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  565. config :pleroma, Pleroma.Emails.UserEmail,
  566. logo: nil,
  567. styling: %{
  568. link_color: "#d8a070",
  569. background_color: "#2C3645",
  570. content_background_color: "#1B2635",
  571. header_color: "#d8a070",
  572. text_color: "#b9b9ba",
  573. text_muted_color: "#b9b9ba"
  574. }
  575. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  576. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
  577. enabled: false,
  578. auth: false,
  579. ip_whitelist: [],
  580. path: "/api/pleroma/app_metrics",
  581. format: :text
  582. config :pleroma, Pleroma.ScheduledActivity,
  583. daily_user_limit: 25,
  584. total_user_limit: 300,
  585. enabled: true
  586. config :pleroma, :email_notifications,
  587. digest: %{
  588. active: false,
  589. interval: 7,
  590. inactivity_threshold: 7
  591. }
  592. config :pleroma, :oauth2,
  593. token_expires_in: 600,
  594. issue_new_refresh_token: true,
  595. clean_expired_tokens: false
  596. config :pleroma, :database, rum_enabled: false
  597. config :pleroma, :env, Mix.env()
  598. config :http_signatures,
  599. adapter: Pleroma.Signature
  600. config :pleroma, :rate_limit,
  601. authentication: {60_000, 15},
  602. timeline: {500, 3},
  603. search: [{1000, 10}, {1000, 30}],
  604. app_account_creation: {1_800_000, 25},
  605. relations_actions: {10_000, 10},
  606. relation_id_action: {60_000, 2},
  607. statuses_actions: {10_000, 15},
  608. status_id_action: {60_000, 3},
  609. password_reset: {1_800_000, 5},
  610. account_confirmation_resend: {8_640_000, 5},
  611. ap_routes: {60_000, 15}
  612. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  613. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  614. enabled: true,
  615. headers: ["x-forwarded-for"],
  616. proxies: [],
  617. reserved: [
  618. "127.0.0.0/8",
  619. "::1/128",
  620. "fc00::/7",
  621. "10.0.0.0/8",
  622. "172.16.0.0/12",
  623. "192.168.0.0/16"
  624. ]
  625. config :pleroma, :static_fe, enabled: false
  626. # Example of frontend configuration
  627. # This example will make us serve the primary frontend from the
  628. # frontends directory within your `:pleroma, :instance, static_dir`.
  629. # e.g., instance/static/frontends/pleroma/develop/
  630. #
  631. # With no frontend configuration, the bundled files from the `static` directory will
  632. # be used.
  633. #
  634. # config :pleroma, :frontends,
  635. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  636. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  637. # available: %{...}
  638. config :pleroma, :frontends,
  639. available: %{
  640. "kenoma" => %{
  641. "name" => "kenoma",
  642. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  643. "build_url" =>
  644. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  645. "ref" => "master"
  646. },
  647. "pleroma-fe" => %{
  648. "name" => "pleroma-fe",
  649. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  650. "build_url" =>
  651. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  652. "ref" => "develop"
  653. },
  654. "fedi-fe" => %{
  655. "name" => "fedi-fe",
  656. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  657. "build_url" =>
  658. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  659. "ref" => "master"
  660. },
  661. "admin-fe" => %{
  662. "name" => "admin-fe",
  663. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  664. "build_url" =>
  665. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  666. "ref" => "develop"
  667. },
  668. "soapbox-fe" => %{
  669. "name" => "soapbox-fe",
  670. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  671. "build_url" =>
  672. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  673. "ref" => "v1.0.0",
  674. "build_dir" => "static"
  675. }
  676. }
  677. config :pleroma, :web_cache_ttl,
  678. activity_pub: nil,
  679. activity_pub_question: 30_000
  680. config :pleroma, :modules, runtime_dir: "instance/modules"
  681. config :pleroma, configurable_from_database: false
  682. config :pleroma, Pleroma.Repo,
  683. parameters: [gin_fuzzy_search_limit: "500"],
  684. prepare: :unnamed
  685. config :pleroma, :connections_pool,
  686. reclaim_multiplier: 0.1,
  687. connection_acquisition_wait: 250,
  688. connection_acquisition_retries: 5,
  689. max_connections: 250,
  690. max_idle_time: 30_000,
  691. retry: 0,
  692. connect_timeout: 5_000
  693. config :pleroma, :pools,
  694. federation: [
  695. size: 50,
  696. max_waiting: 10,
  697. recv_timeout: 10_000
  698. ],
  699. media: [
  700. size: 50,
  701. max_waiting: 20,
  702. recv_timeout: 15_000
  703. ],
  704. upload: [
  705. size: 25,
  706. max_waiting: 5,
  707. recv_timeout: 15_000
  708. ],
  709. default: [
  710. size: 10,
  711. max_waiting: 2,
  712. recv_timeout: 5_000
  713. ]
  714. config :pleroma, :hackney_pools,
  715. federation: [
  716. max_connections: 50,
  717. timeout: 150_000
  718. ],
  719. media: [
  720. max_connections: 50,
  721. timeout: 150_000
  722. ],
  723. upload: [
  724. max_connections: 25,
  725. timeout: 300_000
  726. ]
  727. config :pleroma, :majic_pool, size: 2
  728. private_instance? = :if_instance_is_private
  729. config :pleroma, :restrict_unauthenticated,
  730. timelines: %{local: private_instance?, federated: private_instance?},
  731. profiles: %{local: private_instance?, remote: private_instance?},
  732. activities: %{local: private_instance?, remote: private_instance?}
  733. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  734. config :pleroma, :mrf,
  735. policies: [Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy, Pleroma.Web.ActivityPub.MRF.TagPolicy],
  736. transparency: true,
  737. transparency_exclusions: []
  738. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  739. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  740. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  741. config :pleroma, :instances_favicons, enabled: false
  742. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  743. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  744. config :pleroma, Pleroma.User.Backup,
  745. purge_after_days: 30,
  746. limit_days: 7,
  747. dir: nil
  748. # Import environment specific config. This must remain at the bottom
  749. # of this file so it overrides the configuration defined above.
  750. import_config "#{Mix.env()}.exs"