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 config :pleroma, :uri_schemes, additionnal_schemes: []
21 # Configures the endpoint
22 config :pleroma, Pleroma.Web.Endpoint,
23 url: [host: "localhost"],
25 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
26 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
27 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
28 secure_cookie_flag: true
30 # Configures Elixir's Logger
31 config :logger, :console,
32 format: "$time $metadata[$level] $message\n",
33 metadata: [:request_id]
35 config :mime, :types, %{
36 "application/xml" => ["xml"],
37 "application/xrd+xml" => ["xrd+xml"],
38 "application/activity+json" => ["activity+json"],
39 "application/ld+json" => ["activity+json"]
42 config :pleroma, :websub, Pleroma.Web.Websub
43 config :pleroma, :ostatus, Pleroma.Web.OStatus
44 config :pleroma, :httpoison, Pleroma.HTTP
47 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
48 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
50 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
53 # Configures http settings, upstream proxy etc.
54 config :pleroma, :http, proxy_url: nil
56 config :pleroma, :instance,
59 email: "example@example.com",
60 description: "A Pleroma instance, an alternative fediverse server",
62 upload_limit: 16_000_000,
63 registrations_open: true,
66 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
68 quarantined_instances: []
71 theme: "pleroma-dark",
72 logo: "/static/logo.png",
73 background: "/static/aurora_borealis.jpg",
74 redirect_root_no_login: "/main/all",
75 redirect_root_login: "/main/friends",
76 show_instance_panel: true,
77 scope_options_enabled: false,
78 collapse_message_with_subject: false
80 config :pleroma, :activitypub,
82 unfollow_blocked: true,
85 config :pleroma, :user, deny_follow_blocked: true
87 config :pleroma, :mrf_rejectnonpublic,
88 allow_followersonly: false,
91 config :pleroma, :mrf_simple,
94 federated_timeline_removal: [],
98 config :pleroma, :media_proxy,
100 redirect_on_failure: true
102 # base_url: "https://cache.pleroma.social"
104 config :pleroma, :chat, enabled: true
106 config :ecto, json_library: Jason
108 config :phoenix, :format_encoders, json: Jason
110 config :pleroma, :gopher,
115 config :pleroma, :suggestions,
118 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
120 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
122 # Import environment specific config. This must remain at the bottom
123 # of this file so it overrides the configuration defined above.
124 import_config "#{Mix.env()}.exs"