fe config: add collapse_message_with_subject fe option
[akkoma] / config / config.exs
1 # This file is responsible for configuring your application
2 # and its dependencies with the aid of the Mix.Config module.
3 #
4 # This configuration file is loaded before any dependency and
5 # is restricted to this project.
6 use Mix.Config
7
8 # General application configuration
9 config :pleroma, ecto_repos: [Pleroma.Repo]
10
11 config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
12
13 config :pleroma, Pleroma.Upload,
14 uploads: "uploads",
15 strip_exif: false
16
17 config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
18
19 config :pleroma, :uri_schemes, additionnal_schemes: []
20
21 # Configures the endpoint
22 config :pleroma, Pleroma.Web.Endpoint,
23 url: [host: "localhost"],
24 protocol: "https",
25 secret_key_base: "aK4Abxf29xU9TTDKre9coZPUgevcVCFQJe/5xP/7Lt4BEif6idBIbjupVbOrbKxl",
26 render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
27 pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]
28
29 # Configures Elixir's Logger
30 config :logger, :console,
31 format: "$time $metadata[$level] $message\n",
32 metadata: [:request_id]
33
34 config :mime, :types, %{
35 "application/xml" => ["xml"],
36 "application/xrd+xml" => ["xrd+xml"],
37 "application/activity+json" => ["activity+json"],
38 "application/ld+json" => ["activity+json"]
39 }
40
41 config :pleroma, :websub, Pleroma.Web.Websub
42 config :pleroma, :ostatus, Pleroma.Web.OStatus
43 config :pleroma, :httpoison, Pleroma.HTTP
44
45 version =
46 with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
47 "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
48 else
49 _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
50 end
51
52 # Configures http settings, upstream proxy etc.
53 config :pleroma, :http, proxy_url: nil
54
55 config :pleroma, :instance,
56 version: version,
57 name: "Pleroma",
58 email: "example@example.com",
59 description: "A Pleroma instance, an alternative fediverse server",
60 limit: 5000,
61 upload_limit: 16_000_000,
62 registrations_open: true,
63 federating: true,
64 rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
65 public: true,
66 quarantined_instances: []
67
68 config :pleroma, :fe,
69 theme: "pleroma-dark",
70 logo: "/static/logo.png",
71 background: "/static/aurora_borealis.jpg",
72 redirect_root_no_login: "/main/all",
73 redirect_root_login: "/main/friends",
74 show_instance_panel: true,
75 show_who_to_follow_panel: false,
76 who_to_follow_provider:
77 "https://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-osa-api.cgi?{{host}}+{{user}}",
78 who_to_follow_link: "https://vinayaka.distsn.org/?{{host}}+{{user}}",
79 scope_options_enabled: false,
80 collapse_message_with_subject: false
81
82 config :pleroma, :activitypub,
83 accept_blocks: true,
84 unfollow_blocked: true,
85 outgoing_blocks: true
86
87 config :pleroma, :user, deny_follow_blocked: true
88
89 config :pleroma, :mrf_rejectnonpublic,
90 allow_followersonly: false,
91 allow_direct: false
92
93 config :pleroma, :mrf_simple,
94 media_removal: [],
95 media_nsfw: [],
96 federated_timeline_removal: [],
97 reject: [],
98 accept: []
99
100 config :pleroma, :media_proxy,
101 enabled: false,
102 redirect_on_failure: true
103
104 # base_url: "https://cache.pleroma.social"
105
106 config :pleroma, :chat, enabled: true
107
108 config :ecto, json_library: Jason
109
110 config :phoenix, :format_encoders, json: Jason
111
112 config :pleroma, :gopher,
113 enabled: false,
114 ip: {0, 0, 0, 0},
115 port: 9999
116
117 config :pleroma, :suggestions,
118 enabled: false,
119 third_party_engine:
120 "http://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}",
121 timeout: 300_000,
122 web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
123
124 # Import environment specific config. This must remain at the bottom
125 # of this file so it overrides the configuration defined above.
126 import_config "#{Mix.env()}.exs"