Cleanup remember-me tokens periodically

This commit is contained in:
Eike Kettner
2020-12-04 00:59:08 +01:00
parent a0642905db
commit f5ae389eea
4 changed files with 41 additions and 1 deletions

View File

@ -142,6 +142,17 @@ docspell.joex {
older-than = "30 days"
}
# This task removes expired remember-me tokens. The timespan
# should be greater than the `valid` time in the restserver
# config.
cleanup-remember-me = {
# Whether the job is enabled.
enabled = true
# The minimum age of tokens to be deleted.
older-than = "30 days"
}
# Jobs store their log output in the database. Normally this data
# is only interesting for some period of time. The processing logs
# of old files can be removed eventually.