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,
17 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
19 # Configures the endpoint
20 config :pleroma, Pleroma.Web.Endpoint,
21 url: [host: "localhost"],
23 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
24 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
25 pubsub: [name: Pleroma.PubSub, 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/xml" => ["xml"],
34 "application/xrd+xml" => ["xrd+xml"],
35 "application/activity+json" => ["activity+json"],
36 "application/ld+json" => ["activity+json"]
39 config :pleroma, :websub, Pleroma.Web.Websub
40 config :pleroma, :ostatus, Pleroma.Web.OStatus
41 config :pleroma, :httpoison, Pleroma.HTTP
44 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
45 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
47 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
50 # Configures http settings, upstream proxy etc.
51 config :pleroma, :http, proxy_url: nil
53 config :pleroma, :instance,
56 email: "example@example.com",
58 upload_limit: 16_000_000,
59 registrations_open: true,
61 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
63 quarantined_instances: []
65 config :pleroma, :activitypub,
67 unfollow_blocked: true,
70 config :pleroma, :user, deny_follow_blocked: true
72 config :pleroma, :mrf_rejectnonpublic,
73 allow_followersonly: false,
76 config :pleroma, :mrf_simple,
79 federated_timeline_removal: [],
83 config :pleroma, :media_proxy,
85 redirect_on_failure: true
87 # base_url: "https://cache.pleroma.social"
89 config :pleroma, :chat, enabled: true
91 config :ecto, json_library: Jason
93 config :phoenix, :format_encoders, json: Jason
95 config :pleroma, :gopher,
100 # Import environment specific config. This must remain at the bottom
101 # of this file so it overrides the configuration defined above.
102 import_config "#{Mix.env()}.exs"