Pleroma.MIME: use gen_magic

This commit is contained in:
href 2020-05-14 21:36:31 +02:00
commit ec1452fd1c
13 changed files with 52 additions and 64 deletions

View file

@ -678,6 +678,8 @@ config :pleroma, :hackney_pools,
timeout: 300_000
]
config :pleroma, :gen_magic_pool, size: 2
config :pleroma, :restrict_unauthenticated,
timelines: %{local: false, federated: false},
profiles: %{local: false, remote: false},

View file

@ -3325,5 +3325,19 @@ config :pleroma, :config_description, [
suggestions: [false]
}
]
},
%{
group: :pleroma,
key: :gen_magic_pool,
type: :group,
description: "GenMagic/libmagic configuration",
children: [
%{
key: :size,
type: :integer,
description: "Number of gen_magic workers to start.",
suggestions: [2]
}
]
}
]