2020-02-03 12:25:51 +00:00
|
|
|
|
|
|
|
.. _searx.sh:
|
|
|
|
|
|
|
|
==================
|
|
|
|
``utils/searx.sh``
|
|
|
|
==================
|
|
|
|
|
2020-02-04 12:13:17 +00:00
|
|
|
.. sidebar:: further reading
|
|
|
|
|
|
|
|
- :ref:`installation`
|
|
|
|
- :ref:`architecture`
|
2020-02-04 15:42:13 +00:00
|
|
|
- :ref:`filtron.sh`
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-02-03 12:25:51 +00:00
|
|
|
To simplify installation and maintenance of a searx instance you can use the
|
2020-02-04 15:42:13 +00:00
|
|
|
script :origin:`utils/searx.sh`.
|
|
|
|
|
|
|
|
Install
|
|
|
|
=======
|
|
|
|
|
|
|
|
In most cases you will install searx simply by running the command:
|
2020-02-03 12:25:51 +00:00
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
sudo -H ./utils/searx.sh install all
|
|
|
|
|
|
|
|
The script adds a ``${SERVICE_USER}`` (default:``searx``) and installs searx
|
2020-02-04 12:13:17 +00:00
|
|
|
into this user account. The installation is described in chapter
|
|
|
|
:ref:`installation basic`.
|
2020-02-03 12:25:51 +00:00
|
|
|
|
2020-02-04 12:13:17 +00:00
|
|
|
.. _intranet reverse proxy:
|
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
Overview
|
|
|
|
========
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
The ``--help`` output of the script is largely self-explanatory
|
|
|
|
(:ref:`toolboxing common`):
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. program-output:: ../utils/searx.sh --help
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
|
|
|
|
Intranet Reverse Proxy
|
|
|
|
======================
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-02-04 15:42:13 +00:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This setup is **not** suitable **for public instances**, go on with
|
|
|
|
:ref:`reverse proxy`!
|
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
To install searx in your intranet HTTP server use:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
sudo -H ./utils/searx.sh apache install
|
|
|
|
|
2020-02-04 12:13:17 +00:00
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: apache
|
2020-02-03 12:25:51 +00:00
|
|
|
|
2020-02-04 12:13:17 +00:00
|
|
|
.. literalinclude:: ../../utils/templates/etc/apache2/sites-available/searx.conf:uwsgi
|
2020-03-30 16:47:01 +00:00
|
|
|
:language: apache
|
2020-02-04 12:13:17 +00:00
|
|
|
|
|
|
|
.. tabs::
|
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. group-tab:: Ubuntu / debian
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. code-block:: sh
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
$ sudo -H apt install libapache2-mod-uwsgi
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. group-tab:: Arch Linux
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. code-block:: sh
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
$ sudo -H pacman -S uwsgi
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. group-tab:: Fedora / RHEL
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
.. code-block:: sh
|
2020-02-04 12:13:17 +00:00
|
|
|
|
2020-03-30 16:47:01 +00:00
|
|
|
$ sudo -H dnf install uwsgi
|