mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-20 23:40:10 +00:00
increase chart rate limits (fixes 429s in control panel / info pages)
This commit is contained in:
parent
0ea9d6ec5d
commit
0f5c78a69b
12 changed files with 48 additions and 36 deletions
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ export const meta = {
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 60 * 60,
|
cacheSec: 60 * 60,
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst up to 100, then 2/sec average
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 100,
|
||||||
|
dripRate: 500,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue