From cd9b877c8c186925e7eab5088554fcf5fc2ca5d5 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 31 Jan 2020 15:53:53 +0100 Subject: utils/searx.sh & filtron.sh: misc changes from first tests (WIP) Signed-off-by: Markus Heiser --- utils/dot_config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'utils/dot_config') diff --git a/utils/dot_config b/utils/dot_config index e4c283744..0d6758a18 100644 --- a/utils/dot_config +++ b/utils/dot_config @@ -1,8 +1,9 @@ # -*- coding: utf-8; mode: sh -*- # SPDX-License-Identifier: AGPL-3.0-or-later # -# Set environment used by ./utils scripts like filtron.sh or searx.sh +# environment used by utils scripts like filtron.sh or searx.sh # -# Public URL of the searx instance -PUBLIC_URL="${PUBLIC_URL:-https://$(uname -n)/searx}" +# the public URL of the searx instance +PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}" +PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}" -- cgit v1.2.3