Skip to content

Commit 12beb8f

Browse files
authored
fix: Parse Server option rateLimit.zone does not use default value ip (#9941)
1 parent 0ff9779 commit 12beb8f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/Options/Definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ module.exports.RateLimitOptions = {
690690
zone: {
691691
env: 'PARSE_SERVER_RATE_LIMIT_ZONE',
692692
help:
693-
"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'",
693+
'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`.',
694+
default: 'ip',
694695
},
695696
};
696697
module.exports.SecurityOptions = {

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,15 @@ export interface RateLimitOptions {
370370
/* 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.
371371
*/
372372
redisUrl: ?string;
373-
/*
374-
The type of rate limit to apply. The following types are supported:
375-
<br><br>
376-
- `global`: rate limit based on the number of requests made by all users <br>
377-
- `ip`: rate limit based on the IP address of the request <br>
378-
- `user`: rate limit based on the user ID of the request <br>
379-
- `session`: rate limit based on the session token of the request <br>
380-
<br><br>
381-
:default: 'ip'
382-
*/
373+
/* The type of rate limit to apply. The following types are supported:
374+
<ul>
375+
<li>`global`: rate limit based on the number of requests made by all users</li>
376+
<li>`ip`: rate limit based on the IP address of the request</li>
377+
<li>`user`: rate limit based on the user ID of the request</li>
378+
<li>`session`: rate limit based on the session token of the request</li>
379+
</ul>
380+
Default is `ip`.
381+
:DEFAULT: ip */
383382
zone: ?string;
384383
}
385384

0 commit comments

Comments
 (0)