summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorEmilien Devos <4016501+unixfox@users.noreply.github.com>2023-09-25 22:20:07 +0200
committerAlexandre Flament <alex@al-f.net>2023-09-25 22:31:14 +0200
commitffec8d1b4cd3036d628b70628d54decc07b4fc2b (patch)
tree1fd89dd02cff54385807f2ad03f090453fa15bd8 /searx/__init__.py
parent47721a34855d2a68aef7f96dd7d297965d28416c (diff)
downloadsearxng-ffec8d1b4cd3036d628b70628d54decc07b4fc2b.tar.gz
searxng-ffec8d1b4cd3036d628b70628d54decc07b4fc2b.zip
add warning about enabling public_instance setting
Diffstat (limited to 'searx/__init__.py')
-rw-r--r--searx/__init__.py6
1 files changed, 6 insertions, 0 deletions
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."
+ )