M3: search — SearXNG container, searcher service, orchestrator /search

- searcher: file-based instance list (mtime-reloaded, hand-editable), failover
  across instances, URL normalization + dedup, Redis search cache (300s TTL)
- searxng: pinned settings.yml with JSON format enabled and limiter disabled,
  secret from SEARXNG_SECRET env; wired into compose with config volume
- orchestrator: /search proxying the searcher with per-stage trace; searcher
  included in aggregated /health

Verified against a mock SearXNG: failover past a dead instance, dedup of
trailing-slash duplicates, non-http URL filtering, cache miss/hit flags.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
User 2026-07-05 22:07:10 -07:00
parent 56e7fa16dd
commit 53f0d50e7a
10 changed files with 298 additions and 1 deletions

16
searxng/settings.yml Normal file
View file

@ -0,0 +1,16 @@
# SearXNG settings for the LWSS-internal instance.
# JSON format must be enabled for the searcher; limiter disabled (internal only).
use_default_settings: true
# secret_key comes from the SEARXNG_SECRET env var (set in compose).
server:
limiter: false
image_proxy: false
search:
formats:
- html
- json
ui:
static_use_hash: true