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