summaryrefslogtreecommitdiff
path: root/test/envparsing.sh
diff options
context:
space:
mode:
authorLibravatar kim <grufwub@gmail.com>2025-05-07 11:59:39 +0000
committerLibravatar kim <gruf@noreply.codeberg.org>2025-05-07 11:59:39 +0000
commit4c96e2571db177377e6346359ccec7cf1b8299cb (patch)
tree1f3a9259a4a9491b1efb392265c508295917e94a /test/envparsing.sh
parent[bugfix] Fix indentation on multi-line alt text in web view (#4149) (diff)
downloadgotosocial-4c96e2571db177377e6346359ccec7cf1b8299cb.tar.xz
[feature] make nollamas difficulty configurable (#4119)
Makes the NoLLaMas proof-of-work scraper deterrence difficulty configurable. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4119 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'test/envparsing.sh')
-rwxr-xr-xtest/envparsing.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/envparsing.sh b/test/envparsing.sh
index e0afaae95..ccbc65cac 100755
--- a/test/envparsing.sh
+++ b/test/envparsing.sh
@@ -19,7 +19,8 @@ EXPECT=$(cat << "EOF"
"127.0.0.1/32"
],
"advanced-rate-limit-requests": 6969,
- "advanced-scraper-deterrence": true,
+ "advanced-scraper-deterrence-difficulty": 5,
+ "advanced-scraper-deterrence-enabled": true,
"advanced-sender-multiplier": -1,
"advanced-throttling-multiplier": -1,
"advanced-throttling-retry-after": 10000000000,
@@ -302,7 +303,8 @@ GTS_SYSLOG_ADDRESS='127.0.0.1:6969' \
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_SCRAPER_DETERRENCE=true \
+GTS_ADVANCED_SCRAPER_DETERRENCE_DIFFICULTY=5 \
+GTS_ADVANCED_SCRAPER_DETERRENCE_ENABLED=true \
GTS_ADVANCED_SENDER_MULTIPLIER=-1 \
GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \
GTS_ADVANCED_THROTTLING_RETRY_AFTER='10s' \