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.

105 lines
2.9KB

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