summaryrefslogtreecommitdiff
path: root/example
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 /example
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 'example')
-rw-r--r--example/config.yaml21
1 files changed, 20 insertions, 1 deletions
diff --git a/example/config.yaml b/example/config.yaml
index acabd4e22..209e2dc9d 100644
--- a/example/config.yaml
+++ b/example/config.yaml
@@ -1264,4 +1264,23 @@ advanced-header-filter-mode: ""
#
# Options: [true, false]
# Default: true
-advanced-scraper-deterrence: false
+advanced-scraper-deterrence-enabled: false
+
+# Uint. Allows tweaking the difficulty of the proof-of-work algorithm
+# used in the scraper deterrence. This determines how many leading '0'
+# characters are required to be generated in each solution. Higher
+# values will on-average take longer to find solutions for, and the
+# inverse is also true.
+#
+# The downside is that if your deterrence takes too long to solve,
+# it may deter some users from viewing your web status / profile page.
+# And conversely, the longer it takes for a solution to be found, the
+# more you'll be incurring increased CPU usage for scrapers, and possibly
+# even cause their operation to time out before completion.
+#
+# For more details please check the documentation at:
+# https://docs.gotosocial.org/en/latest/advanced/scraper_deterrence
+#
+# Examples: [3, 4, 5]
+# Default: 4
+advanced-scraper-deterrence-difficulty: 4