forked from AkkomaGang/akkoma
[#1149] Rewritten readme as config/description.exs.
This commit is contained in:
parent
6bcedb693c
commit
e127b9ab6d
1 changed files with 126 additions and 72 deletions
|
@ -1778,44 +1778,73 @@
|
||||||
group: :pleroma_job_queue,
|
group: :pleroma_job_queue,
|
||||||
key: :queues,
|
key: :queues,
|
||||||
type: :group,
|
type: :group,
|
||||||
description: "Pleroma Job Queue configuration: a list of queues with maximum concurrent jobs",
|
description: "[Deprecated] Replaced with `Oban`/`:queues` (keeping the same format)",
|
||||||
|
children: []
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
group: :pleroma,
|
||||||
|
key: Pleroma.Web.Federator.RetryQueue,
|
||||||
|
type: :group,
|
||||||
|
description: "[Deprecated] See `Oban` and `:workers` sections for configuration notes",
|
||||||
children: [
|
children: [
|
||||||
%{
|
%{
|
||||||
key: :federator_outgoing,
|
key: :max_retries,
|
||||||
type: :integer,
|
type: :integer,
|
||||||
description: "Outgoing federation queue",
|
description: "[Deprecated] Replaced as `Oban`/`:queues`/`:outgoing_federation` value",
|
||||||
suggestions: [50]
|
suggestions: []
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
key: :federator_incoming,
|
group: :pleroma,
|
||||||
type: :integer,
|
key: Oban,
|
||||||
description: "Incoming federation queue",
|
type: :group,
|
||||||
suggestions: [50]
|
description: """
|
||||||
|
[Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration.
|
||||||
|
|
||||||
|
Note: if you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1),
|
||||||
|
it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`,
|
||||||
|
otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings
|
||||||
|
(see https://github.com/sorentwo/oban/issues/52).
|
||||||
|
""",
|
||||||
|
children: [
|
||||||
|
%{
|
||||||
|
key: :repo,
|
||||||
|
type: :module,
|
||||||
|
description: "Application's Ecto repo",
|
||||||
|
suggestions: [Pleroma.Repo]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
key: :mailer,
|
key: :verbose,
|
||||||
type: :integer,
|
type: :boolean,
|
||||||
description: "Email sender queue, see Pleroma.Emails.Mailer",
|
description: "Logs verbose mode",
|
||||||
suggestions: [10]
|
suggestions: [false, true]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
key: :web_push,
|
key: :prune,
|
||||||
type: :integer,
|
type: [:atom, :tuple],
|
||||||
description: "Web push notifications queue",
|
description:
|
||||||
suggestions: [50]
|
"Non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning)",
|
||||||
|
suggestions: [:disabled, {:maxlen, 1500}, {:maxage, 60 * 60}]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
key: :transmogrifier,
|
key: :queues,
|
||||||
type: :integer,
|
type: :keyword,
|
||||||
description: "Transmogrifier queue",
|
description:
|
||||||
suggestions: [20]
|
"Background jobs queues (keys: queues, values: max numbers of concurrent jobs)",
|
||||||
},
|
suggestions: [
|
||||||
%{
|
[
|
||||||
key: :scheduled_activities,
|
activity_expiration: 10,
|
||||||
type: :integer,
|
background: 5,
|
||||||
description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
|
federator_incoming: 50,
|
||||||
suggestions: [10]
|
federator_outgoing: 50,
|
||||||
},
|
mailer: 10,
|
||||||
|
scheduled_activities: 10,
|
||||||
|
transmogrifier: 20,
|
||||||
|
web_push: 50
|
||||||
|
]
|
||||||
|
],
|
||||||
|
children: [
|
||||||
%{
|
%{
|
||||||
key: :activity_expiration,
|
key: :activity_expiration,
|
||||||
type: :integer,
|
type: :integer,
|
||||||
|
@ -1827,38 +1856,63 @@
|
||||||
type: :integer,
|
type: :integer,
|
||||||
description: "Background queue",
|
description: "Background queue",
|
||||||
suggestions: [5]
|
suggestions: [5]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :federator_incoming,
|
||||||
|
type: :integer,
|
||||||
|
description: "Incoming federation queue",
|
||||||
|
suggestions: [50]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :federator_outgoing,
|
||||||
|
type: :integer,
|
||||||
|
description: "Outgoing federation queue",
|
||||||
|
suggestions: [50]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :mailer,
|
||||||
|
type: :integer,
|
||||||
|
description: "Email sender queue, see Pleroma.Emails.Mailer",
|
||||||
|
suggestions: [10]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :scheduled_activities,
|
||||||
|
type: :integer,
|
||||||
|
description: "Scheduled activities queue, see Pleroma.ScheduledActivities",
|
||||||
|
suggestions: [10]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :transmogrifier,
|
||||||
|
type: :integer,
|
||||||
|
description: "Transmogrifier queue",
|
||||||
|
suggestions: [20]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :web_push,
|
||||||
|
type: :integer,
|
||||||
|
description: "Web push notifications queue",
|
||||||
|
suggestions: [50]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
group: :pleroma,
|
group: :pleroma,
|
||||||
key: Pleroma.Web.Federator.RetryQueue,
|
key: :workers,
|
||||||
type: :group,
|
type: :group,
|
||||||
description: "",
|
description: "Includes custom worker options not interpretable directly by `Oban`",
|
||||||
children: [
|
children: [
|
||||||
%{
|
%{
|
||||||
key: :enabled,
|
key: :retries,
|
||||||
type: :boolean,
|
type: :keyword,
|
||||||
description: "If set to true, failed federation jobs will be retried",
|
description: "Max retry attempts for failed jobs, per `Oban` queue",
|
||||||
suggestions: [true, false]
|
suggestions: [
|
||||||
},
|
[
|
||||||
%{
|
federator_incoming: 5,
|
||||||
key: :max_jobs,
|
federator_outgoing: 5
|
||||||
type: :integer,
|
]
|
||||||
description: "The maximum amount of parallel federation jobs running at the same time",
|
]
|
||||||
suggestions: [20]
|
|
||||||
},
|
|
||||||
%{
|
|
||||||
key: :initial_timeout,
|
|
||||||
type: :integer,
|
|
||||||
description: "The initial timeout in seconds",
|
|
||||||
suggestions: [30]
|
|
||||||
},
|
|
||||||
%{
|
|
||||||
key: :max_retries,
|
|
||||||
type: :integer,
|
|
||||||
description: "The maximum number of times a federation job is retried",
|
|
||||||
suggestions: [5]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue