Files
9router/open-sse/providers/registry/searxng.js
T
zieandCursor e79f9eddb4 feat(searxng): configure endpoint via SEARXNG_URL env (#2499)
Add SEARXNG_URL runtime override for the built-in SearXNG web-search
provider, defaulting to http://localhost:8888/search. Enables Docker
and remote SearXNG deployments without changing existing behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 11:29:06 +07:00

36 lines
675 B
JavaScript

import { SEARXNG_URL } from "../../config/runtimeConfig.js";
export default {
id: "searxng",
alias: "searxng",
display: {
name: "SearXNG",
icon: "saved_search",
color: "#3B82F6",
textIcon: "SX",
website: "https://docs.searxng.org"
},
category: "freeTier",
authType: "none",
serviceKinds: [
"webSearch"
],
noAuth: true,
searchConfig: {
baseUrl: SEARXNG_URL,
method: "GET",
authType: "none",
authHeader: "none",
costPerQuery: 0,
freeMonthlyQuota: 999999,
searchTypes: [
"web",
"news"
],
defaultMaxResults: 5,
maxMaxResults: 50,
timeoutMs: 10000,
cacheTTLMs: 180000
}
};