1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Automatically clean up old logs

This commit is contained in:
2021-07-10 19:17:40 +02:00
parent 5a13d7beb3
commit b20c261c7d
3 changed files with 15 additions and 1 deletions

View File

@@ -115,6 +115,9 @@ pub mod conservation_policy {
/// Minimum likes lifetime (1 month)
pub const MIN_LIKES_LIFETIME: Duration = Duration::from_secs(60 * 60 * 24 * 30);
/// Admin actions log duration (3 months)
pub const ADMIN_ACTIONS_LOG_LIFETIME: Duration = Duration::from_secs(60 * 60 * 24 * 30 * 3);
}
/// WebSocket access token lifetime, in seconds