filtron.sh.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. .. _filtron.sh overview:
  45. Overview
  46. ========
  47. The ``--help`` output of the script is largely self-explanatory
  48. (:ref:`toolboxing common`):
  49. .. program-output:: ../utils/filtron.sh --help