Skip to content

Commit b06ee3e

Browse files
committed
fix
1 parent 69a9258 commit b06ee3e

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-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>',
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: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,14 @@ 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: ip */
383381
zone: ?string;
384382
}
385383

0 commit comments

Comments
 (0)