summaryrefslogtreecommitdiff
path: root/utils/filtron.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-20 15:58:58 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-24 16:28:15 +0200
commit7196a9b5dd2525003bb7d69e2b58ee982df0c30b (patch)
tree81491cb47606ffabe6e1607b1c6bf603a3de0ab8 /utils/filtron.sh
parent61d3914b639dc71c00f404652e9d5da32ae7c401 (diff)
downloadsearxng-7196a9b5dd2525003bb7d69e2b58ee982df0c30b.tar.gz
searxng-7196a9b5dd2525003bb7d69e2b58ee982df0c30b.zip
[fix] ./utils/filtron.sh - FILTRON_TARGET from YAML settings
The filtron target is the SearXNG installation and the default of FILTRON_TARGET is taken from the YAML configuration ('server.port' & 'server.bind_address'). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/filtron.sh')
-rwxr-xr-xutils/filtron.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index dfd899096..3bd6f016d 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -23,7 +23,12 @@ FILTRON_RULES_TEMPLATE="${FILTRON_RULES_TEMPLATE:-${REPO_ROOT}/utils/templates/e
FILTRON_API="${FILTRON_API:-127.0.0.1:4005}"
FILTRON_LISTEN="${FILTRON_LISTEN:-127.0.0.1:4004}"
-FILTRON_TARGET="${FILTRON_TARGET:-127.0.0.1:8888}"
+
+# The filtron target is the SearXNG installation, listenning on server.port at
+# server.bind_address. The default of FILTRON_TARGET is taken from the YAML
+# configuration, do not change this value without reinstalling the entire
+# SearXNG suite including filtron & morty.
+FILTRON_TARGET="${SEARX_BIND_ADDRESS}:${SEARX_PORT}"
SERVICE_NAME="filtron"
SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"