[web] add config option for project/user hard deletion delay (#27725)

GitOrigin-RevId: db8030d6c8a3cdf8490edafcfa436cdbcd80fc28
This commit is contained in:
Jakob Ackermann
2025-08-12 11:01:34 +02:00
committed by Copybot
parent d055f01c00
commit cbe86818a7
3 changed files with 21 additions and 8 deletions

View File

@@ -709,6 +709,13 @@ module.exports = {
primary_email_check_expiration: 1000 * 60 * 60 * 24 * 90, // 90 days
userHardDeletionDelay:
parseInt(process.env.OVERLEAF_USER_HARD_DELETION_DELAY, 10) ||
1000 * 60 * 60 * 24 * 90, // 90 days
projectHardDeletionDelay:
parseInt(process.env.OVERLEAF_PROJECT_HARD_DELETION_DELAY, 10) ||
1000 * 60 * 60 * 24 * 90, // 90 days
// Maximum JSON size in HTTP requests
// We should be able to process twice the max doc length, to allow for
// - the doc content