SearXNG에 액세스하기
- 브라우저를 열고 방문하세요:
https://<SERVER_IP>/searxng - 브라우저 SSL 경고가 예상됩니다 (자체 서명 인증서)
- 인증이 필요합니다. (기본인증 팝업)
- 인증 방법: 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 캐시를 유지합니다.