diff options
Diffstat (limited to 'utils/dot_config')
| -rw-r--r-- | utils/dot_config | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/dot_config b/utils/dot_config new file mode 100644 index 000000000..0d6758a18 --- /dev/null +++ b/utils/dot_config @@ -0,0 +1,9 @@ +# -*- coding: utf-8; mode: sh -*- +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# environment used by utils scripts like filtron.sh or searx.sh +# + +# 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/')}" |