Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.1KB

  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. }
  26. config :pleroma, :websub, Pleroma.Web.Websub
  27. config :pleroma, :ostatus, Pleroma.Web.OStatus
  28. config :pleroma, :httpoison, Pleroma.HTTP
  29. version =
  30. with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
  31. "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
  32. else
  33. _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
  34. end
  35. # Configures http settings, upstream proxy etc.
  36. config :pleroma, :http, proxy_url: nil
  37. config :pleroma, :instance,
  38. version: version,
  39. name: "Pleroma",
  40. email: "example@example.com",
  41. limit: 5000,
  42. registrations_open: true,
  43. federating: true
  44. config :pleroma, :media_proxy,
  45. enabled: false,
  46. redirect_on_failure: true
  47. # base_url: "https://cache.pleroma.social"
  48. config :pleroma, :chat, enabled: true
  49. config :ecto, json_library: Jason
  50. config :phoenix, :format_encoders, json: Jason
  51. config :pleroma, :gopher,
  52. enabled: false,
  53. ip: {0, 0, 0, 0},
  54. port: 9999
  55. # Import environment specific config. This must remain at the bottom
  56. # of this file so it overrides the configuration defined above.
  57. import_config "#{Mix.env()}.exs"