diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2020-01-31 15:53:53 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-01-31 15:53:53 +0100 |
| commit | cd9b877c8c186925e7eab5088554fcf5fc2ca5d5 (patch) | |
| tree | f3e3dce0e107aacad5069d4886d6115c68a820f4 /utils/dot_config | |
| parent | 6274a54746b4444f8850aecea0cb0734c6bdc29c (diff) | |
utils/searx.sh & filtron.sh: misc changes from first tests (WIP)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/dot_config')
| -rw-r--r-- | utils/dot_config | 7 |
1 files changed, 4 insertions, 3 deletions
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/')}" |