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
[mod][fix] using base_url instead of hostname in settings.py
asciimoo32512856b47f
diff --git a/searx/settings.py b/searx/settings.pyindex 9efdc20e3..70b7a4514 100644--- a/searx/settings.py+++ b/searx/settings.py@@ -13,4 +13,4 @@ blacklist = [] # search engine blacklistcategories = {} # custom search engine categories-hostname = None # domain name or None - if you want to rewrite the default HTTP host+base_url = None # "https://your.domain.tld/" or None (to use request parameters)diff --git a/searx/webapp.py b/searx/webapp.pyindex 6ac0046f1..c95cae2c2 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -165,8 +165,8 @@ def opensearch():method = 'get'if request.is_secure:scheme = 'https'- if settings.hostname:- hostname = '{0}://{1}/'.format(scheme,settings.hostname)+ if settings.base_url:+ hostname = settings.base_urlelse:hostname = url_for('index', _external=True, _scheme=scheme)ret = opensearch_xml.format(method=method, host=hostname)