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 method: Pleroma.Captcha.Kocaptcha
17 config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "http://localhost:9093"
19 # Upload configuration
20 config :pleroma, Pleroma.Upload,
21 uploader: Pleroma.Uploaders.Local,
26 config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
28 config :pleroma, Pleroma.Uploaders.S3,
30 public_endpoint: "https://s3.amazonaws.com"
32 config :pleroma, Pleroma.Uploaders.MDII,
33 cgi: "https://mdii.sakura.ne.jp/mdii-post.cgi",
34 files: "https://mdii.sakura.ne.jp"
36 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
38 config :pleroma, :uri_schemes,
56 # Configures the endpoint
57 config :pleroma, Pleroma.Web.Endpoint,
58 url: [host: "localhost"],
60 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
61 signing_salt: "CqaoopA2",
62 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
63 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
64 secure_cookie_flag: true
66 # Configures Elixir's Logger
67 config :logger, :console,
68 format: "$time $metadata[$level] $message\n",
69 metadata: [:request_id]
71 config :mime, :types, %{
72 "application/xml" => ["xml"],
73 "application/xrd+xml" => ["xrd+xml"],
74 "application/activity+json" => ["activity+json"],
75 "application/ld+json" => ["activity+json"]
78 config :pleroma, :websub, Pleroma.Web.Websub
79 config :pleroma, :ostatus, Pleroma.Web.OStatus
80 config :pleroma, :httpoison, Pleroma.HTTP
81 config :tesla, adapter: Tesla.Adapter.Hackney
83 # Configures http settings, upstream proxy etc.
84 config :pleroma, :http, proxy_url: nil
86 config :pleroma, :instance,
88 email: "example@example.com",
89 description: "A Pleroma instance, an alternative fediverse server",
91 upload_limit: 16_000_000,
92 avatar_upload_limit: 2_000_000,
93 background_upload_limit: 4_000_000,
94 banner_upload_limit: 4_000_000,
95 registrations_open: true,
98 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
100 quarantined_instances: [],
101 managed_config: true,
102 allowed_post_formats: [
107 finmoji_enabled: true,
108 mrf_transparency: true
110 config :pleroma, :markup,
111 # XXX - unfortunately, inline images must be enabled by default right now, because
112 # of custom emoji. Issue #275 discusses defanging that somehow.
113 allow_inline_images: true,
114 allow_headings: false,
118 Pleroma.HTML.Transform.MediaProxy,
119 Pleroma.HTML.Scrubber.Default
122 config :pleroma, :fe,
123 theme: "pleroma-dark",
124 logo: "/static/logo.png",
126 logo_margin: "0.1em",
127 background: "/static/aurora_borealis.jpg",
128 redirect_root_no_login: "/main/all",
129 redirect_root_login: "/main/friends",
130 show_instance_panel: true,
131 scope_options_enabled: false,
132 formatting_options_enabled: false,
133 collapse_message_with_subject: false,
134 hide_post_stats: false,
135 hide_user_stats: false,
137 subject_line_behavior: "email",
138 always_show_subject_input: true
140 config :pleroma, :activitypub,
142 unfollow_blocked: true,
143 outgoing_blocks: true,
144 follow_handshake_timeout: 500
146 config :pleroma, :user, deny_follow_blocked: true
148 config :pleroma, :mrf_normalize_markup, scrub_policy: Pleroma.HTML.Scrubber.Default
150 config :pleroma, :mrf_rejectnonpublic,
151 allow_followersonly: false,
154 config :pleroma, :mrf_simple,
157 federated_timeline_removal: [],
161 config :pleroma, :media_proxy,
163 # base_url: "https://cache.pleroma.social",
165 # inline_content_types: [] | false | true,
169 config :pleroma, :chat, enabled: true
171 config :ecto, json_library: Jason
173 config :phoenix, :format_encoders, json: Jason
175 config :pleroma, :gopher,
180 config :pleroma, :suggestions,
183 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
186 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
188 config :pleroma, :http_security,
191 sts_max_age: 31_536_000,
192 ct_max_age: 2_592_000,
193 referrer_policy: "same-origin"
197 methods: ["POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"],
202 "X-RateLimit-Remaining",
207 headers: ["Authorization", "Content-Type", "Idempotency-Key"]
209 # Import environment specific config. This must remain at the bottom
210 # of this file so it overrides the configuration defined above.
211 import_config "#{Mix.env()}.exs"