aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs6
-rw-r--r--config/description.exs7
2 files changed, 4 insertions, 9 deletions
diff --git a/config/config.exs b/config/config.exs
index 1e36d3314..79d4ee55f 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -505,6 +505,9 @@ config :pleroma, Oban,
transmogrifier: 20,
scheduled_activities: 10,
background: 5
+ ],
+ crontab: [
+ {"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker}
]
config :pleroma, :workers,
@@ -594,8 +597,7 @@ config :pleroma, :email_notifications,
config :pleroma, :oauth2,
token_expires_in: 600,
issue_new_refresh_token: true,
- clean_expired_tokens: false,
- clean_expired_tokens_interval: 86_400_000
+ clean_expired_tokens: false
config :pleroma, :database, rum_enabled: false
diff --git a/config/description.exs b/config/description.exs
index 70e963399..6b89d7c67 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2251,13 +2251,6 @@ config :pleroma, :config_description, [
key: :clean_expired_tokens,
type: :boolean,
description: "Enable a background job to clean expired oauth tokens. Defaults to false"
- },
- %{
- key: :clean_expired_tokens_interval,
- type: :integer,
- description:
- "Interval to run the job to clean expired tokens. Defaults to 86_400_000 (24 hours).",
- suggestions: [86_400_000]
}
]
},