Pars que j'ai GALERER POUR LE TROUVER!
Installer searx avec les paquets .deb du dépôt officiel.
1 on installe:
Code: Select all
sudo apt install searx nginx uwsgi uwsgi-plugin-python3
Avec nano on ouvre le fichier suivant:
Code: Select all
nano /usr/share/doc/python3-searx/README.Debian
Et c'est la que la magie opère
Code: Select all
It follows a step by step instruction of how to setup searx as a uwsgi service
behind nginx:
1. Copy and symlink the nginx configuration
$ cp /usr/share/doc/searx/examples/nginx/sites-available/searx /etc/nginx/sites-available
$ ln -s ../sites-available/searx /etc/nginx/sites-enabled/searx
2. Copy and symlink the uwsgi configuration
$ cp /usr/share/doc/searx/examples/uwsgi/apps-available/searx.ini /etc/uwsgi/apps-available
$ ln -s ../apps-available/searx.ini /etc/uwsgi/apps-enabled/searx.ini
3. Copy the default configuration file
$ mkdir /etc/searx
$ gzip --to-stdout --decompress /usr/share/doc/searx/examples/settings.yml.gz > /etc/searx/settings.yml
4. Generate a secret key
$ sed -i -e "s/ultrasecretkey/$(openssl rand -hex 16)/g" /etc/searx/settings.yml
5. Restart nginx and uwsgi
$ systemctl restart nginx
$ systemctl restart uwsgi
The differences to the upstream instructions are:
- the uwsgi user and group are www-data
- python3 is used instead of python2
- no virtualenv is used
- uwsgi pythonpath and chdir are Debian-specific
- no root directive is set in nginx configurationCode: Select all
sudo -sVoila une bonne raison de restez chez vous