五折优惠 所有套餐限时优惠,起价 $2.48/mo
SearXNG

SearXNG

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

版本

最新

操作系统

Ubuntu Server 24.04 LTS

最小 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/月 起