filtron.sh.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .. _filtron.sh:
  2. ====================
  3. ``utils/filtron.sh``
  4. ====================
  5. .. sidebar:: further reading
  6. - :ref:`installation`
  7. - :ref:`searx_filtron`
  8. - :ref:`architecture`
  9. .. _Go: https://golang.org/
  10. .. _filtron: https://github.com/asciimoo/filtron
  11. .. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
  12. To simplify installation and maintenance of a filtron instance you can use the
  13. script :origin:`utils/filtron.sh`. In most cases you will install filtron_
  14. simply by running the command:
  15. .. code:: bash
  16. sudo -H ./utils/filtron.sh install all
  17. The script adds a ``${SERVICE_USER}`` (default:``filtron``) and installs filtron_
  18. into this user account:
  19. #. Create a separated user account (``filtron``).
  20. #. Download and install Go_ binary in users $HOME (``~filtron``).
  21. #. Install filtron with the package management of Go_ (``go get -v -u
  22. github.com/asciimoo/filtron``)
  23. #. Setup a proper rule configuration :origin:`[ref]
  24. <utils/templates/etc/filtron/rules.json>` (``/etc/filtron/rules.json``).
  25. #. Setup a systemd service unit :origin:`[ref]
  26. <utils/templates/lib/systemd/system/filtron.service>`
  27. (``/lib/systemd/system/filtron.service``).
  28. .. _reverse proxy:
  29. Public Reverse Proxy
  30. ====================
  31. To install searx in your public HTTP server use:
  32. .. code:: bash
  33. sudo -H ./utils/filtron.sh apache install
  34. .. tabs::
  35. .. group-tab:: apache
  36. .. literalinclude:: ../../utils/templates/etc/apache2/sites-available/searx.conf:filtron
  37. :language: apache
  38. .. tabs::
  39. .. group-tab:: Ubuntu / debian
  40. .. code-block:: sh
  41. $ sudo -H a2enmod headers
  42. $ sudo -H a2enmod proxy
  43. $ sudo -H a2enmod proxy_http
  44. Overview
  45. ========
  46. The ``--help`` output of the script is largely self-explanatory
  47. (:ref:`toolboxing common`):
  48. .. program-output:: ../utils/filtron.sh --help