@@ -1,14 +1,22 @@
1+
2+.. _searx_filtron:
3+
14==========================
25How to protect an instance
36==========================
47
8+.. sidebar:: further reading
9+
10+ - :ref:`filtron.sh`
11+
512.. _filtron: https://github.com/asciimoo/filtron
613
714Searx depens on external search services. To avoid the abuse of these services
815it is advised to limit the number of requests processed by searx.
916
1017An application firewall, filtron_ solves exactly this problem. Filtron is just
11−a middleware between your web server (nginx, apache, ...) and searx.
18+a middleware between your web server (nginx, apache, ...) and searx, we describe
19+such infratructures in chapter: :ref:`architecture`.
1220
1321
1422filtron & go
@@ -17,32 +25,10 @@ filtron & go
1725.. _Go: https://golang.org/
1826.. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
1927
20−
21−.. sidebar:: init system
22−
23− ATM the ``filtron.sh`` supports only systemd init process used by debian,
24− ubuntu and many other dists. If you have a working init.d file to start/stop
25− filtron service, please contribute.
26−
2728Filtron needs Go_ installed. If Go_ is preinstalled, filtron_ is simply
2829installed by ``go get`` package management (see `filtron README`_). If you use
29−filtron as middleware, a more isolated setup is recommended.
30−
31−#. Create a separated user account (``filtron``).
32−#. Download and install Go_ binary in users $HOME (``~filtron``).
33−#. Install filtron with the package management of Go_ (``go get -v -u
34− github.com/asciimoo/filtron``)
35−#. Setup a proper rule configuration :origin:`[ref]
36− <utils/templates/etc/filtron/rules.json>` (``/etc/filtron/rules.json``).
37−#. Setup a systemd service unit :origin:`[ref]
38− <utils/templates/lib/systemd/system/filtron.service>`
39− (``/lib/systemd/system/filtron.service``).
40−
41−To simplify such a installation and the maintenance of; use our script
42−``utils/filtron.sh``:
43−
44−.. program-output:: ../utils/filtron.sh --help
45− :ellipsis: 0,5
30+filtron as middleware, a more isolated setup is recommended. To simplify such
31+an installation and the maintenance of, use our script :ref:`filtron.sh`.
4632
4733
4834Sample configuration of filtron