config.exs 1.71 KB
Newer Older
lain's avatar
lain committed
1
2
3
4
5
6
7
8
9
10
11
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config

# General application configuration
config :pleroma,
  ecto_repos: [Pleroma.Repo]

lain's avatar
lain committed
12
13
14
config :pleroma, Pleroma.Upload,
  uploads: "uploads"

lain's avatar
lain committed
15
16
17
# Configures the endpoint
config :pleroma, Pleroma.Web.Endpoint,
  url: [host: "localhost"],
lain's avatar
lain committed
18
  protocol: "https",
lain's avatar
lain committed
19
20
21
22
23
24
25
26
27
28
  secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
  render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
  pubsub: [name: Pleroma.PubSub,
           adapter: Phoenix.PubSub.PG2]

# Configures Elixir's Logger
config :logger, :console,
  format: "$time $metadata[$level] $message\n",
  metadata: [:request_id]

lain's avatar
lain committed
29
30
31
32
config :mime, :types, %{
  "application/xrd+xml" => ["xrd+xml"]
}

lain's avatar
lain committed
33
34
config :pleroma, :websub, Pleroma.Web.Websub
config :pleroma, :ostatus, Pleroma.Web.OStatus
35
config :pleroma, :httpoison, Pleroma.HTTP
36

lain's avatar
lain committed
37
38
39
40
41
42
version = with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
            "Pleroma #{String.trim(version)}"
          else
            _ -> "Pleroma dev"
          end

jeff's avatar
docs    
jeff committed
43
# Configures http settings, upstream proxy etc.
44
config :pleroma, :http,
jeff's avatar
jeff committed
45
  proxy_url: nil
46

lain's avatar
lain committed
47
48
49
config :pleroma, :instance,
  version: version,
  name: "Pleroma",
50
  email: "example@example.com",
51
52
  limit: 5000,
  registrations_open: true
lain's avatar
lain committed
53

54
55
56
57
58
config :pleroma, :media_proxy,
  enabled: false,
  redirect_on_failure: true
  #base_url: "https://cache.pleroma.social"

lain's avatar
lain committed
59
60
61
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env}.exs"