Fix migration.
[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.Repo,
13 types: Pleroma.PostgresTypes
14
15 config :pleroma, Pleroma.Upload,
16 uploads: "uploads"
17
18 # Configures the endpoint
19 config :pleroma, Pleroma.Web.Endpoint,
20 url: [host: "localhost"],
21 protocol: "https",
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]
26
27 # Configures Elixir's Logger
28 config :logger, :console,
29 format: "$time $metadata[$level] $message\n",
30 metadata: [:request_id]
31
32 config :mime, :types, %{
33 "application/xrd+xml" => ["xrd+xml"],
34 "application/activity+json" => ["activity+json"]
35 }
36
37 config :pleroma, :websub, Pleroma.Web.Websub
38 config :pleroma, :ostatus, Pleroma.Web.OStatus
39 config :pleroma, :httpoison, Pleroma.HTTP
40
41 version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
42 "Pleroma #{String.trim(version)}"
43 else
44 _ -> "Pleroma dev"
45 end
46
47 # Configures http settings, upstream proxy etc.
48 config :pleroma, :http,
49 proxy_url: nil
50
51 config :pleroma, :instance,
52 version: version,
53 name: "Pleroma",
54 email: "example@example.com",
55 limit: 5000,
56 registrations_open: true,
57 federating: true
58
59 config :pleroma, :media_proxy,
60 enabled: false,
61 redirect_on_failure: true
62 #base_url: "https://cache.pleroma.social"
63
64 config :pleroma, :chat,
65 enabled: true
66
67 config :ecto, json_library: Jason
68
69 config :phoenix, :format_encoders,
70 json: Jason
71
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"