feat(backend revision): add clean-up note revisions job (#5349)

This commit is contained in:
yamashu 2024-09-27 00:24:24 +09:00 committed by GitHub
parent b80552bb29
commit 4fce422bdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 337 additions and 4 deletions

View file

@ -8,3 +8,4 @@
| `HD_PERMISSION_DEFAULT_LOGGED_IN` | `write` | `none`, `read`, `write` | The default permission for the "logged-in" group that is set on new notes. |
| `HD_PERMISSION_DEFAULT_EVERYONE` | `read` | `none`, `read`, `write` | The default permission for the "everyone" group (logged-in & guest users), that is set on new notes created by logged-in users. Notes created by guests always set this to "write". |
| `HD_PERSIST_INTERVAL` | 10 | `0`, `5`, `10`, `20` | The time interval in **minutes** for the periodic note revision creation during realtime editing. `0` deactivates the periodic note revision creation. |
| `HD_REVISION_RETENTION_DAYS` | 0 | | The number of days a revision should be kept. If the config option is not set or set to 0, all revisions will be kept forever. |