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
[enh] overwrite secret_key from env with the SEARX_SECRET env var if exists - closes #845
Adam Taubere3033393709b
diff --git a/searx/__init__.py b/searx/__init__.pyindex a57588cd3..9cb832266 100644--- a/searx/__init__.py+++ b/searx/__init__.py@@ -87,3 +87,6 @@ if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2):logger.warning('You are using an old openssl version({0}), please upgrade above 1.0.2!'.format(OPENSSL_VERSION))logger.info('Initialisation done')++if 'SEARX_SECRET' in environ:+ settings['server']['secret_key'] = environ['SEARX_SECRET']