-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
23 deletions.
There are no files selected for viewing
Submodule jokes
added at
6dbd28
Submodule jokes-bak
added at
6dbd28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RateLimiterMemory } from "rate-limiter-flexible"; | ||
import { settings } from "./settings.js"; | ||
|
||
// TODO: fine tune & implement rate limiters for different tiers | ||
|
||
/** Generic rate limiter applied everywhere for coarse rate limiting */ | ||
export const genericRateLimit = new RateLimiterMemory({ | ||
points: settings.server.rateLimit.generic.points, | ||
duration: settings.server.rateLimit.generic.duration, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters