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
[fix] follow up of PR-1856
Alexandre Flament34e260f88f56
diff --git a/manage b/manageindex c887826e2..d61237984 100755--- a/manage+++ b/manage@@ -32,6 +32,12 @@ export NODE_MINIMUM_VERSION="16.13.0"BLACK_OPTIONS=("--target-version" "py37" "--line-length" "120" "--skip-string-normalization")BLACK_TARGETS=("--exclude" "searx/static,searx/languages.py" "--include" 'searxng.msg|\.pyi?$' "searx" "searxng_extra" "tests")+_dev_redis_sock="/usr/local/searxng-redis/run/redis.sock"+# set SEARXNG_REDIS_URL if it is not defined and "{_dev_redis_sock}" exists.+if [ -S "${_dev_redis_sock}" ] && [ -z "${SEARXNG_REDIS_URL}" ]; then+ export SEARXNG_REDIS_URL="unix://${_dev_redis_sock}?db=0"+fi+pylint.FILES() {# List files tagged by comment:@@ -65,6 +71,8 @@ help() {cat <<EOFbuildenv:rebuild ./utils/brand.env+webapp.:+ run : run developer instanceweblate.:push.translations: push translation changes from SearXNG to Weblate's counterpartto.translations: Update 'translations' branch with last additions from Weblate.@@ -121,6 +129,10 @@ pygments.:EOFgo.helpstatic_help+ cat <<EOF+environment ...+ SEARXNG_REDIS_URL : ${SEARXNG_REDIS_URL}+EOF}diff --git a/searx/settings_defaults.py b/searx/settings_defaults.pyindex 470290f92..cfa1bb47c 100644--- a/searx/settings_defaults.py+++ b/searx/settings_defaults.py@@ -174,7 +174,7 @@ SCHEMA = {'default_http_headers': SettingsValue(dict, {}),},'redis': {- 'url': SettingsValue((None, False, str), False),+ 'url': SettingsValue((None, False, str), False, 'SEARXNG_REDIS_URL'),},'ui': {'static_path': SettingsDirectoryValue(str, os.path.join(searx_dir, 'static')),