mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 11:37:30 -06:00
[feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151)
* start updating rate limiting, add exceptions * tests, comments, tidying up * add rate limiting exceptions to example config * envparsing * nolint * apply kimbediff * add examples
This commit is contained in:
parent
94d16631bc
commit
8f38dc2e7f
12 changed files with 402 additions and 27 deletions
|
|
@ -122,7 +122,8 @@ var Defaults = Configuration{
|
|||
|
||||
AdvancedCookiesSamesite: "lax",
|
||||
AdvancedRateLimitRequests: 300, // 1 per second per 5 minutes
|
||||
AdvancedThrottlingMultiplier: 8, // 8 open requests per CPU
|
||||
AdvancedRateLimitExceptions: []string{},
|
||||
AdvancedThrottlingMultiplier: 8, // 8 open requests per CPU
|
||||
AdvancedThrottlingRetryAfter: time.Second * 30,
|
||||
AdvancedSenderMultiplier: 2, // 2 senders per CPU
|
||||
AdvancedCSPExtraURIs: []string{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue