跳至主要内容
五折优惠 全部方案,限时优惠。起价 $2.48/mo
SearXNG

SearXNG

SearXNG 是一款保护隐私的元搜索引擎。聚合来自 70 多个来源(Google、Bing、DuckDuckGo、Wikipedia)的搜索结果,无追踪、无广告,支持自定义主题。采用 AGPL 许可证,是部署量最大的开源元搜索引擎。

快速概览

32.6k

GitHub star 数

259

页面浏览量

94

活跃安装数

许可证 AGPL-3.0 版本 Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

活跃安装数为示例数据(预览版);正式版本将接入真实数据。

访问 SearXNG

  • 打开浏览器,访问: https://<SERVER_IP>/searxng
  • 浏览器会出现 SSL 警告,这是预期的(自签名证书)
  • 需要身份验证(Basic Auth 弹窗)
  • 验证方式:HTTP Basic Auth
  • 凭据安全存储于: /root/.cloudzy-creds

重要路径

  • 安装目录: /root/searxng
  • Docker Compose 文件: /root/searxng/docker-compose.yml
  • 环境文件: /root/searxng/.env
  • 核心配置: /root/searxng/core-config/
  • Nginx 虚拟主机: /etc/nginx/sites-available/searxng
  • 认证文件: /etc/nginx/auth/searxng.htpasswd
  • TLS 证书: /etc/nginx/ssl/

为域名启用 SSL

1. 将域名解析到服务器 IP。

2. 编辑 Nginx 配置,把两处 server_name <IP>; 替换为你的域名(<your-domain>)在 HTTP(端口 80)和 HTTPS(端口 443)两个块中都替换:

vim /etc/nginx/sites-available/searxng

3. 安装 Certbot:

apt install -y certbot python3-certbot-nginx

4. 运行以下命令生成有效的 Let's Encrypt 证书:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 替换 Nginx 配置中的 SSL 路径:

vim /etc/nginx/sites-available/searxng
# Before:
    # ssl_certificate       /etc/nginx/ssl/fullchain.pem;
    # ssl_certificate_key   /etc/nginx/ssl/privkey.pem;
# After:
    # ssl_certificate       /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key   /etc/letsencrypt/live/yourdomain.com/privkey.pem;

6. 重启 Nginx 以应用更改:

systemctl restart nginx

7. 打开浏览器,访问: https://yourdomain.com

笔记

  • 在以下位置自定义 SearXNG 配置 /root/searxng/core-config/.
  • SearXNG 在内部监听 127.0.0.1:8080。
  • Nginx 提供 /searxng 通过 Basic Auth 公开访问。
  • Docker 卷持久化核心数据和 Valkey 缓存。

更多自托管内容

相关应用。

立即部署 SearXNG。 起价 $2.48/月。