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
9 config :pleroma, ecto_repos: [Pleroma.Repo]
11 config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
13 config :pleroma, Pleroma.Upload, uploads: "uploads"
15 # Configures the endpoint
16 config :pleroma, Pleroma.Web.Endpoint,
17 url: [host: "localhost"],
19 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
20 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
21 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
23 # Configures Elixir's Logger
24 config :logger, :console,
25 format: "$time $metadata[$level] $message\n",
26 metadata: [:request_id]
28 config :mime, :types, %{
29 "application/xrd+xml" => ["xrd+xml"],
30 "application/activity+json" => ["activity+json"]
33 config :pleroma, :websub, Pleroma.Web.Websub
34 config :pleroma, :ostatus, Pleroma.Web.OStatus
35 config :pleroma, :httpoison, Pleroma.HTTP
38 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
39 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
41 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
44 # Configures http settings, upstream proxy etc.
45 config :pleroma, :http, proxy_url: nil
47 config :pleroma, :instance,
50 email: "example@example.com",
52 registrations_open: true,
55 config :pleroma, :media_proxy,
57 redirect_on_failure: true
59 # base_url: "https://cache.pleroma.social"
61 config :pleroma, :chat, enabled: true
63 config :ecto, json_library: Jason
65 config :phoenix, :format_encoders, json: Jason
67 # Import environment specific config. This must remain at the bottom
68 # of this file so it overrides the configuration defined above.
69 import_config "#{Mix.env()}.exs"