logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

config.exs (26195B)


  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 Config module.
  41. #
  42. # This configuration file is loaded before any dependency and
  43. # is restricted to this project.
  44. import Config
  45. # General application configuration
  46. config :pleroma, ecto_repos: [Pleroma.Repo]
  47. config :pleroma, Pleroma.Repo,
  48. telemetry_event: [Pleroma.Repo.Instrumenter],
  49. migration_lock: :pg_advisory_lock
  50. config :pleroma, Pleroma.Captcha,
  51. enabled: true,
  52. seconds_valid: 300,
  53. method: Pleroma.Captcha.Native
  54. config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
  55. # Upload configuration
  56. config :pleroma, Pleroma.Upload,
  57. uploader: Pleroma.Uploaders.Local,
  58. filters: [Pleroma.Upload.Filter.Dedupe],
  59. link_name: false,
  60. proxy_remote: false,
  61. filename_display_max_length: 30,
  62. default_description: nil,
  63. base_url: nil,
  64. allowed_mime_types: ["image", "audio", "video"]
  65. config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
  66. config :pleroma, Pleroma.Uploaders.S3,
  67. bucket: nil,
  68. bucket_namespace: nil,
  69. truncated_namespace: nil,
  70. streaming_enabled: true
  71. config :ex_aws, :s3,
  72. # host: "s3.wasabisys.com", # required if not Amazon AWS
  73. access_key_id: nil,
  74. secret_access_key: nil,
  75. # region: "us-east-1", # may be required for Amazon AWS
  76. scheme: "https://"
  77. config :pleroma, Pleroma.Uploaders.IPFS,
  78. post_gateway_url: "http://localhost:5001",
  79. get_gateway_url: "http://localhost:8080"
  80. config :pleroma, :emoji,
  81. shortcode_globs: ["/emoji/custom/**/*.png"],
  82. pack_extensions: [".png", ".gif"],
  83. groups: [
  84. Custom: ["/emoji/*.png", "/emoji/**/*.png"]
  85. ],
  86. default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json",
  87. shared_pack_cache_seconds_per_file: 60
  88. config :pleroma, :uri_schemes,
  89. valid_schemes: [
  90. "https",
  91. "http",
  92. "dat",
  93. "dweb",
  94. "gopher",
  95. "hyper",
  96. "ipfs",
  97. "ipns",
  98. "irc",
  99. "ircs",
  100. "magnet",
  101. "mailto",
  102. "mumble",
  103. "ssb",
  104. "xmpp"
  105. ]
  106. # Configures the endpoint
  107. config :pleroma, Pleroma.Web.Endpoint,
  108. url: [host: "localhost"],
  109. http: [
  110. ip: {127, 0, 0, 1}
  111. ],
  112. protocol: "https",
  113. secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  114. live_view: [signing_salt: "U5ELgdEwTD3n1+D5s0rY0AMg8/y1STxZ3Zvsl3bWh+oBcGrYdil0rXqPMRd3Glcq"],
  115. signing_salt: "CqaoopA2",
  116. render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  117. pubsub_server: Pleroma.PubSub,
  118. secure_cookie_flag: true,
  119. extra_cookie_attrs: [
  120. "SameSite=Lax"
  121. ]
  122. # Configures Elixir's Logger
  123. config :logger, backends: [:console]
  124. config :logger, :console,
  125. level: :debug,
  126. format: "\n$time $metadata[$level] $message\n",
  127. metadata: [:actor, :path, :type, :user]
  128. config :logger, :ex_syslogger,
  129. level: :debug,
  130. ident: "pleroma",
  131. format: "$metadata[$level] $message",
  132. metadata: [:actor, :path, :type, :user]
  133. config :mime, :types, %{
  134. "application/xml" => ["xml"],
  135. "application/xrd+xml" => ["xrd+xml"],
  136. "application/jrd+json" => ["jrd+json"],
  137. "application/activity+json" => ["activity+json"],
  138. "application/ld+json" => ["activity+json"],
  139. # Can be removed when bumping MIME past 2.0.5
  140. # see https://akkoma.dev/AkkomaGang/akkoma/issues/657
  141. "image/apng" => ["apng"]
  142. }
  143. config :tesla, adapter: Tesla.Adapter.Hackney
  144. # Configures http settings, upstream proxy etc.
  145. config :pleroma, :http,
  146. proxy_url: nil,
  147. send_user_agent: true,
  148. user_agent: :default,
  149. adapter: []
  150. config :pleroma, :instance,
  151. name: "Pleroma",
  152. email: "example@example.com",
  153. notify_email: "noreply@example.com",
  154. description: "Pleroma: An efficient and flexible fediverse server",
  155. short_description: "",
  156. background_image: "/images/city.jpg",
  157. instance_thumbnail: "/instance/thumbnail.jpeg",
  158. favicon: "/favicon.png",
  159. limit: 5_000,
  160. description_limit: 5_000,
  161. remote_limit: 100_000,
  162. upload_limit: 16_000_000,
  163. avatar_upload_limit: 2_000_000,
  164. background_upload_limit: 4_000_000,
  165. banner_upload_limit: 4_000_000,
  166. poll_limits: %{
  167. max_options: 20,
  168. max_option_chars: 200,
  169. min_expiration: 0,
  170. max_expiration: 365 * 24 * 60 * 60
  171. },
  172. registrations_open: true,
  173. invites_enabled: false,
  174. account_activation_required: false,
  175. account_approval_required: false,
  176. federating: true,
  177. federation_incoming_replies_max_depth: 100,
  178. allow_relay: true,
  179. public: true,
  180. quarantined_instances: [],
  181. rejected_instances: [],
  182. static_dir: "instance/static/",
  183. allowed_post_formats: [
  184. "text/plain",
  185. "text/html",
  186. "text/markdown",
  187. "text/bbcode"
  188. ],
  189. autofollowed_nicknames: [],
  190. autofollowing_nicknames: [],
  191. max_pinned_statuses: 1,
  192. attachment_links: false,
  193. max_report_comment_size: 1000,
  194. report_strip_status: true,
  195. safe_dm_mentions: false,
  196. healthcheck: false,
  197. remote_post_retention_days: 90,
  198. skip_thread_containment: true,
  199. limit_to_local_content: :unauthenticated,
  200. user_bio_length: 5000,
  201. user_name_length: 100,
  202. max_account_fields: 10,
  203. max_remote_account_fields: 20,
  204. account_field_name_length: 512,
  205. account_field_value_length: 2048,
  206. registration_reason_length: 500,
  207. external_user_synchronization: true,
  208. extended_nickname_format: true,
  209. cleanup_attachments: false,
  210. multi_factor_authentication: [
  211. totp: [
  212. # digits 6 or 8
  213. digits: 6,
  214. period: 30
  215. ],
  216. backup_codes: [
  217. number: 5,
  218. length: 16
  219. ]
  220. ],
  221. show_reactions: true,
  222. password_reset_token_validity: 60 * 60 * 24,
  223. profile_directory: true,
  224. admin_privileges: [
  225. :users_read,
  226. :users_manage_invites,
  227. :users_manage_activation_state,
  228. :users_manage_tags,
  229. :users_manage_credentials,
  230. :users_delete,
  231. :messages_read,
  232. :messages_delete,
  233. :instances_delete,
  234. :reports_manage_reports,
  235. :moderation_log_read,
  236. :announcements_manage_announcements,
  237. :emoji_manage_emoji,
  238. :statistics_read
  239. ],
  240. moderator_privileges: [:messages_delete, :reports_manage_reports],
  241. max_endorsed_users: 20,
  242. birthday_required: false,
  243. birthday_min_age: 0,
  244. max_media_attachments: 1_000
  245. config :pleroma, :welcome,
  246. direct_message: [
  247. enabled: false,
  248. sender_nickname: nil,
  249. message: nil
  250. ],
  251. chat_message: [
  252. enabled: false,
  253. sender_nickname: nil,
  254. message: nil
  255. ],
  256. email: [
  257. enabled: false,
  258. sender: nil,
  259. subject: "Welcome to <%= instance_name %>",
  260. html: "Welcome to <%= instance_name %>",
  261. text: "Welcome to <%= instance_name %>"
  262. ]
  263. config :pleroma, :feed,
  264. post_title: %{
  265. max_length: 100,
  266. omission: "..."
  267. }
  268. config :pleroma, :markup,
  269. # XXX - unfortunately, inline images must be enabled by default right now, because
  270. # of custom emoji. Issue #275 discusses defanging that somehow.
  271. allow_inline_images: true,
  272. allow_headings: false,
  273. allow_tables: false,
  274. allow_fonts: false,
  275. scrub_policy: [
  276. Pleroma.HTML.Scrubber.Default,
  277. Pleroma.HTML.Transform.MediaProxy
  278. ]
  279. config :pleroma, :frontend_configurations,
  280. pleroma_fe: %{
  281. alwaysShowSubjectInput: true,
  282. background: "/images/city.jpg",
  283. collapseMessageWithSubject: false,
  284. disableChat: false,
  285. greentext: false,
  286. embeddedToS: true,
  287. hideFilteredStatuses: false,
  288. hideMutedPosts: false,
  289. hidePostStats: false,
  290. hideSitename: false,
  291. hideUserStats: false,
  292. loginMethod: "password",
  293. logo: "/static/logo.svg",
  294. logoMargin: ".1em",
  295. logoMask: true,
  296. minimalScopesMode: false,
  297. noAttachmentLinks: false,
  298. nsfwCensorImage: "",
  299. postContentType: "text/plain",
  300. redirectRootLogin: "/main/friends",
  301. redirectRootNoLogin: "/main/all",
  302. scopeCopy: true,
  303. sidebarRight: false,
  304. showFeaturesPanel: true,
  305. showInstanceSpecificPanel: false,
  306. subjectLineBehavior: "email",
  307. theme: "pleroma-dark",
  308. webPushNotifications: false
  309. }
  310. config :pleroma, :assets,
  311. mascots: [
  312. pleroma_fox_tan: %{
  313. url: "/images/pleroma-fox-tan-smol.png",
  314. mime_type: "image/png"
  315. },
  316. pleroma_fox_tan_shy: %{
  317. url: "/images/pleroma-fox-tan-shy.png",
  318. mime_type: "image/png"
  319. }
  320. ],
  321. default_mascot: :pleroma_fox_tan
  322. config :pleroma, :manifest,
  323. icons: [
  324. %{
  325. src: "/static/logo.svg",
  326. sizes: "512x512",
  327. purpose: "any",
  328. type: "image/svg+xml"
  329. }
  330. ],
  331. theme_color: "#282c37",
  332. background_color: "#191b22"
  333. config :pleroma, :activitypub,
  334. unfollow_blocked: true,
  335. outgoing_blocks: true,
  336. blockers_visible: true,
  337. follow_handshake_timeout: 500,
  338. note_replies_output_limit: 5,
  339. sign_object_fetches: true,
  340. authorized_fetch_mode: false,
  341. client_api_enabled: false,
  342. anonymize_reporter: false,
  343. anonymize_reporter_local_nickname: ""
  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_emoji,
  371. remove_url: [],
  372. remove_shortcode: [],
  373. federated_timeline_removal_url: [],
  374. federated_timeline_removal_shortcode: []
  375. config :pleroma, :mrf_hashtag,
  376. sensitive: ["nsfw"],
  377. reject: [],
  378. federated_timeline_removal: []
  379. config :pleroma, :mrf_subchain, match_actor: %{}
  380. config :pleroma, :mrf_activity_expiration, days: 365
  381. config :pleroma, :mrf_vocabulary,
  382. accept: [],
  383. reject: []
  384. # threshold of 7 days
  385. config :pleroma, :mrf_object_age,
  386. threshold: 604_800,
  387. actions: [:delist, :strip_followers]
  388. config :pleroma, :mrf_nsfw_api,
  389. url: "http://127.0.0.1:5000/",
  390. threshold: 0.7,
  391. mark_sensitive: true,
  392. unlist: false,
  393. reject: false
  394. config :pleroma, :mrf_follow_bot, follower_nickname: nil
  395. config :pleroma, :mrf_inline_quote, template: "<bdi>RT:</bdi> {url}"
  396. config :pleroma, :mrf_remote_report,
  397. reject_all: false,
  398. reject_anonymous: true,
  399. reject_empty_message: true
  400. config :pleroma, :mrf_force_mention,
  401. mention_parent: true,
  402. mention_quoted: true
  403. config :pleroma, :mrf_antimentionspam, user_age_limit: 30_000
  404. config :pleroma, :rich_media,
  405. enabled: true,
  406. ignore_hosts: [],
  407. ignore_tld: ["local", "localdomain", "lan"],
  408. parsers: [
  409. Pleroma.Web.RichMedia.Parsers.TwitterCard,
  410. Pleroma.Web.RichMedia.Parsers.OEmbed
  411. ],
  412. timeout: 5_000,
  413. ttl_setters: [
  414. Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl,
  415. Pleroma.Web.RichMedia.Parser.TTL.Opengraph
  416. ],
  417. max_body: 5_000_000
  418. config :pleroma, :media_proxy,
  419. enabled: false,
  420. invalidation: [
  421. enabled: false,
  422. provider: Pleroma.Web.MediaProxy.Invalidation.Script
  423. ],
  424. proxy_opts: [
  425. redirect_on_failure: false,
  426. max_body_length: 25 * 1_048_576,
  427. # Note: max_read_duration defaults to Pleroma.ReverseProxy.max_read_duration_default/1
  428. max_read_duration: 30_000,
  429. http: [
  430. follow_redirect: true,
  431. pool: :media
  432. ]
  433. ],
  434. whitelist: []
  435. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
  436. method: :purge,
  437. headers: [],
  438. options: []
  439. config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script,
  440. script_path: nil,
  441. url_format: nil
  442. # Note: media preview proxy depends on media proxy to be enabled
  443. config :pleroma, :media_preview_proxy,
  444. enabled: false,
  445. thumbnail_max_width: 600,
  446. thumbnail_max_height: 600,
  447. image_quality: 85,
  448. min_content_length: 100 * 1024
  449. config :pleroma, :shout,
  450. enabled: true,
  451. limit: 5_000
  452. config :phoenix, :format_encoders, json: Jason, "activity+json": Jason
  453. config :phoenix, :json_library, Jason
  454. config :phoenix, :filter_parameters, ["password", "confirm"]
  455. config :pleroma, :gopher,
  456. enabled: false,
  457. ip: {0, 0, 0, 0},
  458. port: 9999
  459. config :pleroma, Pleroma.Web.Metadata,
  460. providers: [
  461. Pleroma.Web.Metadata.Providers.OpenGraph,
  462. Pleroma.Web.Metadata.Providers.TwitterCard
  463. ],
  464. unfurl_nsfw: false
  465. config :pleroma, Pleroma.Web.Preload,
  466. providers: [
  467. Pleroma.Web.Preload.Providers.Instance
  468. ]
  469. config :pleroma, :http_security,
  470. enabled: true,
  471. sts: false,
  472. sts_max_age: 31_536_000,
  473. ct_max_age: 2_592_000,
  474. referrer_policy: "same-origin",
  475. allow_unsafe_eval: false
  476. config :cors_plug,
  477. max_age: 86_400,
  478. methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
  479. expose: [
  480. "Link",
  481. "X-RateLimit-Reset",
  482. "X-RateLimit-Limit",
  483. "X-RateLimit-Remaining",
  484. "X-Request-Id",
  485. "Idempotency-Key"
  486. ],
  487. credentials: true,
  488. headers: ["Authorization", "Content-Type", "Idempotency-Key"]
  489. config :pleroma, Pleroma.User,
  490. restricted_nicknames: [
  491. ".well-known",
  492. "~",
  493. "about",
  494. "activities",
  495. "api",
  496. "auth",
  497. "check_password",
  498. "dev",
  499. "friend-requests",
  500. "inbox",
  501. "internal",
  502. "main",
  503. "media",
  504. "nodeinfo",
  505. "notice",
  506. "oauth",
  507. "objects",
  508. "ostatus_subscribe",
  509. "pleroma",
  510. "proxy",
  511. "push",
  512. "registration",
  513. "relay",
  514. "settings",
  515. "status",
  516. "tag",
  517. "user-search",
  518. "user_exists",
  519. "users",
  520. "web",
  521. "verify_credentials",
  522. "update_credentials",
  523. "relationships",
  524. "search",
  525. "confirmation_resend",
  526. "mfa"
  527. ],
  528. email_blacklist: []
  529. # The Pruner :max_age must be longer than Worker :unique
  530. # value or it cannot enforce uniqueness.
  531. config :pleroma, Oban,
  532. repo: Pleroma.Repo,
  533. notifier: Oban.Notifiers.PG,
  534. log: false,
  535. queues: [
  536. activity_expiration: 10,
  537. federator_incoming: 5,
  538. federator_outgoing: 25,
  539. web_push: 50,
  540. background: 20,
  541. search_indexing: [limit: 10, paused: true],
  542. slow: 5
  543. ],
  544. plugins: [Oban.Plugins.Lazarus, {Oban.Plugins.Pruner, max_age: 900}],
  545. crontab: [
  546. {"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
  547. {"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker},
  548. {"*/10 * * * *", Pleroma.Workers.Cron.AppCleanupWorker}
  549. ]
  550. config :pleroma, Pleroma.Formatter,
  551. class: false,
  552. rel: "ugc",
  553. new_window: false,
  554. truncate: false,
  555. strip_prefix: false,
  556. extra: true,
  557. validate_tld: :no_scheme
  558. config :pleroma, :ldap,
  559. enabled: System.get_env("LDAP_ENABLED") == "true",
  560. host: System.get_env("LDAP_HOST", "localhost"),
  561. port: String.to_integer(System.get_env("LDAP_PORT", "389")),
  562. ssl: System.get_env("LDAP_SSL") == "true",
  563. sslopts: [],
  564. tls: System.get_env("LDAP_TLS") == "true",
  565. tlsopts: [],
  566. base: System.get_env("LDAP_BASE", "dc=example,dc=com"),
  567. uid: System.get_env("LDAP_UID", "cn"),
  568. # defaults to CAStore's Mozilla roots
  569. cacertfile: System.get_env("LDAP_CACERTFILE", nil),
  570. mail: System.get_env("LDAP_MAIL", "mail")
  571. oauth_consumer_strategies =
  572. System.get_env("OAUTH_CONSUMER_STRATEGIES")
  573. |> to_string()
  574. |> String.split()
  575. |> Enum.map(&hd(String.split(&1, ":")))
  576. ueberauth_providers =
  577. for strategy <- oauth_consumer_strategies do
  578. strategy_module_name = "Elixir.Ueberauth.Strategy.#{String.capitalize(strategy)}"
  579. strategy_module = String.to_atom(strategy_module_name)
  580. {String.to_atom(strategy), {strategy_module, [callback_params: ["state"]]}}
  581. end
  582. config :ueberauth,
  583. Ueberauth,
  584. base_path: "/oauth",
  585. providers: ueberauth_providers
  586. config :pleroma, :auth, oauth_consumer_strategies: oauth_consumer_strategies
  587. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Sendmail, enabled: false
  588. config :pleroma, Pleroma.Emails.UserEmail,
  589. logo: nil,
  590. styling: %{
  591. link_color: "#d8a070",
  592. background_color: "#2C3645",
  593. content_background_color: "#1B2635",
  594. header_color: "#d8a070",
  595. text_color: "#b9b9ba",
  596. text_muted_color: "#b9b9ba"
  597. }
  598. config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false
  599. config :pleroma, Pleroma.PromEx,
  600. disabled: false,
  601. manual_metrics_start_delay: :no_delay,
  602. drop_metrics_groups: [],
  603. grafana: [
  604. host: System.get_env("GRAFANA_HOST", "http://localhost:3000"),
  605. auth_token: System.get_env("GRAFANA_TOKEN"),
  606. upload_dashboards_on_start: false,
  607. folder_name: "BEAM",
  608. annotate_app_lifecycle: true
  609. ],
  610. metrics_server: [
  611. port: 4021,
  612. path: "/metrics",
  613. protocol: :http,
  614. pool_size: 5,
  615. cowboy_opts: [],
  616. auth_strategy: :none
  617. ],
  618. datasource: "Prometheus"
  619. config :pleroma, Pleroma.ScheduledActivity,
  620. daily_user_limit: 25,
  621. total_user_limit: 300,
  622. enabled: true
  623. config :pleroma, :email_notifications,
  624. digest: %{
  625. active: false,
  626. interval: 7,
  627. inactivity_threshold: 7
  628. }
  629. config :pleroma, :oauth2,
  630. token_expires_in: 3600 * 24 * 365 * 100,
  631. issue_new_refresh_token: true,
  632. clean_expired_tokens: false
  633. config :pleroma, :database, rum_enabled: false
  634. config :pleroma, :features, improved_hashtag_timeline: :auto
  635. config :pleroma, :populate_hashtags_table, fault_rate_allowance: 0.01
  636. config :pleroma, :delete_context_objects, fault_rate_allowance: 0.01
  637. config :pleroma, :env, Mix.env()
  638. config :http_signatures,
  639. adapter: Pleroma.Signature
  640. config :pleroma, :rate_limit,
  641. authentication: {60_000, 15},
  642. timeline: {500, 3},
  643. search: [{1000, 10}, {1000, 30}],
  644. app_account_creation: {1_800_000, 25},
  645. oauth_app_creation: {900_000, 5},
  646. relations_actions: {10_000, 10},
  647. relation_id_action: {60_000, 2},
  648. statuses_actions: {10_000, 15},
  649. status_id_action: {60_000, 3},
  650. password_reset: {1_800_000, 5},
  651. account_confirmation_resend: {8_640_000, 5},
  652. ap_routes: {60_000, 15}
  653. config :pleroma, Pleroma.Workers.PurgeExpiredActivity, enabled: true, min_lifetime: 600
  654. config :pleroma, Pleroma.Web.Plugs.RemoteIp,
  655. enabled: true,
  656. headers: ["x-forwarded-for"],
  657. proxies: [],
  658. reserved: [
  659. "127.0.0.0/8",
  660. "::1/128",
  661. "fc00::/7",
  662. "10.0.0.0/8",
  663. "172.16.0.0/12",
  664. "192.168.0.0/16"
  665. ]
  666. config :pleroma, :static_fe, enabled: false
  667. # Example of frontend configuration
  668. # This example will make us serve the primary frontend from the
  669. # frontends directory within your `:pleroma, :instance, static_dir`.
  670. # e.g., instance/static/frontends/pleroma/develop/
  671. #
  672. # With no frontend configuration, the bundled files from the `static` directory will
  673. # be used.
  674. #
  675. # config :pleroma, :frontends,
  676. # primary: %{"name" => "pleroma-fe", "ref" => "develop"},
  677. # admin: %{"name" => "admin-fe", "ref" => "stable"},
  678. # available: %{...}
  679. config :pleroma, :frontends,
  680. available: %{
  681. "kenoma" => %{
  682. "name" => "kenoma",
  683. "git" => "https://git.pleroma.social/lambadalambda/kenoma",
  684. "build_url" =>
  685. "https://git.pleroma.social/lambadalambda/kenoma/-/jobs/artifacts/${ref}/download?job=build",
  686. "ref" => "master"
  687. },
  688. "pleroma-fe" => %{
  689. "name" => "pleroma-fe",
  690. "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
  691. "build_url" =>
  692. "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
  693. "ref" => "develop"
  694. },
  695. "fedi-fe" => %{
  696. "name" => "fedi-fe",
  697. "git" => "https://git.pleroma.social/pleroma/fedi-fe",
  698. "build_url" =>
  699. "https://git.pleroma.social/pleroma/fedi-fe/-/jobs/artifacts/${ref}/download?job=build_release",
  700. "ref" => "master",
  701. "custom-http-headers" => [
  702. {"service-worker-allowed", "/"}
  703. ]
  704. },
  705. "admin-fe" => %{
  706. "name" => "admin-fe",
  707. "git" => "https://git.pleroma.social/pleroma/admin-fe",
  708. "build_url" =>
  709. "https://git.pleroma.social/pleroma/admin-fe/-/jobs/artifacts/${ref}/download?job=build",
  710. "ref" => "develop"
  711. },
  712. "soapbox" => %{
  713. "name" => "soapbox",
  714. "git" => "https://gitlab.com/soapbox-pub/soapbox",
  715. "build_url" =>
  716. "https://gitlab.com/soapbox-pub/soapbox/-/jobs/artifacts/${ref}/download?job=build-production",
  717. "ref" => "v3.0.0-beta.1",
  718. "build_dir" => "static"
  719. },
  720. "glitch-lily" => %{
  721. "name" => "glitch-lily",
  722. "git" => "https://lily-is.land/infra/glitch-lily",
  723. "build_url" =>
  724. "https://lily-is.land/infra/glitch-lily/-/jobs/artifacts/${ref}/download?job=build",
  725. "ref" => "servant",
  726. "build_dir" => "public"
  727. },
  728. "pl-fe" => %{
  729. "name" => "pl-fe",
  730. "git" => "https://github.com/mkljczk/pl-fe",
  731. "build_url" => "https://pl.mkljczk.pl/pl-fe.zip",
  732. "ref" => "develop",
  733. "build_dir" => "."
  734. }
  735. }
  736. config :pleroma, :web_cache_ttl,
  737. activity_pub: nil,
  738. activity_pub_question: 30_000
  739. config :pleroma, :modules, runtime_dir: "instance/modules"
  740. config :pleroma, configurable_from_database: false
  741. config :pleroma, Pleroma.Repo,
  742. parameters: [gin_fuzzy_search_limit: "500", jit: "off"],
  743. prepare: :unnamed
  744. config :pleroma, :connections_pool,
  745. reclaim_multiplier: 0.1,
  746. connection_acquisition_wait: 250,
  747. connection_acquisition_retries: 5,
  748. max_connections: 250,
  749. max_idle_time: 30_000,
  750. retry: 0,
  751. connect_timeout: 5_000
  752. config :pleroma, :pools,
  753. federation: [
  754. size: 75,
  755. max_waiting: 20,
  756. recv_timeout: 10_000
  757. ],
  758. media: [
  759. size: 75,
  760. max_waiting: 20,
  761. recv_timeout: 15_000
  762. ],
  763. rich_media: [
  764. size: 25,
  765. max_waiting: 20,
  766. recv_timeout: 15_000
  767. ],
  768. upload: [
  769. size: 25,
  770. max_waiting: 20,
  771. recv_timeout: 15_000
  772. ],
  773. default: [
  774. size: 50,
  775. max_waiting: 2,
  776. recv_timeout: 5_000
  777. ]
  778. config :pleroma, :hackney_pools,
  779. federation: [
  780. max_connections: 50,
  781. timeout: 10_000
  782. ],
  783. media: [
  784. max_connections: 50,
  785. timeout: 15_000
  786. ],
  787. rich_media: [
  788. max_connections: 50,
  789. timeout: 15_000
  790. ],
  791. upload: [
  792. max_connections: 25,
  793. timeout: 15_000
  794. ]
  795. config :pleroma, :majic_pool, size: 2
  796. private_instance? = :if_instance_is_private
  797. config :pleroma, :restrict_unauthenticated,
  798. timelines: %{local: private_instance?, federated: private_instance?},
  799. profiles: %{local: private_instance?, remote: private_instance?},
  800. activities: %{local: private_instance?, remote: private_instance?}
  801. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
  802. config :pleroma, :mrf,
  803. policies: [
  804. Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
  805. Pleroma.Web.ActivityPub.MRF.TagPolicy,
  806. Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy
  807. ],
  808. transparency: true,
  809. transparency_exclusions: []
  810. config :tzdata, :http_client, Pleroma.HTTP.Tzdata
  811. config :ex_aws, http_client: Pleroma.HTTP.ExAws
  812. config :web_push_encryption, http_client: Pleroma.HTTP.WebPush
  813. config :pleroma, :instances_favicons, enabled: false
  814. config :floki, :html_parser, Floki.HTMLParser.FastHtml
  815. config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
  816. config :pleroma, Pleroma.User.Backup,
  817. purge_after_days: 30,
  818. limit_days: 7,
  819. dir: nil,
  820. process_chunk_size: 100,
  821. timeout: :timer.minutes(30)
  822. config :pleroma, ConcurrentLimiter, [
  823. {Pleroma.Search, [max_running: 30, max_waiting: 50]}
  824. ]
  825. config :pleroma, Pleroma.Web.WebFinger, domain: nil, update_nickname_on_user_fetch: true
  826. config :pleroma, Pleroma.Search, module: Pleroma.Search.DatabaseSearch
  827. config :pleroma, Pleroma.Search.Meilisearch,
  828. url: "http://127.0.0.1:7700/",
  829. private_key: nil,
  830. initial_indexing_chunk_size: 100_000
  831. config :pleroma, Pleroma.Application,
  832. background_migrators: true,
  833. internal_fetch: true,
  834. load_custom_modules: true,
  835. max_restarts: 3,
  836. streamer_registry: true
  837. config :pleroma, Pleroma.Uploaders.Uploader, timeout: 30_000
  838. config :pleroma, Pleroma.Search.QdrantSearch,
  839. qdrant_url: "http://127.0.0.1:6333/",
  840. qdrant_api_key: "",
  841. openai_url: "http://127.0.0.1:11345",
  842. # The healthcheck url has to be set to nil when used with the real openai
  843. # API, as it doesn't have a healthcheck endpoint.
  844. openai_healthcheck_url: "http://127.0.0.1:11345/health",
  845. openai_model: "snowflake/snowflake-arctic-embed-xs",
  846. openai_api_key: "",
  847. qdrant_index_configuration: %{
  848. vectors: %{size: 384, distance: "Cosine"}
  849. }
  850. # Import environment specific config. This must remain at the bottom
  851. # of this file so it overrides the configuration defined above.
  852. import_config "#{Mix.env()}.exs"