mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
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>
36 lines
675 B
JavaScript
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
|
|
}
|
|
};
|