add rate limits to all public endpoints
This commit is contained in:
@@ -22,6 +22,12 @@ export const meta = {
|
||||
optional: false, nullable: false,
|
||||
ref: 'App',
|
||||
},
|
||||
|
||||
// 3 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 3,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
||||
@@ -26,6 +26,12 @@ export const meta = {
|
||||
optional: false, nullable: false,
|
||||
ref: 'App',
|
||||
},
|
||||
|
||||
// 10 calls per 5 seconds
|
||||
limit: {
|
||||
duration: 1000 * 5,
|
||||
max: 10,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
||||
Reference in New Issue
Block a user