SearXNG Docker#
SearXNG is a free internet metasearch engine which aggregates results from up to 238 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor for online anonymity.
Docker#
mkdir my-instance
cd my-instance
docker run -d --name searxng \
-d -p 8001:8080 \
-v "${PWD}/searxng:/etc/searxng" \
-e "BASE_URL=http://localhost:8001/" \
-e "INSTANCE_NAME=my-instance" \
searxng/searxng
Dify SearXNG#
Modify the SearXNG Configuration#
sudo vi my-instance/searxng/settings.yml
search:
formats:
- html
- json
server:
limiter: false
Authenticate in Dify#
Tools > SearXNG > To authorize
Tips#
sudo vi my-instance/searxng/settings.yml
server:
bind_address: "127.0.0.1"
base_url: http://localhost:8001/
ui:
default_locale: "zh-Hans-CN"
results_on_new_tab: true
engines:
- name: bing
disabled: false
base_url: "https://cn.bing.com/search"