3 days bench bonus, hopefully better bans, naxx items

This commit is contained in:
peter
2020-11-29 17:21:14 +01:00
parent f9008e67bd
commit c09c9ab67c
8 changed files with 260 additions and 57 deletions
+3 -2
View File
@@ -68,15 +68,16 @@ export class FrontworkAdmin
}
async start() {
const ONE_REQUEST = 15
let port: number = this.config.getConfig().httpPort
const rateLimiter = new BurstyRateLimiter(
new RateLimiterMemory({
points: 2,
points: 2*ONE_REQUEST,
duration: 1,
}),
new RateLimiterMemory({
keyPrefix: 'burst',
points: 60,
points: 5*ONE_REQUEST,
duration: 60,
})
)