SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
utils/lxc.env: separate environment that is used in containers
Markus Heiser491cb95a1f91
diff --git a/Makefile b/Makefileindex f62db2f03..1d26ef187 100644--- a/Makefile+++ b/Makefile@@ -89,6 +89,7 @@ test.sh:shellcheck -x utils/searx.shshellcheck -x utils/morty.shshellcheck -x utils/lxc.sh+ shellcheck -x utils/lxc.envshellcheck -x .config.shtest.pep8: pyenvinstalldiff --git a/utils/filtron.sh b/utils/filtron.shindex 663c2b1dc..c53acc607 100755--- a/utils/filtron.sh+++ b/utils/filtron.sh@@ -6,6 +6,7 @@# shellcheck source=utils/lib.shsource "$(dirname "${BASH_SOURCE[0]}")/lib.sh"source_dot_config+source "${REPO_ROOT}/utils/lxc.env"# ----------------------------------------------------------------------------# configdiff --git a/utils/lxc.env b/utils/lxc.envnew file mode 100644index 000000000..d470f256c--- /dev/null+++ b/utils/lxc.env@@ -0,0 +1,14 @@+# -*- coding: utf-8; mode: sh indent-tabs-mode: nil -*-+# SPDX-License-Identifier: AGPL-3.0-or-later++# Herein we place all, what is needed to know when inside containers. Its+# sourced from different context --> do not manipulate the environment directly,+# implement functions!++# shellcheck shell=sh++searx_suite_set_env() {+ export FILTRON_API="0.0.0.0:4005"+ export FILTRON_LISTEN="0.0.0.0:4004"+ export MORTY_LISTEN="0.0.0.0:3000"+}diff --git a/utils/lxc.sh b/utils/lxc.shindex ab9afcbb4..f950cdb1b 100755--- a/utils/lxc.sh+++ b/utils/lxc.sh@@ -5,6 +5,7 @@# shellcheck source=utils/lib.shsource "$(dirname "${BASH_SOURCE[0]}")/lib.sh"source_dot_config+source "${REPO_ROOT}/utils/lxc.env"# ----------------------------------------------------------------------------# config@@ -63,12 +64,6 @@ HOST_USER="${SUDO_USER:-$USER}"HOST_USER_ID=$(id -u "${HOST_USER}")HOST_GROUP_ID=$(id -g "${HOST_USER}")-searx_suite_set_env() {- export FILTRON_API="0.0.0.0:4005"- export FILTRON_LISTEN="0.0.0.0:4004"- export MORTY_LISTEN="0.0.0.0:3000"-}-# ----------------------------------------------------------------------------usage() {# ----------------------------------------------------------------------------diff --git a/utils/morty.sh b/utils/morty.shindex e7e2f8651..c3531f735 100755--- a/utils/morty.sh+++ b/utils/morty.sh@@ -5,6 +5,7 @@# shellcheck source=utils/lib.shsource "$(dirname "${BASH_SOURCE[0]}")/lib.sh"source_dot_config+source "${REPO_ROOT}/utils/lxc.env"# ----------------------------------------------------------------------------# configdiff --git a/utils/searx.sh b/utils/searx.shindex c435b5c00..1089f30d7 100755--- a/utils/searx.sh+++ b/utils/searx.sh@@ -6,6 +6,7 @@# shellcheck source=utils/lib.shsource "$(dirname "${BASH_SOURCE[0]}")/lib.sh"source_dot_config+source "${REPO_ROOT}/utils/lxc.env"# ----------------------------------------------------------------------------# config