feat(rate-limit): add more config options

Allow the admin to specify the rate-limits for user signup / login
Allow the admin to specify if Cloudflare specific rate-limit functionality should be used or not

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares
2026-06-10 21:00:43 +02:00
committed by Philip Molares
parent d7c1e45814
commit 8891d75baa
5 changed files with 32 additions and 21 deletions

View File

@@ -30,6 +30,8 @@ module.exports = {
allowPDFEmbed: true
},
rateLimitNewNotes: 20,
rateLimitUser: 10,
rateLimitUsingCloudflare: false,
cookiePolicy: 'lax',
protocolUseSSL: false,
// permissions