BREAKING CHANGE: timeout_limit added to search section and engine configurations updated with weights and timeouts
147 lines
2.7 KiB
YAML
147 lines
2.7 KiB
YAML
use_default_settings: true
|
|
|
|
general:
|
|
instance_name: "SearRST"
|
|
privacypolicy_url: false
|
|
donation_url: false
|
|
enable_metrics: false
|
|
|
|
search:
|
|
safe_search: 0
|
|
autocomplete: "google"
|
|
default_lang: "en"
|
|
timeout_limit: 5.0 # wait up to 5s total; fast engines respond sooner
|
|
formats:
|
|
- html
|
|
- json
|
|
|
|
server:
|
|
secret_key: "${SEARXNG_SECRET_KEY}"
|
|
limiter: false
|
|
image_proxy: true
|
|
public_instance: false
|
|
|
|
ui:
|
|
static_use_hash: true
|
|
results_on_new_tab: false
|
|
theme_args:
|
|
simple_style: auto # respects system dark/light mode
|
|
|
|
engines:
|
|
# --- General Web (higher weight = results ranked higher in merged list) ---
|
|
- name: google
|
|
engine: google
|
|
shortcut: g
|
|
language: en
|
|
region: en-US
|
|
weight: 2.0 # best index quality
|
|
timeout: 4.0
|
|
|
|
- name: brave
|
|
engine: brave
|
|
shortcut: br
|
|
weight: 1.5 # independent index, good quality
|
|
timeout: 3.0
|
|
|
|
- name: duckduckgo
|
|
engine: duckduckgo
|
|
shortcut: ddg
|
|
weight: 1.5
|
|
timeout: 3.0
|
|
|
|
- name: bing
|
|
engine: bing
|
|
shortcut: b
|
|
weight: 1.5 # large index, complements Google well
|
|
timeout: 3.0
|
|
|
|
- name: startpage
|
|
engine: startpage
|
|
shortcut: sp
|
|
weight: 1.2 # Google results with privacy; adds diversity
|
|
timeout: 4.0
|
|
|
|
- name: qwant
|
|
engine: qwant
|
|
shortcut: q
|
|
weight: 1.0
|
|
timeout: 3.0
|
|
|
|
- name: mojeek
|
|
engine: mojeek
|
|
shortcut: mjk
|
|
weight: 0.8 # smaller independent index; good for diversity
|
|
timeout: 3.0
|
|
|
|
# --- Knowledge / Reference ---
|
|
- name: wikipedia
|
|
engine: wikipedia
|
|
shortcut: wp
|
|
weight: 1.5
|
|
timeout: 2.0
|
|
|
|
# --- Tech / Code ---
|
|
- name: github
|
|
engine: github
|
|
shortcut: gh
|
|
categories: [it]
|
|
weight: 1.5
|
|
timeout: 3.0
|
|
|
|
- name: stackoverflow
|
|
engine: stackoverflow
|
|
shortcut: so
|
|
categories: [it]
|
|
weight: 1.5
|
|
timeout: 3.0
|
|
|
|
- name: npm
|
|
engine: npm
|
|
shortcut: npm
|
|
categories: [it]
|
|
weight: 1.2
|
|
timeout: 2.5
|
|
|
|
- name: pypi
|
|
engine: pypi
|
|
shortcut: pip
|
|
categories: [it]
|
|
weight: 1.2
|
|
timeout: 2.5
|
|
|
|
# --- Academic ---
|
|
- name: arxiv
|
|
engine: arxiv
|
|
shortcut: arx
|
|
categories: [science]
|
|
weight: 1.5
|
|
timeout: 3.0
|
|
|
|
- name: semantic scholar
|
|
engine: semantic scholar
|
|
shortcut: ss
|
|
categories: [science]
|
|
weight: 1.2
|
|
timeout: 3.5
|
|
|
|
# --- Community / News ---
|
|
- name: reddit
|
|
engine: reddit
|
|
shortcut: r
|
|
categories: [social media]
|
|
weight: 1.2
|
|
timeout: 3.0
|
|
|
|
- name: hackernews
|
|
engine: hackernews
|
|
shortcut: hn
|
|
categories: [it, news]
|
|
weight: 1.2
|
|
timeout: 3.0
|
|
|
|
- name: google news
|
|
engine: google news
|
|
shortcut: gn
|
|
categories: [news]
|
|
weight: 1.5
|
|
timeout: 3.0
|