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