Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rateLimit property in docs but it is outdated #10321

Open
alexdeia opened this issue Jan 3, 2025 · 1 comment
Open

rateLimit property in docs but it is outdated #10321

alexdeia opened this issue Jan 3, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@alexdeia
Copy link

alexdeia commented Jan 3, 2025

Documentation Issue

rateLimit property is outdated according to #5221

But in production documentation it is:

| **`rateLimit`** | Control IP-based rate limiting for all Payload resources. Used to prevent DDoS attacks, etc. [More details](../production/preventing-abuse#rate-limiting-requests). |

Additional Details

In this regard I have a question: how can I set the rateLimit now?

@alexdeia alexdeia added the documentation Improvements or additions to documentation label Jan 3, 2025
@Coloby
Copy link

Coloby commented Jan 5, 2025

https://payloadcms.com/security here you can see that box 06 also mentions it

Was it replaced by something like the code below? Not sure if maxLoginAttempts is the new thing now

auth: {
    tokenExpiration: 7200, // (7200 = 2h) How many seconds to keep the user logged in 
    lockTime: 900 * 1000, // (in milliseconds. 900 * 1000 = 15m) Time period to allow the max login attempts 
    maxLoginAttempts: 4, // Automatically lock a user out after X amount of failed logins
    // verify: true, // Require email verification before being allowed to authenticate
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants