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