diff options
author | 2023-08-23 14:32:27 +0200 | |
---|---|---|
committer | 2023-08-23 14:32:27 +0200 | |
commit | 8f38dc2e7f9dc7272c6882fff369be5e43dc711a (patch) | |
tree | 4b414789c96c05573f89ae3f23b4bd1c5870005e /test/envparsing.sh | |
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 'test/envparsing.sh')
-rwxr-xr-x | test/envparsing.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/envparsing.sh b/test/envparsing.sh index 2ab17dbfb..bd4e69309 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -12,6 +12,10 @@ EXPECT=$(cat << "EOF" "accounts-registration-open": true, "advanced-cookies-samesite": "strict", "advanced-csp-extra-uris": [], + "advanced-rate-limit-exceptions": [ + "192.0.2.0/24", + "127.0.0.1/32" + ], "advanced-rate-limit-requests": 6969, "advanced-sender-multiplier": -1, "advanced-throttling-multiplier": -1, @@ -237,6 +241,7 @@ GTS_SYSLOG_PROTOCOL='udp' \ GTS_SYSLOG_ADDRESS='127.0.0.1:6969' \ GTS_TRACING_ENDPOINT='localhost:4317' \ GTS_ADVANCED_COOKIES_SAMESITE='strict' \ +GTS_ADVANCED_RATE_LIMIT_EXCEPTIONS="192.0.2.0/24,127.0.0.1/32" \ GTS_ADVANCED_RATE_LIMIT_REQUESTS=6969 \ GTS_ADVANCED_SENDER_MULTIPLIER=-1 \ GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \ |