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.

834 line
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. instrumenters: [Pleroma.Web.Endpoint.Instrumenter],
  116. url: [host: "localhost"],
  117. http: [
  118. ip: {127, 0, 0, 1},
  119. dispatch: [
  120. {:_,
  121. [
  122. {"/api/fedsocket/v1", Pleroma.Web.FedSockets.IncomingHandler, []},
  123. {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
  124. {"/websocket", Phoenix.Endpoint.CowboyWebSocket,
  125. {Phoenix.Transports.WebSocket,
  126. {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
  127. {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
  128. ]}
  129. ]
  130. ],
  131. protocol: "https",
  132. secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  133. signing_salt: "CqaoopA2",
  134. render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  135. pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
  136. secure_cookie_flag: true,
  137. extra_cookie_attrs: [
  138. "SameSite=Lax"
  139. ]
  140. config :pleroma, :fed_sockets,
  141. enabled: false,
  142. connection_duration: :timer.hours(8),
  143. rejection_duration: :timer.minutes(15),
  144. fed_socket_fetches: [
  145. default: 12_000,
  146. interval: 3_000,
  147. lazy: false
  148. ]
  149. # Configures Elixir's Logger
  150. config :logger, :console,
  151. level: :debug,
  152. format: "\n$time $metadata[$level] $message\n",
  153. metadata: [:request_id]
  154. config :logger, :ex_syslogger,
  155. level: :debug,
  156. ident: "pleroma",
  157. format: "$metadata[$level] $message",
  158. metadata: [:request_id]
  159. config :quack,
  160. level: :warn,
  161. meta: [:all],
  162. webhook_url: "https://hooks.slack.com/services/YOUR-KEY-HERE"
  163. config :mime, :types, %{
  164. "application/xml" => ["xml"],
  165. "application/xrd+xml" => ["xrd+xml"],
  166. "application/jrd+json" => ["jrd+json"],
  167. "application/activity+json" => ["activity+json"],
  168. "application/ld+json" => ["activity+json"]
  169. }
  170. config :tesla, adapter: Tesla.Adapter.Hackney
  171. # Configures http settings, upstream proxy etc.
  172. config :pleroma, :http,
  173. proxy_url: nil,
  174. send_user_agent: true,
  175. user_agent: :default,
  176. adapter: []
  177. config :pleroma, :instance,
  178. name: "Pleroma",
  179. email: "example@example.com",
  180. notify_email: "noreply@example.com",
  181. description: "Pleroma: An efficient and flexible fediverse server",
  182. background_image: "/images/city.jpg",
  183. instance_thumbnail: "/instance/thumbnail.jpeg",
  184. limit: 5_000,
  185. description_limit: 5_000,
  186. chat_limit: 5_000,
  187. remote_limit: 100_000,
  188. upload_limit: 16_000_000,
  189. avatar_upload_limit: 2_000_000,
  190. background_upload_limit: 4_000_000,
  191. banner_upload_limit: 4_000_000,
  192. poll_limits: %{
  193. max_options: 20,
  194. max_option_chars: 200,
  195. min_expiration: 0,
  196. max_expiration: 365 * 24 * 60 * 60
  197. },
  198. registrations_open: true,
  199. invites_enabled: false,
  200. account_activation_required: false,
  201. account_approval_required: false,
  202. federating: true,
  203. federation_incoming_replies_max_depth: 100,
  204. federation_reachability_timeout_days: 7,
  205. federation_publisher_modules: [
  206. Pleroma.Web.ActivityPub.Publisher
  207. ],
  208. allow_relay: true,
  209. public: true,
  210. quarantined_instances: [],
  211. static_dir: "instance/static/",
  212. allowed_post_formats: [
  213. "text/plain",
  214. "text/html",
  215. "text/markdown",
  216. "text/bbcode"
  217. ],
  218. autofollowed_nicknames: [],
  219. max_pinned_statuses: 1,
  220. attachment_links: false,
  221. max_report_comment_size: 1000,
  222. safe_dm_mentions: false,
  223. healthcheck: false,
  224. remote_post_retention_days: 90,
  225. skip_thread_containment: true,
  226. limit_to_local_content: :unauthenticated,
  227. user_bio_length: 5000,
  228. user_name_length: 100,
  229. max_account_fields: 10,
  230. max_remote_account_fields: 20,
  231. account_field_name_length: 512,
  232. account_field_value_length: 2048,
  233. registration_reason_length: 500,
  234. external_user_synchronization: true,
  235. extended_nickname_format: true,
  236. cleanup_attachments: false,
  237. multi_factor_authentication: [
  238. totp: [
  239. # digits 6 or 8
  240. digits: 6,
  241. period: 30
  242. ],
  243. backup_codes: [
  244. number: 5,
  245. length: 16
  246. ]
  247. ],
  248. show_reactions: true
  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. federator_incoming: 50,
  502. federator_outgoing: 50,
  503. ingestion_queue: 50,
  504. web_push: 50,
  505. mailer: 10,
  506. transmogrifier: 20,
  507. scheduled_activities: 10,
  508. background: 5,
  509. remote_fetcher: 2,
  510. attachments_cleanup: 5,
  511. new_users_digest: 1
  512. ],
  513. plugins: [Oban.Plugins.Pruner],
  514. crontab: [
  515. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  516. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
  517. ]
  518. config :pleroma, :workers,
  519. retries: [
  520. federator_incoming: 5,
  521. federator_outgoing: 5
  522. ]
  523. config :pleroma, Pleroma.Formatter,
  524. class: false,
  525. rel: "ugc",
  526. new_window: false,
  527. truncate: false,
  528. strip_prefix: false,
  529. extra: true,
  530. validate_tld: :no_scheme
  531. config :pleroma, :ldap,
  532. enabled: System.get_env("LDAP_ENABLED") == "true",
  533. host: System.get_env("LDAP_HOST") || "localhost",
  534. port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
  535. ssl: System.get_env("LDAP_SSL") == "true",
  536. sslopts: [],
  537. tls: System.get_env("LDAP_TLS") == "true",
  538. tlsopts: [],
  539. base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
  540. uid: System.get_env("LDAP_UID") || "cn"
  541. config :esshd,
  542. enabled: false
  543. oauth_consumer_strategies =
  544. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  545. |> to_string()
  546. |> String.split()
  547. |> Enum.map(&hd(String.split(&1, ":")))
  548. ueberauth_providers =
  549. for strategy <- oauth_consumer_strategies do
  550. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  551. strategy_module = String.to_atom(strategy_module_name)
  552. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  553. end
  554. config :ueberauth,
  555. Ueberauth,
  556. base_path: "/oauth",
  557. providers: ueberauth_providers
  558. config :pleroma,
  559. :auth,
  560. enforce_oauth_admin_scope_usage: true,
  561. oauth_consumer_strategies: oauth_consumer_strategies
  562. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  563. config :pleroma, Pleroma.Emails.UserEmail,
  564. logo: nil,
  565. styling: %{
  566. link_color: "#d8a070",
  567. background_color: "#2C3645",
  568. content_background_color: "#1B2635",
  569. header_color: "#d8a070",
  570. text_color: "#b9b9ba",
  571. text_muted_color: "#b9b9ba"
  572. }
  573. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  574. config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics"
  575. config :pleroma, Pleroma.ScheduledActivity,
  576. daily_user_limit: 25,
  577. total_user_limit: 300,
  578. enabled: true
  579. config :pleroma, :email_notifications,
  580. digest: %{
  581. active: false,
  582. interval: 7,
  583. inactivity_threshold: 7
  584. }
  585. config :pleroma, :oauth2,
  586. token_expires_in: 600,
  587. issue_new_refresh_token: true,
  588. clean_expired_tokens: false
  589. config :pleroma, :database, rum_enabled: false
  590. config :pleroma, :env, Mix.env()
  591. config :http_signatures,
  592. adapter: Pleroma.Signature
  593. config :pleroma, :rate_limit,
  594. authentication: {60_000, 15},
  595. timeline: {500, 3},
  596. search: [{1000, 10}, {1000, 30}],
  597. app_account_creation: {1_800_000, 25},
  598. relations_actions: {10_000, 10},
  599. relation_id_action: {60_000, 2},
  600. statuses_actions: {10_000, 15},
  601. status_id_action: {60_000, 3},
  602. password_reset: {1_800_000, 5},
  603. account_confirmation_resend: {8_640_000, 5},
  604. ap_routes: {60_000, 15}
  605. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  606. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  607. enabled: true,
  608. headers: ["x-forwarded-for"],
  609. proxies: [],
  610. reserved: [
  611. "127.0.0.0/8",
  612. "::1/128",
  613. "fc00::/7",
  614. "10.0.0.0/8",
  615. "172.16.0.0/12",
  616. "192.168.0.0/16"
  617. ]
  618. config :pleroma, :static_fe, enabled: false
  619. # Example of frontend configuration
  620. # This example will make us serve the primary frontend from the
  621. # frontends directory within your `:pleroma, :instance, static_dir`.
  622. # e.g., instance/static/frontends/pleroma/develop/
  623. #
  624. # With no frontend configuration, the bundled files from the `static` directory will
  625. # be used.
  626. #
  627. # config :pleroma, :frontends,
  628. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  629. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  630. # available: %{...}
  631. config :pleroma, :frontends,
  632. available: %{
  633. "kenoma" => %{
  634. "name" => "kenoma",
  635. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  636. "build_url" =>
  637. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  638. "ref" => "master"
  639. },
  640. "pleroma-fe" => %{
  641. "name" => "pleroma-fe",
  642. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  643. "build_url" =>
  644. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  645. "ref" => "develop"
  646. },
  647. "fedi-fe" => %{
  648. "name" => "fedi-fe",
  649. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  650. "build_url" =>
  651. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build",
  652. "ref" => "master"
  653. },
  654. "admin-fe" => %{
  655. "name" => "admin-fe",
  656. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  657. "build_url" =>
  658. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  659. "ref" => "develop"
  660. },
  661. "soapbox-fe" => %{
  662. "name" => "soapbox-fe",
  663. "git" => "https://gitlab.com/soapbox-pub/soapbox-fe",
  664. "build_url" =>
  665. "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production",
  666. "ref" => "v1.0.0",
  667. "build_dir" => "static"
  668. }
  669. }
  670. config :pleroma, :web_cache_ttl,
  671. activity_pub: nil,
  672. activity_pub_question: 30_000
  673. config :pleroma, :modules, runtime_dir: "instance/modules"
  674. config :pleroma, configurable_from_database: false
  675. config :pleroma, Pleroma.Repo,
  676. parameters: [gin_fuzzy_search_limit: "500"],
  677. prepare: :unnamed
  678. config :pleroma, :connections_pool,
  679. reclaim_multiplier: 0.1,
  680. connection_acquisition_wait: 250,
  681. connection_acquisition_retries: 5,
  682. max_connections: 250,
  683. max_idle_time: 30_000,
  684. retry: 0,
  685. connect_timeout: 5_000
  686. config :pleroma, :pools,
  687. federation: [
  688. size: 50,
  689. max_waiting: 10,
  690. recv_timeout: 10_000
  691. ],
  692. media: [
  693. size: 50,
  694. max_waiting: 20,
  695. recv_timeout: 15_000
  696. ],
  697. upload: [
  698. size: 25,
  699. max_waiting: 5,
  700. recv_timeout: 15_000
  701. ],
  702. default: [
  703. size: 10,
  704. max_waiting: 2,
  705. recv_timeout: 5_000
  706. ]
  707. config :pleroma, :hackney_pools,
  708. federation: [
  709. max_connections: 50,
  710. timeout: 150_000
  711. ],
  712. media: [
  713. max_connections: 50,
  714. timeout: 150_000
  715. ],
  716. upload: [
  717. max_connections: 25,
  718. timeout: 300_000
  719. ]
  720. private_instance? = :if_instance_is_private
  721. config :pleroma, :restrict_unauthenticated,
  722. timelines: %{local: private_instance?, federated: private_instance?},
  723. profiles: %{local: private_instance?, remote: private_instance?},
  724. activities: %{local: private_instance?, remote: private_instance?}
  725. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  726. config :pleroma, :mrf,
  727. policies: Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
  728. transparency: true,
  729. transparency_exclusions: []
  730. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  731. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  732. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  733. config :pleroma, :instances_favicons, enabled: false
  734. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  735. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  736. # Import environment specific config. This must remain at the bottom
  737. # of this file so it overrides the configuration defined above.
  738. import_config "#{Mix.env()}.exs"