forked from Ponysearch/Ponysearch
add warning about enabling public_instance setting
This commit is contained in:
parent
47721a3485
commit
ffec8d1b4c
1 changed files with 6 additions and 0 deletions
|
@ -104,3 +104,9 @@ if max_request_timeout is None:
|
||||||
logger.info('max_request_timeout=%s', repr(max_request_timeout))
|
logger.info('max_request_timeout=%s', repr(max_request_timeout))
|
||||||
else:
|
else:
|
||||||
logger.info('max_request_timeout=%i second(s)', max_request_timeout)
|
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."
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue