Fixed tests

This commit is contained in:
Dario Ghunney Ware
2025-10-20 17:44:37 +01:00
parent 378bddaa7e
commit 0e2e6d06fd
13 changed files with 57 additions and 101 deletions

View File

@@ -121,6 +121,7 @@ public class ApplicationProperties {
private String customGlobalAPIKey;
private Jwt jwt = new Jwt();
private Validation validation = new Validation();
private RateLimit rateLimit = new RateLimit();
public Boolean isAltLogin() {
return saml2.getEnabled() || oauth2.getEnabled();
@@ -344,6 +345,12 @@ public class ApplicationProperties {
private boolean hardFail = false;
}
}
@Data
public static class RateLimit {
private int maxRequests = 1000;
private String resetSchedule = "0 0 0 * * MON"; // Cron expression: At 00:00 every Monday
}
}
@Data