fix: increase rate limit for dev (30 attempts/min)

This commit is contained in:
Erik Silva
2025-12-09 02:04:10 -03:00
parent a33fb2f544
commit 44db6195f6

View File

@@ -53,6 +53,12 @@ func Load() *Config {
baseDomain = "aggios.app"
}
// Rate limit: more lenient in dev, strict in prod
maxAttempts := 30
if env == "production" {
maxAttempts = 5
}
return &Config{
Server: ServerConfig{
Port: getEnvOrDefault("SERVER_PORT", "8080"),
@@ -81,7 +87,7 @@ func Load() *Config {
"https://dash.aggios.app",
"https://www.aggios.app",
},
MaxAttemptsPerMin: 5,
MaxAttemptsPerMin: maxAttempts,
PasswordMinLength: 8,
},
}