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,
14 uploader: Pleroma.Uploaders.Local,
17 config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
19 config :pleroma, Pleroma.Uploaders.S3, s3_bucket: nil
21 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
23 config :pleroma, :uri_schemes, additionnal_schemes: []
25 # Configures the endpoint
26 config :pleroma, Pleroma.Web.Endpoint,
27 url: [host: "localhost"],
29 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
30 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
31 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
33 # Configures Elixir's Logger
34 config :logger, :console,
35 format: "$time $metadata[$level] $message\n",
36 metadata: [:request_id]
38 config :mime, :types, %{
39 "application/xml" => ["xml"],
40 "application/xrd+xml" => ["xrd+xml"],
41 "application/activity+json" => ["activity+json"],
42 "application/ld+json" => ["activity+json"]
45 config :pleroma, :websub, Pleroma.Web.Websub
46 config :pleroma, :ostatus, Pleroma.Web.OStatus
47 config :pleroma, :httpoison, Pleroma.HTTP
50 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
51 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
53 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
56 # Configures http settings, upstream proxy etc.
57 config :pleroma, :http, proxy_url: nil
59 config :pleroma, :instance,
62 email: "example@example.com",
63 description: "A Pleroma instance, an alternative fediverse server",
65 upload_limit: 16_000_000,
66 registrations_open: true,
69 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
71 quarantined_instances: []
74 theme: "pleroma-dark",
75 logo: "/static/logo.png",
78 background: "/static/aurora_borealis.jpg",
79 redirect_root_no_login: "/main/all",
80 redirect_root_login: "/main/friends",
81 show_instance_panel: true,
82 scope_options_enabled: false,
83 collapse_message_with_subject: false
85 config :pleroma, :activitypub,
87 unfollow_blocked: true,
90 config :pleroma, :user, deny_follow_blocked: true
92 config :pleroma, :mrf_rejectnonpublic,
93 allow_followersonly: false,
96 config :pleroma, :mrf_simple,
99 federated_timeline_removal: [],
103 config :pleroma, :media_proxy,
105 redirect_on_failure: true
107 # base_url: "https://cache.pleroma.social"
109 config :pleroma, :chat, enabled: true
111 config :ecto, json_library: Jason
113 config :phoenix, :format_encoders, json: Jason
115 config :pleroma, :gopher,
120 config :pleroma, :suggestions,
123 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
125 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
127 # Import environment specific config. This must remain at the bottom
128 # of this file so it overrides the configuration defined above.
129 import_config "#{Mix.env()}.exs"