Installatiegids voor SearXNG
Deze gids behandelt meerdere installatiemethoden voor het opzetten van je eigen SearXNG-instantie.
Installatiemethoden
1. Containerinstallatie (aanbevolen)
De makkelijkste en meest betrouwbare methode is het gebruik van Docker- of Podman-containers.
Vereisten:
- Docker of Podman geïnstalleerd
- Basiskennis van containerbeheer
Stappen:
# Pull the official SearXNG image
docker pull searxng/searxng
# Run with basic configuration
docker run -d --name searxng -p 8080:8080 searxng/searxng
2. Installatiescript
Er is een geautomatiseerd installatiescript beschikbaar dat de meeste configuratie automatisch afhandelt, inclusief de installatie van uWSGI.
Stappen:
# Download the installation script
curl -O https://raw.githubusercontent.com/searxng/searxng/master/utils/searxng.sh
# Make it executable and run
chmod +x searxng.sh
sudo ./searxng.sh
3. Handmatige installatie stap voor stap
Voor geavanceerde gebruikers die volledige controle over het installatieproces willen.
Vereisten:
- Python 3.8 of hoger
- uWSGI
- Git
- Buildtools (gcc, make, enz.)
- Webserver (NGINX of Apache)
Installatiestappen:
Installeer de benodigde pakketten:
# Ubuntu/Debian sudo apt install python3 python3-pip python3-venv python3-dev build-essential git uwsgi uwsgi-plugin-python3 # CentOS/RHEL sudo yum install python3 python3-pip python3-devel gcc git uwsgi uwsgi-plugin-python3Maak een eigen gebruiker aan:
sudo useradd -r -s /bin/false searxngKloon de repository:
sudo -u searxng git clone https://github.com/searxng/searxng.git /opt/searxng cd /opt/searxngConfigureer de instellingen:
# Copy default settings sudo cp /opt/searxng/searxng/settings.yml /etc/searxng/settings.yml # Edit configuration as needed sudo nano /etc/searxng/settings.ymlStel de webserver in:
Voorbeeld van NGINX-configuratie:
server { listen 80; server_name your-domain.com; location / { include uwsgi_params; uwsgi_pass unix:/run/uwsgi/app/searxng/socket; } }
Na de installatie
Ga na de installatie naar je SearXNG-instantie via http://your-server:port en controleer of deze correct werkt. Je kunt het uiterlijk, de engines en het gedrag aanpassen via het configuratiebestand settings.yml.
Problemen oplossen
- Problemen met rechten: Zorg ervoor dat de gebruiker searxng de juiste rechten heeft op alle bestanden
- Poortconflicten: Controleer of de gekozen poort al in gebruik is
- Engineconfiguratie: Sommige zoekmachines vereisen API-sleutels of een specifieke configuratie
- SSL-installatie: Configureer voor productiegebruik SSL-certificaten met Let's Encrypt of je gewenste CA
