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