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] enable image proxy for public instances
vojkovice1d25c5078df
diff --git a/docs/admin/settings/settings_server.rst b/docs/admin/settings/settings_server.rstindex 1a03588af..dabfc259c 100644--- a/docs/admin/settings/settings_server.rst+++ b/docs/admin/settings/settings_server.rst@@ -47,6 +47,7 @@activated:- :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`+ - :ref:`image_proxy`.. _image_proxy:diff --git a/searx/__init__.py b/searx/__init__.pyindex 8977bac67..74c578c1d 100644--- a/searx/__init__.py+++ b/searx/__init__.py@@ -44,6 +44,12 @@ def init_settings():cfg = cfg or {}apply_schema(cfg, SCHEMA, [])+ if cfg['server']['public_instance']:+ cfg['server']['image_proxy'] = True+ lock = cfg.setdefault('preferences', {}).setdefault('lock', [])+ if 'image_proxy' not in lock:+ lock.append('image_proxy')+settings.clear()settings.update(cfg)@@ -66,7 +72,7 @@ def init_settings():if settings['server']['public_instance']:logger.warning("Be aware you have activated features intended only for public instances. "- "This force the usage of the limiter and link_token / "+ "This force the usage of the limiter, link_token and image proxy / ""see https://docs.searxng.org/admin/searx.limiter.html")