diff options
author | 2023-01-04 11:57:59 +0100 | |
---|---|---|
committer | 2023-01-04 11:57:59 +0100 | |
commit | 90a14abb0c693287d10c5b2b8a6e5515f3ed4c37 (patch) | |
tree | b6cac62664d5bb0eed762e4bb9b8dab33c0da516 /testrig/config.go | |
parent | [docs] Fix documentation edit link (#1298) (diff) | |
download | gotosocial-90a14abb0c693287d10c5b2b8a6e5515f3ed4c37.tar.xz |
[feature] HTTP request throttling middleware (#1297)
* [feature] Add throttling middleware to AP endpoints
* refactor a lil bit
* use config setting, start updating docs
* doc updates
* use relative links in faq doc
* small docs fixes
* return code 503 instead of 429 when throttled
* throttle other endpoints too
* simplify token channel prefills
Diffstat (limited to 'testrig/config.go')
-rw-r--r-- | testrig/config.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testrig/config.go b/testrig/config.go index a1d7e5d54..d815f36fa 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -106,8 +106,9 @@ var testDefaults = config.Configuration{ SyslogProtocol: "udp", SyslogAddress: "localhost:514", - AdvancedCookiesSamesite: "lax", - AdvancedRateLimitRequests: 0, // disabled + AdvancedCookiesSamesite: "lax", + AdvancedRateLimitRequests: 0, // disabled + AdvancedThrottlingMultiplier: 0, // disabled SoftwareVersion: "0.0.0-testrig", |