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 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
17 # Configures the endpoint
18 config :pleroma, Pleroma.Web.Endpoint,
19 url: [host: "localhost"],
21 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
22 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
23 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
25 # Configures Elixir's Logger
26 config :logger, :console,
27 format: "$time $metadata[$level] $message\n",
28 metadata: [:request_id]
30 config :mime, :types, %{
31 "application/xml" => ["xml"],
32 "application/xrd+xml" => ["xrd+xml"],
33 "application/activity+json" => ["activity+json"],
34 "application/ld+json" => ["activity+json"]
37 config :pleroma, :websub, Pleroma.Web.Websub
38 config :pleroma, :ostatus, Pleroma.Web.OStatus
39 config :pleroma, :httpoison, Pleroma.HTTP
42 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
43 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
45 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
48 # Configures http settings, upstream proxy etc.
49 config :pleroma, :http, proxy_url: nil
51 config :pleroma, :instance,
54 email: "example@example.com",
55 description: "A Pleroma instance, an alternative fediverse server",
57 upload_limit: 16_000_000,
58 registrations_open: true,
60 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
62 quarantined_instances: []
65 theme: "pleroma-dark",
66 logo: "/static/logo.png",
67 background: "/static/aurora_borealis.jpg",
68 redirect_root_no_login: "/main/all",
69 redirect_root_login: "/main/friends",
70 show_instance_panel: true,
71 show_who_to_follow_panel: false,
72 who_to_follow_provider: "https://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-osa-api.cgi?{{host}}+{{user}}",
73 who_to_follow_link: "https://vinayaka.distsn.org/?{{host}}+{{user}}",
74 scope_options_enabled: false
76 config :pleroma, :activitypub,
78 unfollow_blocked: true,
81 config :pleroma, :user, deny_follow_blocked: true
83 config :pleroma, :mrf_rejectnonpublic,
84 allow_followersonly: false,
87 config :pleroma, :mrf_simple,
90 federated_timeline_removal: [],
94 config :pleroma, :media_proxy,
96 redirect_on_failure: true
98 # base_url: "https://cache.pleroma.social"
100 config :pleroma, :chat, enabled: true
102 config :ecto, json_library: Jason
104 config :phoenix, :format_encoders, json: Jason
106 config :pleroma, :gopher,
111 # Import environment specific config. This must remain at the bottom
112 # of this file so it overrides the configuration defined above.
113 import_config "#{Mix.env()}.exs"