From 8f38dc2e7f9dc7272c6882fff369be5e43dc711a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 23 Aug 2023 14:32:27 +0200 Subject: [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 --- test/envparsing.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/envparsing.sh') 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 \ -- cgit v1.2.3