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"
25 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
27 config :pleroma, :uri_schemes,
45 # Configures the endpoint
46 config :pleroma, Pleroma.Web.Endpoint,
47 url: [host: "localhost"],
49 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
50 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
51 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
52 secure_cookie_flag: true
54 # Configures Elixir's Logger
55 config :logger, :console,
56 format: "$time $metadata[$level] $message\n",
57 metadata: [:request_id]
59 config :mime, :types, %{
60 "application/xml" => ["xml"],
61 "application/xrd+xml" => ["xrd+xml"],
62 "application/activity+json" => ["activity+json"],
63 "application/ld+json" => ["activity+json"]
66 config :pleroma, :websub, Pleroma.Web.Websub
67 config :pleroma, :ostatus, Pleroma.Web.OStatus
68 config :pleroma, :httpoison, Pleroma.HTTP
71 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
72 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
74 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
77 # Configures http settings, upstream proxy etc.
78 config :pleroma, :http, proxy_url: nil
80 config :pleroma, :instance,
83 email: "example@example.com",
84 description: "A Pleroma instance, an alternative fediverse server",
86 upload_limit: 16_000_000,
87 registrations_open: true,
90 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
92 quarantined_instances: [],
94 allowed_post_formats: [
99 finmoji_enabled: true,
100 mrf_transparency: true
102 config :pleroma, :markup,
103 # XXX - unfortunately, inline images must be enabled by default right now, because
104 # of custom emoji. Issue #275 discusses defanging that somehow.
105 allow_inline_images: true,
106 allow_headings: false,
110 Pleroma.HTML.Transform.MediaProxy,
111 Pleroma.HTML.Scrubber.Default
114 config :pleroma, :fe,
115 theme: "pleroma-dark",
116 logo: "/static/logo.png",
118 logo_margin: "0.1em",
119 background: "/static/aurora_borealis.jpg",
120 redirect_root_no_login: "/main/all",
121 redirect_root_login: "/main/friends",
122 show_instance_panel: true,
123 scope_options_enabled: false,
124 formatting_options_enabled: false,
125 collapse_message_with_subject: false,
126 hide_post_stats: false,
127 hide_user_stats: false
129 config :pleroma, :activitypub,
131 unfollow_blocked: true,
132 outgoing_blocks: true,
133 follow_handshake_timeout: 500
135 config :pleroma, :user, deny_follow_blocked: true
137 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
139 config :pleroma, :mrf_rejectnonpublic,
140 allow_followersonly: false,
143 config :pleroma, :mrf_simple,
146 federated_timeline_removal: [],
150 config :pleroma, :media_proxy,
152 redirect_on_failure: true
154 # base_url: "https://cache.pleroma.social"
156 config :pleroma, :chat, enabled: true
158 config :ecto, json_library: Jason
160 config :phoenix, :format_encoders, json: Jason
162 config :pleroma, :gopher,
167 config :pleroma, :suggestions,
170 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
173 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
175 # Import environment specific config. This must remain at the bottom
176 # of this file so it overrides the configuration defined above.
177 import_config "#{Mix.env()}.exs"