From 7196a9b5dd2525003bb7d69e2b58ee982df0c30b Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 20 Jul 2021 15:58:58 +0200 Subject: [PATCH] [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 --- .config.sh | 1 - utils/filtron.sh | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.config.sh b/.config.sh index 4d86aca42..0e41a73b0 100644 --- a/.config.sh +++ b/.config.sh @@ -33,7 +33,6 @@ # FILTRON_API="127.0.0.1:4005" # FILTRON_LISTEN="127.0.0.1:4004" -# FILTRON_TARGET="127.0.0.1:8888" # utils/morty.sh # -------------- 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}}"