Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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