tune SearXNG VPN request timeouts and retries
This commit is contained in:
@@ -57,6 +57,19 @@ assert not missing, f"pass_ip missing {missing}; got {pass_ip}"
|
||||
PYEOF
|
||||
}
|
||||
|
||||
@test "SearXNG outgoing policy allows modest VPN latency without retry amplification" {
|
||||
python3 - "$REPO_ROOT/shared/searxng/settings.yml" <<'PYEOF'
|
||||
import sys, yaml
|
||||
with open(sys.argv[1]) as fh:
|
||||
data = yaml.safe_load(fh)
|
||||
outgoing = data.get("outgoing", {})
|
||||
assert outgoing.get("request_timeout") == 4.0, outgoing
|
||||
assert outgoing.get("max_request_timeout") == 12.0, outgoing
|
||||
assert outgoing.get("retries") == 1, outgoing
|
||||
assert outgoing["request_timeout"] < outgoing["max_request_timeout"], outgoing
|
||||
PYEOF
|
||||
}
|
||||
|
||||
@test "deploy.sh copies limiter.toml into /opt/searxng/config" {
|
||||
grep -q "shared/searxng/limiter.toml" "$REPO_ROOT/scripts/deploy.sh" \
|
||||
|| { echo "deploy.sh does not copy shared/searxng/limiter.toml"; return 1; }
|
||||
|
||||
Reference in New Issue
Block a user