mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-26 16:02:18 +00:00
fixed config/descpiption.exs
This commit is contained in:
parent
71e233268a
commit
cc837f9d15
|
@ -1996,18 +1996,11 @@ config :pleroma, :config_description, [
|
||||||
""",
|
""",
|
||||||
children: [
|
children: [
|
||||||
%{
|
%{
|
||||||
key: :verbose,
|
key: :log,
|
||||||
type: {:dropdown, :atom},
|
type: {:dropdown, :atom},
|
||||||
description: "Logs verbose mode",
|
description: "Logs verbose mode",
|
||||||
suggestions: [false, :error, :warn, :info, :debug]
|
suggestions: [false, :error, :warn, :info, :debug]
|
||||||
},
|
},
|
||||||
%{
|
|
||||||
key: :prune,
|
|
||||||
type: [:atom, :tuple],
|
|
||||||
description:
|
|
||||||
"Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
|
|
||||||
suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
|
|
||||||
},
|
|
||||||
%{
|
%{
|
||||||
key: :queues,
|
key: :queues,
|
||||||
type: {:keyword, :integer},
|
type: {:keyword, :integer},
|
||||||
|
|
|
@ -80,7 +80,7 @@ defmodule Pleroma.Application do
|
||||||
[
|
[
|
||||||
Pleroma.Stats,
|
Pleroma.Stats,
|
||||||
Pleroma.JobQueueMonitor,
|
Pleroma.JobQueueMonitor,
|
||||||
{Oban, oban_config()}
|
{Oban, Config.get(Oban)}
|
||||||
] ++
|
] ++
|
||||||
task_children(@env) ++
|
task_children(@env) ++
|
||||||
streamer_child(@env) ++
|
streamer_child(@env) ++
|
||||||
|
@ -138,18 +138,6 @@ defmodule Pleroma.Application do
|
||||||
Pleroma.Web.Endpoint.Instrumenter.setup()
|
Pleroma.Web.Endpoint.Instrumenter.setup()
|
||||||
end
|
end
|
||||||
|
|
||||||
defp oban_config do
|
|
||||||
config = Config.get(Oban)
|
|
||||||
|
|
||||||
if Code.ensure_loaded?(IEx) and IEx.started?() do
|
|
||||||
config
|
|
||||||
|> Keyword.put(:crontab, false)
|
|
||||||
|> Keyword.put(:queues, false)
|
|
||||||
else
|
|
||||||
config
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
defp cachex_children do
|
defp cachex_children do
|
||||||
[
|
[
|
||||||
build_cachex("used_captcha", ttl_interval: seconds_valid_interval()),
|
build_cachex("used_captcha", ttl_interval: seconds_valid_interval()),
|
||||||
|
|
Loading…
Reference in a new issue