filtron.sh.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .. _filtron.sh:
  2. ====================
  3. ``utils/filtron.sh``
  4. ====================
  5. .. sidebar:: further reading
  6. - :ref:`searx_filtron`
  7. - :ref:`architecture`
  8. .. _Go: https://golang.org/
  9. .. _filtron: https://github.com/asciimoo/filtron
  10. .. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
  11. To simplify installation and maintenance of a filtron instance you can use the
  12. script :origin:`utils/filtron.sh`. In most cases you will install filtron_
  13. simply by running the command:
  14. .. code:: bash
  15. sudo -H ./utils/filtron.sh install all
  16. The script adds a ``${SERVICE_USER}`` (default:``filtron``) and installs filtron_
  17. into this user account:
  18. #. Create a separated user account (``filtron``).
  19. #. Download and install Go_ binary in users $HOME (``~filtron``).
  20. #. Install filtron with the package management of Go_ (``go get -v -u
  21. github.com/asciimoo/filtron``)
  22. #. Setup a proper rule configuration :origin:`[ref]
  23. <utils/templates/etc/filtron/rules.json>` (``/etc/filtron/rules.json``).
  24. #. Setup a systemd service unit :origin:`[ref]
  25. <utils/templates/lib/systemd/system/filtron.service>`
  26. (``/lib/systemd/system/filtron.service``).
  27. .. _reverse proxy:
  28. Public Reverse Proxy
  29. ====================
  30. .. tabs::
  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