1 # This file is responsible for configuring your application
2 # and its dependencies with the aid of the Mix.Config module.
4 # This configuration file is loaded before any dependency and
5 # is restricted to this project.
8 # General application configuration
10 ecto_repos: [Pleroma.Repo]
12 config :pleroma, Pleroma.Repo,
13 types: Pleroma.PostgresTypes
15 config :pleroma, Pleroma.Upload,
18 # Configures the endpoint
19 config :pleroma, Pleroma.Web.Endpoint,
20 url: [host: "localhost"],
22 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
23 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
24 pubsub: [name: Pleroma.PubSub,
25 adapter: Phoenix.PubSub.PG2]
27 # Configures Elixir's Logger
28 config :logger, :console,
29 format: "$time $metadata[$level] $message\n",
30 metadata: [:request_id]
32 config :mime, :types, %{
33 "application/xrd+xml" => ["xrd+xml"],
34 "application/activity+json" => ["activity+json"]
37 config :pleroma, :websub, Pleroma.Web.Websub
38 config :pleroma, :ostatus, Pleroma.Web.OStatus
39 config :pleroma, :httpoison, Pleroma.HTTP
41 version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
42 "Pleroma #{String.trim(version)}"
47 # Configures http settings, upstream proxy etc.
48 config :pleroma, :http,
51 config :pleroma, :instance,
54 email: "example@example.com",
56 registrations_open: true,
59 config :pleroma, :media_proxy,
61 redirect_on_failure: true
62 #base_url: "https://cache.pleroma.social"
64 config :pleroma, :chat,
67 config :ecto, json_library: Jason
69 config :phoenix, :format_encoders,
72 # Import environment specific config. This must remain at the bottom
73 # of this file so it overrides the configuration defined above.
74 import_config "#{Mix.env}.exs"