increase chart rate limits (fixes 429s in control panel / info pages)

This commit is contained in:
Hazelnoot 2024-12-11 09:10:56 -05:00
parent 0ea9d6ec5d
commit 0f5c78a69b
12 changed files with 48 additions and 36 deletions

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;

View file

@ -17,10 +17,11 @@ export const meta = {
allowGet: true,
cacheSec: 60 * 60,
// 10 calls per 5 seconds
// Burst up to 100, then 2/sec average
limit: {
duration: 1000 * 5,
max: 10,
type: 'bucket',
size: 100,
dripRate: 500,
},
} as const;