From ffec8d1b4cd3036d628b70628d54decc07b4fc2b Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Mon, 25 Sep 2023 22:20:07 +0200 Subject: [PATCH] add warning about enabling public_instance setting --- searx/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/searx/__init__.py b/searx/__init__.py index d2d389ea9..f86052660 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -104,3 +104,9 @@ if max_request_timeout is None: logger.info('max_request_timeout=%s', repr(max_request_timeout)) else: logger.info('max_request_timeout=%i second(s)', max_request_timeout) + +if settings['server']['public_instance']: + logger.warning( + "Be aware you have activated features intended only for public instances. " + + "This force the usage of the bot limiter and link_token plugins." + )