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,
21 public_endpoint: "https://s3.amazonaws.com"
23 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
25 config :pleroma, :uri_schemes, additionnal_schemes: []
27 # Configures the endpoint
28 config :pleroma, Pleroma.Web.Endpoint,
29 url: [host: "localhost"],
31 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
32 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
33 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
35 # Configures Elixir's Logger
36 config :logger, :console,
37 format: "$time $metadata[$level] $message\n",
38 metadata: [:request_id]
40 config :mime, :types, %{
41 "application/xml" => ["xml"],
42 "application/xrd+xml" => ["xrd+xml"],
43 "application/activity+json" => ["activity+json"],
44 "application/ld+json" => ["activity+json"]
47 config :pleroma, :websub, Pleroma.Web.Websub
48 config :pleroma, :ostatus, Pleroma.Web.OStatus
49 config :pleroma, :httpoison, Pleroma.HTTP
52 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
53 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
55 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
58 # Configures http settings, upstream proxy etc.
59 config :pleroma, :http, proxy_url: nil
61 config :pleroma, :instance,
64 email: "example@example.com",
65 description: "A Pleroma instance, an alternative fediverse server",
67 upload_limit: 16_000_000,
68 registrations_open: true,
71 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
73 quarantined_instances: [],
77 theme: "pleroma-dark",
78 logo: "/static/logo.png",
81 background: "/static/aurora_borealis.jpg",
82 redirect_root_no_login: "/main/all",
83 redirect_root_login: "/main/friends",
84 show_instance_panel: true,
85 scope_options_enabled: false,
86 collapse_message_with_subject: false
88 config :pleroma, :activitypub,
90 unfollow_blocked: true,
93 config :pleroma, :user, deny_follow_blocked: true
95 config :pleroma, :mrf_rejectnonpublic,
96 allow_followersonly: false,
99 config :pleroma, :mrf_simple,
102 federated_timeline_removal: [],
106 config :pleroma, :media_proxy,
108 redirect_on_failure: true
110 # base_url: "https://cache.pleroma.social"
112 config :pleroma, :chat, enabled: true
114 config :ecto, json_library: Jason
116 config :phoenix, :format_encoders, json: Jason
118 config :pleroma, :gopher,
123 config :pleroma, :suggestions,
126 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
128 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
130 # Import environment specific config. This must remain at the bottom
131 # of this file so it overrides the configuration defined above.
132 import_config "#{Mix.env()}.exs"