mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-08 22:22:17 +02:00
feat(config): add env keys for discover search providers
This commit is contained in:
parent
fa1055dd4c
commit
adc39d1062
2 changed files with 12 additions and 1 deletions
|
|
@ -60,6 +60,13 @@ WHATSAPP_BRIDGE_URL=http://whatsapp-bridge:9929
|
|||
# Only uncomment if running the backend outside Docker (e.g. uvicorn on host).
|
||||
# SEARXNG_DEFAULT_HOST=http://localhost:8888
|
||||
|
||||
# web.discover fallback providers (env-keyed). SearXNG above is preferred; these
|
||||
# are used when it is not configured. web.discover self-disables if none are set.
|
||||
# LINKUP_API_KEY=
|
||||
# BAIDU_API_KEY=
|
||||
# BAIDU_MODEL=ernie-3.5-8k
|
||||
# BAIDU_SEARCH_SOURCE=baidu_search_v2
|
||||
|
||||
# Periodic task interval
|
||||
# # Run every minute (default)
|
||||
# SCHEDULE_CHECKER_INTERVAL=1m
|
||||
|
|
|
|||
|
|
@ -554,8 +554,12 @@ class Config:
|
|||
os.getenv("SURFSENSE_CONNECTOR_DISCOVERY_TTL_SECONDS", "30")
|
||||
)
|
||||
|
||||
# Platform web search (SearXNG)
|
||||
# Platform web search providers for the web.discover capability (env-keyed).
|
||||
SEARXNG_DEFAULT_HOST = os.getenv("SEARXNG_DEFAULT_HOST")
|
||||
LINKUP_API_KEY = os.getenv("LINKUP_API_KEY")
|
||||
BAIDU_API_KEY = os.getenv("BAIDU_API_KEY")
|
||||
BAIDU_MODEL = os.getenv("BAIDU_MODEL", "ernie-3.5-8k")
|
||||
BAIDU_SEARCH_SOURCE = os.getenv("BAIDU_SEARCH_SOURCE", "baidu_search_v2")
|
||||
|
||||
SURFSENSE_PUBLIC_URL = os.getenv("SURFSENSE_PUBLIC_URL")
|
||||
NEXT_FRONTEND_URL = os.getenv("NEXT_FRONTEND_URL") or SURFSENSE_PUBLIC_URL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue