summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-03 13:45:09 +0100
committerlain <lain@soykaf.club>2020-11-03 13:45:09 +0100
commit91f6c3243032d88a813e4cfed6bf3d0f1ae5924d (patch)
tree3561c80c9efdc6164550a14fe557dfd7485b772a /config
parent1042c30fa53e838f3acae2c176f47997fa425755 (diff)
parent0d8cc0905aeebb965df0cf755a171d21b01ed978 (diff)
downloadpleroma-91f6c3243032d88a813e4cfed6bf3d0f1ae5924d.tar.gz
pleroma-91f6c3243032d88a813e4cfed6bf3d0f1ae5924d.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into a1batross/pleroma-patch-4
Diffstat (limited to 'config')
-rw-r--r--config/config.exs6
-rw-r--r--config/description.exs26
2 files changed, 32 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index c52ee8f82..c0b6ac1d6 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -551,6 +551,7 @@ config :pleroma, Oban,
queues: [
activity_expiration: 10,
token_expiration: 5,
+ backup: 1,
federator_incoming: 50,
federator_outgoing: 50,
ingestion_queue: 50,
@@ -835,6 +836,11 @@ config :floki, :html_parser, Floki.HTMLParser.FastHtml
config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.PleromaAuthenticator
+config :pleroma, Pleroma.User.Backup,
+ purge_after_days: 30,
+ limit_days: 7,
+ dir: nil
+
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
diff --git a/config/description.exs b/config/description.exs
index 798cbe2ad..0b651696b 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2298,6 +2298,12 @@ config :pleroma, :config_description, [
suggestions: [10]
},
%{
+ key: :backup,
+ type: :integer,
+ description: "Backup queue",
+ suggestions: [1]
+ },
+ %{
key: :attachments_cleanup,
type: :integer,
description: "Attachment deletion queue",
@@ -3733,6 +3739,26 @@ config :pleroma, :config_description, [
]
},
%{
+ group: :pleroma,
+ key: Pleroma.User.Backup,
+ type: :group,
+ description: "Account Backup",
+ children: [
+ %{
+ key: :purge_after_days,
+ type: :integer,
+ description: "Remove backup achives after N days",
+ suggestions: [30]
+ },
+ %{
+ key: :limit_days,
+ type: :integer,
+ description: "Limit user to export not more often than once per N days",
+ suggestions: [7]
+ }
+ ]
+ },
+ %{
group: :prometheus,
key: Pleroma.Web.Endpoint.MetricsExporter,
type: :group,