2020-01-29 19:00:50 +00:00
|
|
|
# -*- coding: utf-8; mode: sh -*-
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#
|
2020-01-31 14:53:53 +00:00
|
|
|
# environment used by utils scripts like filtron.sh or searx.sh
|
2020-01-29 19:00:50 +00:00
|
|
|
#
|
|
|
|
|
2020-01-31 14:53:53 +00:00
|
|
|
# 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/')}"
|