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,
19 uploads_url: "{{base_url}}/media/{{file}}"
21 config :pleroma, Pleroma.Uploaders.S3,
23 public_endpoint: "https://s3.amazonaws.com",
24 force_media_proxy: false
26 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
28 config :pleroma, :uri_schemes,
46 # Configures the endpoint
47 config :pleroma, Pleroma.Web.Endpoint,
48 url: [host: "localhost"],
50 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
51 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
52 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
53 secure_cookie_flag: true
55 # Configures Elixir's Logger
56 config :logger, :console,
57 format: "$time $metadata[$level] $message\n",
58 metadata: [:request_id]
60 config :mime, :types, %{
61 "application/xml" => ["xml"],
62 "application/xrd+xml" => ["xrd+xml"],
63 "application/activity+json" => ["activity+json"],
64 "application/ld+json" => ["activity+json"]
67 config :pleroma, :websub, Pleroma.Web.Websub
68 config :pleroma, :ostatus, Pleroma.Web.OStatus
69 config :pleroma, :httpoison, Pleroma.HTTP
72 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
73 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
75 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
78 # Configures http settings, upstream proxy etc.
79 config :pleroma, :http, proxy_url: nil
81 config :pleroma, :instance,
84 email: "example@example.com",
85 description: "A Pleroma instance, an alternative fediverse server",
87 upload_limit: 16_000_000,
88 registrations_open: true,
91 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
93 quarantined_instances: [],
95 allowed_post_formats: [
100 finmoji_enabled: true,
101 mrf_transparency: true
103 config :pleroma, :markup,
104 # XXX - unfortunately, inline images must be enabled by default right now, because
105 # of custom emoji. Issue #275 discusses defanging that somehow.
106 allow_inline_images: true,
107 allow_headings: false,
111 Pleroma.HTML.Transform.MediaProxy,
112 Pleroma.HTML.Scrubber.Default
115 config :pleroma, :fe,
116 theme: "pleroma-dark",
117 logo: "/static/logo.png",
119 logo_margin: "0.1em",
120 background: "/static/aurora_borealis.jpg",
121 redirect_root_no_login: "/main/all",
122 redirect_root_login: "/main/friends",
123 show_instance_panel: true,
124 scope_options_enabled: false,
125 formatting_options_enabled: false,
126 collapse_message_with_subject: false,
127 hide_post_stats: false,
128 hide_user_stats: false
130 config :pleroma, :activitypub,
132 unfollow_blocked: true,
133 outgoing_blocks: true,
134 follow_handshake_timeout: 500
136 config :pleroma, :user, deny_follow_blocked: true
138 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
140 config :pleroma, :mrf_rejectnonpublic,
141 allow_followersonly: false,
144 config :pleroma, :mrf_simple,
147 federated_timeline_removal: [],
151 config :pleroma, :media_proxy,
153 redirect_on_failure: true
155 # base_url: "https://cache.pleroma.social"
157 config :pleroma, :chat, enabled: true
159 config :ecto, json_library: Jason
161 config :phoenix, :format_encoders, json: Jason
163 config :pleroma, :gopher,
168 config :pleroma, :suggestions,
171 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
174 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
176 # Import environment specific config. This must remain at the bottom
177 # of this file so it overrides the configuration defined above.
178 import_config "#{Mix.env()}.exs"