diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-24 21:53:59 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:32:04 -0400 |
commit | 3fa2a954297df36d4c33186559c681d4967970b6 (patch) | |
tree | cd89fe6676ba4c009396f71a84ea9aadd013b70a /src/util/config | |
parent | oapi: oauth2 (diff) | |
download | server-3fa2a954297df36d4c33186559c681d4967970b6.tar.xz |
oapi: policies
Diffstat (limited to 'src/util/config')
-rw-r--r-- | src/util/config/types/subconfigurations/limits/RateLimits.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/config/types/subconfigurations/limits/RateLimits.ts b/src/util/config/types/subconfigurations/limits/RateLimits.ts index caba740b..0ce0827c 100644 --- a/src/util/config/types/subconfigurations/limits/RateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/RateLimits.ts @@ -16,11 +16,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { RouteRateLimit, RateLimitOptions } from "."; +import { RateLimitOptions, RouteRateLimit } from "."; export class RateLimits { enabled: boolean = false; - ip: Omit<RateLimitOptions, "bot_count"> = { + ip: RateLimitOptions = { count: 500, window: 5, }; |