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.

159 lines
4.3KB

  1. # This file is responsible for configuring your application
  2. # and its dependencies with the aid of the Mix.Config module.
  3. #
  4. # This configuration file is loaded before any dependency and
  5. # is restricted to this project.
  6. use Mix.Config
  7. # General application configuration
  8. config :pleroma, ecto_repos: [Pleroma.Repo]
  9. config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
  10. config :pleroma, Pleroma.Upload,
  11. uploader: Pleroma.Uploaders.Local,
  12. strip_exif: false
  13. config :pleroma, Pleroma.Uploaders.Local,
  14. uploads: "uploads",
  15. uploads_url: "{{base_url}}/media/{{file}}"
  16. config :pleroma, Pleroma.Uploaders.S3,
  17. bucket: nil,
  18. public_endpoint: "https://s3.amazonaws.com"
  19. config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
  20. config :pleroma, :uri_schemes, additionnal_schemes: []
  21. # Configures the endpoint
  22. config :pleroma, Pleroma.Web.Endpoint,
  23. url: [host: "localhost"],
  24. protocol: "https",
  25. secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  26. render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  27. pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
  28. secure_cookie_flag: true
  29. # Configures Elixir's Logger
  30. config :logger, :console,
  31. format: "$time $metadata[$level] $message\n",
  32. metadata: [:request_id]
  33. config :mime, :types, %{
  34. "application/xml" => ["xml"],
  35. "application/xrd+xml" => ["xrd+xml"],
  36. "application/activity+json" => ["activity+json"],
  37. "application/ld+json" => ["activity+json"]
  38. }
  39. config :pleroma, :websub, Pleroma.Web.Websub
  40. config :pleroma, :ostatus, Pleroma.Web.OStatus
  41. config :pleroma, :httpoison, Pleroma.HTTP
  42. version =
  43. with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
  44. "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
  45. else
  46. _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
  47. end
  48. # Configures http settings, upstream proxy etc.
  49. config :pleroma, :http, proxy_url: nil
  50. config :pleroma, :instance,
  51. version: version,
  52. name: "Pleroma",
  53. email: "example@example.com",
  54. description: "A Pleroma instance, an alternative fediverse server",
  55. limit: 5000,
  56. upload_limit: 16_000_000,
  57. registrations_open: true,
  58. federating: true,
  59. allow_relay: true,
  60. rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
  61. public: true,
  62. quarantined_instances: [],
  63. managed_config: true,
  64. allowed_post_formats: [
  65. "text/plain",
  66. "text/html",
  67. "text/markdown"
  68. ],
  69. mrf_transparency: true
  70. config :pleroma, :markup,
  71. # XXX - unfortunately, inline images must be enabled by default right now, because
  72. # of custom emoji. Issue #275 discusses defanging that somehow.
  73. allow_inline_images: true,
  74. allow_headings: false,
  75. allow_tables: false,
  76. allow_fonts: false,
  77. scrub_policy: [
  78. Pleroma.HTML.Transform.MediaProxy,
  79. Pleroma.HTML.Scrubber.Default
  80. ]
  81. config :pleroma, :fe,
  82. theme: "pleroma-dark",
  83. logo: "/static/logo.png",
  84. logo_mask: true,
  85. logo_margin: "0.1em",
  86. background: "/static/aurora_borealis.jpg",
  87. redirect_root_no_login: "/main/all",
  88. redirect_root_login: "/main/friends",
  89. show_instance_panel: true,
  90. scope_options_enabled: false,
  91. formatting_options_enabled: false,
  92. collapse_message_with_subject: false
  93. config :pleroma, :activitypub,
  94. accept_blocks: true,
  95. unfollow_blocked: true,
  96. outgoing_blocks: true,
  97. follow_handshake_timeout: 500
  98. config :pleroma, :user, deny_follow_blocked: true
  99. config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
  100. config :pleroma, :mrf_rejectnonpublic,
  101. allow_followersonly: false,
  102. allow_direct: false
  103. config :pleroma, :mrf_simple,
  104. media_removal: [],
  105. media_nsfw: [],
  106. federated_timeline_removal: [],
  107. reject: [],
  108. accept: []
  109. config :pleroma, :media_proxy,
  110. enabled: false,
  111. redirect_on_failure: true
  112. # base_url: "https://cache.pleroma.social"
  113. config :pleroma, :chat, enabled: true
  114. config :ecto, json_library: Jason
  115. config :phoenix, :format_encoders, json: Jason
  116. config :pleroma, :gopher,
  117. enabled: false,
  118. ip: {0, 0, 0, 0},
  119. port: 9999
  120. config :pleroma, :suggestions,
  121. enabled: false,
  122. third_party_engine:
  123. "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
  124. timeout: 300_000,
  125. limit: 23,
  126. web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
  127. # Import environment specific config. This must remain at the bottom
  128. # of this file so it overrides the configuration defined above.
  129. import_config "#{Mix.env()}.exs"