SeaXNG へのアクセス
- ブラウザを開いて次にアクセス:
https://<SERVER_IP>/searxng - ブラウザのSSL警告は想定内です (自己署名証明書)
- 認証が必要です (Basic Auth ポップアップ)
- 認証方式:HTTPベーシック認証
- 認証情報は次の場所に安全に保存されます。
/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基本認証を使用してパブリックに。 - Docker ボリュームはコア データと Valkey キャッシュを保持します。