Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Options/Definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ module.exports.RateLimitOptions = {
zone: {
env: 'PARSE_SERVER_RATE_LIMIT_ZONE',
help:
"The type of rate limit to apply. The following types are supported:<br><br>- `global`: rate limit based on the number of requests made by all users <br>- `ip`: rate limit based on the IP address of the request <br>- `user`: rate limit based on the user ID of the request <br>- `session`: rate limit based on the session token of the request <br><br><br>:default: 'ip'",
'The type of rate limit to apply. The following types are supported:<ul><li>`global`: rate limit based on the number of requests made by all users</li><li>`ip`: rate limit based on the IP address of the request</li><li>`user`: rate limit based on the user ID of the request</li><li>`session`: rate limit based on the session token of the request</li></ul>Default is `ip`.',
default: 'ip',
},
};
module.exports.SecurityOptions = {
Expand Down
2 changes: 1 addition & 1 deletion src/Options/docs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions src/Options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,15 @@ export interface RateLimitOptions {
/* Optional, the URL of the Redis server to store rate limit data. This allows to rate limit requests for multiple servers by calculating the sum of all requests across all servers. This is useful if multiple servers are processing requests behind a load balancer. For example, the limit of 10 requests is reached if each of 2 servers processed 5 requests.
*/
redisUrl: ?string;
/*
The type of rate limit to apply. The following types are supported:
<br><br>
- `global`: rate limit based on the number of requests made by all users <br>
- `ip`: rate limit based on the IP address of the request <br>
- `user`: rate limit based on the user ID of the request <br>
- `session`: rate limit based on the session token of the request <br>
<br><br>
:default: 'ip'
*/
/* The type of rate limit to apply. The following types are supported:
<ul>
<li>`global`: rate limit based on the number of requests made by all users</li>
<li>`ip`: rate limit based on the IP address of the request</li>
<li>`user`: rate limit based on the user ID of the request</li>
<li>`session`: rate limit based on the session token of the request</li>
</ul>
Default is `ip`.
:DEFAULT: ip */
zone: ?string;
}

Expand Down
Loading