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.

87 lines
2.4KB

  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, uploads: "uploads"
  11. # Configures the endpoint
  12. config :pleroma, Pleroma.Web.Endpoint,
  13. url: [host: "localhost"],
  14. protocol: "https",
  15. secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  16. render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  17. pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
  18. # Configures Elixir's Logger
  19. config :logger, :console,
  20. format: "$time $metadata[$level] $message\n",
  21. metadata: [:request_id]
  22. config :mime, :types, %{
  23. "application/xrd+xml" => ["xrd+xml"],
  24. "application/activity+json" => ["activity+json"],
  25. "application/ld+json" => ["activity+json"]
  26. }
  27. config :pleroma, :websub, Pleroma.Web.Websub
  28. config :pleroma, :ostatus, Pleroma.Web.OStatus
  29. config :pleroma, :httpoison, Pleroma.HTTP
  30. version =
  31. with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
  32. "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
  33. else
  34. _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
  35. end
  36. # Configures http settings, upstream proxy etc.
  37. config :pleroma, :http, proxy_url: nil
  38. config :pleroma, :instance,
  39. version: version,
  40. name: "Pleroma",
  41. email: "example@example.com",
  42. limit: 5000,
  43. upload_limit: 16_000_000,
  44. registrations_open: true,
  45. federating: true,
  46. rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
  47. public: true
  48. config :pleroma, :activitypub, accept_blocks: true
  49. config :pleroma, :mrf_simple,
  50. media_removal: [],
  51. media_nsfw: [],
  52. federated_timeline_removal: [],
  53. reject: []
  54. config :pleroma, :media_proxy,
  55. enabled: false,
  56. redirect_on_failure: true
  57. # base_url: "https://cache.pleroma.social"
  58. config :pleroma, :chat, enabled: true
  59. config :ecto, json_library: Jason
  60. config :phoenix, :format_encoders, json: Jason
  61. config :pleroma, :gopher,
  62. enabled: false,
  63. ip: {0, 0, 0, 0},
  64. port: 9999
  65. # Import environment specific config. This must remain at the bottom
  66. # of this file so it overrides the configuration defined above.
  67. import_config "#{Mix.env()}.exs"