Skip to content

Commit

Permalink
Decrease ip limiting on interactions server
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Jan 26, 2024
1 parent ed225c7 commit 1420552
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/interactions-server/rateLimits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type RateLimitsPerRoute = {
// Global limit is 300 auth API requests per 15 minutes per IP,
// it applies to all routes that don't have a specific limit set
export const globalRateLimit: SimpleRateLimit = {
windowMinutes: 15,
windowMinutes: 5,
limit: 300,
}

Expand All @@ -32,25 +32,25 @@ export const rateLimitsPerRoute: RateLimitsPerRoute = {
'/video-clicked': {
post: {
windowMinutes: 5,
limit: 50,
limit: 100,
},
},
'/channel-clicked': {
post: {
windowMinutes: 5,
limit: 50,
limit: 100,
},
},
'/video-consumed': {
post: {
windowMinutes: 5,
limit: 15,
limit: 100,
},
},
'/video-portion': {
post: {
windowMinutes: 5,
limit: 50,
limit: 100,
},
},
}
Expand Down

0 comments on commit 1420552

Please sign in to comment.