diff options
author | 2023-08-23 14:32:27 +0200 | |
---|---|---|
committer | 2023-08-23 14:32:27 +0200 | |
commit | 8f38dc2e7f9dc7272c6882fff369be5e43dc711a (patch) | |
tree | 4b414789c96c05573f89ae3f23b4bd1c5870005e /internal/config/defaults.go | |
parent | [performance] Rework home timeline query to use cache more (#2148) (diff) | |
download | gotosocial-8f38dc2e7f9dc7272c6882fff369be5e43dc711a.tar.xz |
[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
Diffstat (limited to 'internal/config/defaults.go')
-rw-r--r-- | internal/config/defaults.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 3703d8372..9ad9c125c 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -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{}, |