@@ -4,79 +4,53 @@
7−Create the configuration file ``/etc/uwsgi/apps-available/searx.ini`` with this
7+Create the configuration ini-file according to your distribution (see below) and
8−content:
8+restart the uwsgi application.
10−.. code:: ini
10+.. tabs::
12− [uwsgi]
12+ .. group-tab:: Ubuntu / debian
14− # uWSGI core
14+ .. literalinclude:: ../../build/docs/includes/searx.rst
15− # ----------
15+ :start-after: START searx uwsgi-description ubuntu-20.04
16− #
16+ :end-before: END searx uwsgi-description ubuntu-20.04
17− # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#uwsgi-core
19− # Who will run the code
23− # chdir to specified directory before apps loading
19+ .. group-tab:: Arch Linux
24− chdir = /usr/local/searx/searx-src/searx
26− # disable logging for privacy
21+ .. literalinclude:: ../../build/docs/includes/searx.rst
27− disable-logging = true
22+ :start-after: START searx uwsgi-description arch
23+ :end-before: END searx uwsgi-description arch
29− # The right granted on the created socket
32− # Plugin to use and interpretor config
26+ .. group-tab:: Fedora / RHEL
33− single-interpreter = true
35− # enable master process
28+ .. literalinclude:: ../../build/docs/includes/searx.rst
36− master = true
29+ :start-after: START searx uwsgi-description fedora
30+ :end-before: END searx uwsgi-description fedora
38− # load apps in each worker instead of the master
41− # load uWSGI plugins
33+.. tabs::
42− plugin = python3,http
44− # By default the Python plugin does not initialize the GIL. This means your
35+ .. group-tab:: Ubuntu / debian
45− # app-generated threads will not run. If you need threads, remember to enable
46− # them with enable-threads. Running uWSGI in multithreading mode (with the
47− # threads options) will automatically enable threading support. This *strange*
48− # default behaviour is for performance reasons.
49− enable-threads = true
51− # plugin: python
37+ .. literalinclude:: ../../build/docs/includes/searx.rst
52− # --------------
38+ :language: ini
53− #
39+ :start-after: START searx uwsgi-appini ubuntu-20.04
54− # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-python
40+ :end-before: END searx uwsgi-appini ubuntu-20.04
56− # load a WSGI module
42+ .. group-tab:: Arch Linux
57− module = searx.webapp
59− # set PYTHONHOME/virtualenv
44+ .. literalinclude:: ../../build/docs/includes/searx.rst
60− virtualenv = /usr/local/searx/searx-pyenv
45+ :language: ini
46+ :start-after: START searx uwsgi-appini arch
47+ :end-before: END searx uwsgi-appini arch
62− # add directory (or glob) to pythonpath
49+ .. group-tab:: Fedora / RHEL
63− pythonpath = /usr/local/searx/searx-src
65−
51+ .. literalinclude:: ../../build/docs/includes/searx.rst
66− # plugin http
52+ :language: ini
67− # -----------
53+ :start-after: START searx uwsgi-appini fedora
68− #
54+ :end-before: END searx uwsgi-appini fedora
69− # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
71− # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
72− http = 127.0.0.1:8888
74−Activate the uwsgi application and restart:
78− cd /etc/uwsgi/apps-enabled
79− ln -s ../apps-available/searx.ini
80− /etc/init.d/uwsgi restart