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.

99 lines
2.6KB

  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/xml" => ["xml"],
  24. "application/xrd+xml" => ["xrd+xml"],
  25. "application/activity+json" => ["activity+json"],
  26. "application/ld+json" => ["activity+json"]
  27. }
  28. config :pleroma, :websub, Pleroma.Web.Websub
  29. config :pleroma, :ostatus, Pleroma.Web.OStatus
  30. config :pleroma, :httpoison, Pleroma.HTTP
  31. version =
  32. with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
  33. "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
  34. else
  35. _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
  36. end
  37. # Configures http settings, upstream proxy etc.
  38. config :pleroma, :http, proxy_url: nil
  39. config :pleroma, :instance,
  40. version: version,
  41. name: "Pleroma",
  42. email: "example@example.com",
  43. limit: 5000,
  44. upload_limit: 16_000_000,
  45. registrations_open: true,
  46. federating: true,
  47. rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
  48. public: true,
  49. quarantined_instances: []
  50. config :pleroma, :activitypub,
  51. accept_blocks: true,
  52. unfollow_blocked: true,
  53. outgoing_blocks: true
  54. config :pleroma, :user, deny_follow_blocked: true
  55. config :pleroma, :mrf_rejectnonpublic,
  56. allow_followersonly: false,
  57. allow_direct: false
  58. config :pleroma, :mrf_simple,
  59. media_removal: [],
  60. media_nsfw: [],
  61. federated_timeline_removal: [],
  62. reject: [],
  63. accept: []
  64. config :pleroma, :media_proxy,
  65. enabled: false,
  66. redirect_on_failure: true
  67. # base_url: "https://cache.pleroma.social"
  68. config :pleroma, :chat, enabled: true
  69. config :ecto, json_library: Jason
  70. config :phoenix, :format_encoders, json: Jason
  71. config :pleroma, :gopher,
  72. enabled: false,
  73. ip: {0, 0, 0, 0},
  74. port: 9999
  75. # Import environment specific config. This must remain at the bottom
  76. # of this file so it overrides the configuration defined above.
  77. import_config "#{Mix.env()}.exs"