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, additionnal_schemes: []
29 # Configures the endpoint
30 config :pleroma, Pleroma.Web.Endpoint,
31 url: [host: "localhost"],
33 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
34 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
35 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
36 secure_cookie_flag: true
38 # Configures Elixir's Logger
39 config :logger, :console,
40 format: "$time $metadata[$level] $message\n",
41 metadata: [:request_id]
43 config :mime, :types, %{
44 "application/xml" => ["xml"],
45 "application/xrd+xml" => ["xrd+xml"],
46 "application/activity+json" => ["activity+json"],
47 "application/ld+json" => ["activity+json"]
50 config :pleroma, :websub, Pleroma.Web.Websub
51 config :pleroma, :ostatus, Pleroma.Web.OStatus
52 config :pleroma, :httpoison, Pleroma.HTTP
55 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
56 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
58 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
61 # Configures http settings, upstream proxy etc.
62 config :pleroma, :http, proxy_url: nil
64 config :pleroma, :instance,
67 email: "example@example.com",
68 description: "A Pleroma instance, an alternative fediverse server",
70 upload_limit: 16_000_000,
71 registrations_open: true,
74 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
76 quarantined_instances: [],
79 config :pleroma, :markup,
80 scrub_policy: HtmlSanitizeEx.Scrubber.BasicHTML
83 theme: "pleroma-dark",
84 logo: "/static/logo.png",
87 background: "/static/aurora_borealis.jpg",
88 redirect_root_no_login: "/main/all",
89 redirect_root_login: "/main/friends",
90 show_instance_panel: true,
91 scope_options_enabled: false,
92 collapse_message_with_subject: false
94 config :pleroma, :activitypub,
96 unfollow_blocked: true,
99 config :pleroma, :user, deny_follow_blocked: true
101 config :pleroma, :mrf_rejectnonpublic,
102 allow_followersonly: false,
105 config :pleroma, :mrf_simple,
108 federated_timeline_removal: [],
112 config :pleroma, :media_proxy,
114 redirect_on_failure: true
116 # base_url: "https://cache.pleroma.social"
118 config :pleroma, :chat, enabled: true
120 config :ecto, json_library: Jason
122 config :phoenix, :format_encoders, json: Jason
124 config :pleroma, :gopher,
129 config :pleroma, :suggestions,
132 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
135 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
137 # Import environment specific config. This must remain at the bottom
138 # of this file so it overrides the configuration defined above.
139 import_config "#{Mix.env()}.exs"