Merge branch 'feature/cross-origin' into 'develop'
[akkoma] / config / config.exs
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
8 # General application configuration
9 config :pleroma,
10 ecto_repos: [Pleroma.Repo]
11
12 config :pleroma, Pleroma.Upload,
13 uploads: "uploads"
14
15 # Configures the endpoint
16 config :pleroma, Pleroma.Web.Endpoint,
17 url: [host: "localhost"],
18 protocol: "https",
19 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
20 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
21 pubsub: [name: Pleroma.PubSub,
22 adapter: Phoenix.PubSub.PG2]
23
24 # Configures Elixir's Logger
25 config :logger, :console,
26 format: "$time $metadata[$level] $message\n",
27 metadata: [:request_id]
28
29 config :mime, :types, %{
30 "application/xrd+xml" => ["xrd+xml"]
31 }
32
33 config :pleroma, :websub, Pleroma.Web.Websub
34 config :pleroma, :ostatus, Pleroma.Web.OStatus
35 config :pleroma, :httpoison, HTTPoison
36
37 version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
38 "Pleroma #{String.trim(version)}"
39 else
40 _ -> "Pleroma dev"
41 end
42
43 config :pleroma, :instance,
44 version: version,
45 name: "Pleroma",
46 email: "example@example.com",
47 limit: 5000,
48 registrations_open: true
49
50 config :pleroma, :media_proxy,
51 enabled: false,
52 redirect_on_failure: true
53 #base_url: "https://cache.pleroma.social"
54
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"