Files
HomeDash/searxng-settings.yml
JianFeeeee 88e23861fe fix(search): repair SearXNG engine failures
- bing: www.bing.com 302-redirects to cn.bing.com and SearXNG engine
  requests do not follow redirects, so it parsed the 178-byte redirect
  page and returned 0 results without any error report. Point bing at
  https://cn.bing.com to bypass the redirect.
- Raise outgoing request_timeout 3.0 -> 8.0 and max_request_timeout
  4.0 -> 15.0. max_request_timeout overrides each engine's own timeout,
  so 360search (timeout 20s) was still cut off at 4s.
- Enable duckduckgo (verified working) and disable baidu/sogou which
  return 302 verification pages (baidu also hits a 1h CAPTCHA ban, and
  sogou raises AttributeError on SXNG_Response.next_request).
- Document the diagnosis in the README FAQ.
2026-09-11 10:26:32 +08:00

65 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

use_default_settings: true
general:
instance_name: "JianF Search"
debug: false
search:
safe_search: 0
autocomplete: "baidu"
default_lang: "zh-CN"
server:
port: 8888
bind_address: "127.0.0.1"
secret_key: "changeme-in-production"
image_proxy: true
ui:
static_use_hash: true
default_theme: simple
query_in_title: true
results_on_new_tab: false
redis:
url: false
outgoing:
# 走代理时握手与回源更慢。默认 3.0 / 4.0 会把一批引擎直接判为超时:
# max_request_timeout 会覆盖单引擎 timeout,360search 配了 20s 仍会在 4s 被砍。
request_timeout: 8.0
max_request_timeout: 15.0
pool_connections: 100
pool_maxsize: 20
# SearXNG curl_cffi 只认这个配置(不走 http_proxy 环境变量)
# 需要代理出网时取消注释并填写你的代理地址
# proxies:
# all://: http://your-proxy:7890
proxies: {}
engines:
- name: google
disabled: false
- name: bing
disabled: false
# www.bing.com 会 302 跳到 cn.bing.com,而 SearXNG 引擎请求不跟随重定向
# (allow_redirects=False)。结果只解析 178 字节的跳转页 -> 0 条且不报错,
# 表现为「Bing 结果异常少」。直接指向 cn.bing.com 可绕开重定向。
base_url: https://cn.bing.com
- name: duckduckgo
disabled: false
- name: 360search
disabled: false
- name: wikipedia
disabled: false
- name: github
disabled: false
- name: npm
disabled: false
- name: pypi
disabled: false
# 实测上游不可用,默认关闭以避免无谓等待与错误日志:
# baidu -> 302 跳验证页(CAPTCHA,命中后引擎被封 1 小时)
# sogou -> 302 + 引擎自身 AttributeError('SXNG_Response' has no attribute 'next_request')
- name: baidu
disabled: true
- name: sogou
disabled: true
- name: startpage
disabled: true
- name: brave
disabled: true