Commit d48a9eb6e85e

Vincent Demeester <vincent@sbr.pm>
2026-03-23 22:59:29
feat(searxng): improve proxy resilience and tuning
Added request_timeout, retries, and lowered CAPTCHA suspend times for faster engine recovery. Removed startpage from engines (consistently CAPTCHA'd).
1 parent 6ccaab1
Changed files (1)
systems
sakhalin
systems/sakhalin/extra.nix
@@ -365,6 +365,7 @@ in
           engines.remove = [
             "ahmia"
             "torch"
+            "startpage"
           ];
         };
         server = {
@@ -377,6 +378,8 @@ in
         # Route outgoing requests through multiple proxies (round-robin)
         # to avoid search engine rate limiting / CAPTCHAs
         outgoing = {
+          request_timeout = 6;
+          retries = 1;
           proxies = {
             "all://" = [
               # sakhalin (local) — exits through sakhalin's IP
@@ -397,6 +400,13 @@ in
             "html"
             "json"
           ];
+          # Lower CAPTCHA suspend times so engines recover faster
+          # after proxy rotation provides a fresh IP
+          suspended_times = {
+            SearxEngineCaptcha = 600; # 10min instead of 24h
+            SearxEngineTooManyRequests = 600; # 10min instead of 1h
+            SearxEngineAccessDenied = 1800; # 30min instead of 24h
+          };
         };
         # Curated engines for quality results
         engines = [