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.Captcha,
15 seconds_retained: 180,
16 method: Pleroma.Captcha.Kocaptcha
18 config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "https://captcha.kotobank.ch"
20 # Upload configuration
21 config :pleroma, Pleroma.Upload,
22 uploader: Pleroma.Uploaders.Local,
27 config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
29 config :pleroma, Pleroma.Uploaders.S3,
31 public_endpoint: "https://s3.amazonaws.com"
33 config :pleroma, Pleroma.Uploaders.MDII,
34 cgi: "https://mdii.sakura.ne.jp/mdii-post.cgi",
35 files: "https://mdii.sakura.ne.jp"
37 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
39 config :pleroma, :uri_schemes,
57 # Configures the endpoint
58 config :pleroma, Pleroma.Web.Endpoint,
59 url: [host: "localhost"],
64 {"/api/v1/streaming", Elixir.Pleroma.Web.MastodonAPI.WebsocketHandler, []},
65 {:_, Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}}
70 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
71 signing_salt: "CqaoopA2",
72 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
73 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
74 secure_cookie_flag: true
76 # Configures Elixir's Logger
77 config :logger, :console,
78 format: "$time $metadata[$level] $message\n",
79 metadata: [:request_id]
81 config :mime, :types, %{
82 "application/xml" => ["xml"],
83 "application/xrd+xml" => ["xrd+xml"],
84 "application/jrd+json" => ["jrd+json"],
85 "application/activity+json" => ["activity+json"],
86 "application/ld+json" => ["activity+json"]
89 config :pleroma, :websub, Pleroma.Web.Websub
90 config :pleroma, :ostatus, Pleroma.Web.OStatus
91 config :pleroma, :httpoison, Pleroma.HTTP
92 config :tesla, adapter: Tesla.Adapter.Hackney
94 # Configures http settings, upstream proxy etc.
95 config :pleroma, :http, proxy_url: nil
97 config :pleroma, :instance,
99 email: "example@example.com",
100 description: "A Pleroma instance, an alternative fediverse server",
102 upload_limit: 16_000_000,
103 avatar_upload_limit: 2_000_000,
104 background_upload_limit: 4_000_000,
105 banner_upload_limit: 4_000_000,
106 registrations_open: true,
109 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
111 quarantined_instances: [],
112 managed_config: true,
113 static_dir: "instance/static/",
114 allowed_post_formats: [
119 finmoji_enabled: true,
120 mrf_transparency: true
122 config :pleroma, :markup,
123 # XXX - unfortunately, inline images must be enabled by default right now, because
124 # of custom emoji. Issue #275 discusses defanging that somehow.
125 allow_inline_images: true,
126 allow_headings: false,
130 Pleroma.HTML.Transform.MediaProxy,
131 Pleroma.HTML.Scrubber.Default
134 config :pleroma, :fe,
135 theme: "pleroma-dark",
136 logo: "/static/logo.png",
138 logo_margin: "0.1em",
139 background: "/static/aurora_borealis.jpg",
140 redirect_root_no_login: "/main/all",
141 redirect_root_login: "/main/friends",
142 show_instance_panel: true,
143 scope_options_enabled: false,
144 formatting_options_enabled: false,
145 collapse_message_with_subject: false,
146 hide_post_stats: false,
147 hide_user_stats: false,
149 subject_line_behavior: "email",
150 always_show_subject_input: true
152 config :pleroma, :activitypub,
154 unfollow_blocked: true,
155 outgoing_blocks: true,
156 follow_handshake_timeout: 500
158 config :pleroma, :user, deny_follow_blocked: true
160 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
162 config :pleroma, :mrf_rejectnonpublic,
163 allow_followersonly: false,
166 config :pleroma, :mrf_simple,
169 federated_timeline_removal: [],
173 config :pleroma, :media_proxy,
175 # base_url: "https://cache.pleroma.social",
177 # inline_content_types: [] | false | true,
181 config :pleroma, :chat, enabled: true
183 config :ecto, json_library: Jason
185 config :phoenix, :format_encoders, json: Jason
187 config :pleroma, :gopher,
192 config :pleroma, :suggestions,
195 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
198 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
200 config :pleroma, :http_security,
203 sts_max_age: 31_536_000,
204 ct_max_age: 2_592_000,
205 referrer_policy: "same-origin"
209 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
214 "X-RateLimit-Remaining",
219 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
221 # Import environment specific config. This must remain at the bottom
222 # of this file so it overrides the configuration defined above.
223 import_config "#{Mix.env()}.exs"