aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs3
-rw-r--r--config/description.exs41
-rw-r--r--config/test.exs4
3 files changed, 32 insertions, 16 deletions
diff --git a/config/config.exs b/config/config.exs
index 3577cd101..6fc84efc2 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -498,8 +498,7 @@ config :pleroma, Pleroma.User,
config :pleroma, Oban,
repo: Pleroma.Repo,
- verbose: false,
- prune: {:maxlen, 1500},
+ log: false,
queues: [
activity_expiration: 10,
federator_incoming: 50,
diff --git a/config/description.exs b/config/description.exs
index 03b84bfc8..b0cc8d527 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2034,19 +2034,12 @@ config :pleroma, :config_description, [
""",
children: [
%{
- key: :verbose,
+ key: :log,
type: {:dropdown, :atom},
description: "Logs verbose mode",
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,
type: {:keyword, :integer},
description:
@@ -2579,8 +2572,7 @@ config :pleroma, :config_description, [
%{
key: :enabled,
type: :boolean,
- description: "Enables new users admin digest email when `true`",
- suggestions: [false]
+ description: "Enables new users admin digest email when `true`"
}
]
},
@@ -3444,8 +3436,7 @@ config :pleroma, :config_description, [
key: :strict,
type: :boolean,
description:
- "Enables strict input validation (useful in development, not recommended in production)",
- suggestions: [false]
+ "Enables strict input validation (useful in development, not recommended in production)"
}
]
},
@@ -3461,5 +3452,31 @@ config :pleroma, :config_description, [
description: "Allow/disallow displaying and getting instances favicons"
}
]
+ },
+ %{
+ group: :ex_aws,
+ key: :s3,
+ type: :group,
+ descriptions: "S3 service related settings",
+ children: [
+ %{
+ key: :access_key_id,
+ type: :string,
+ description: "S3 access key ID",
+ suggestions: ["AKIAQ8UKHTGIYN7DMWWJ"]
+ },
+ %{
+ key: :secret_access_key,
+ type: :string,
+ description: "Secret access key",
+ suggestions: ["JFGt+fgH1UQ7vLUQjpW+WvjTdV/UNzVxcwn7DkaeFKtBS5LvoXvIiME4NQBsT6ZZ"]
+ },
+ %{
+ key: :host,
+ type: :string,
+ description: "S3 host",
+ suggestions: ["s3.eu-central-1.amazonaws.com"]
+ }
+ ]
}
]
diff --git a/config/test.exs b/config/test.exs
index c71ddc230..ee91f4dbc 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -79,8 +79,8 @@ config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
config :pleroma, Oban,
queues: false,
- prune: :disabled,
- crontab: false
+ crontab: false,
+ plugins: false
config :pleroma, Pleroma.ScheduledActivity,
daily_user_limit: 2,