add warning about enabling public_instance setting

This commit is contained in:
Emilien Devos 2023-09-25 22:20:07 +02:00 committed by MatthieuBarbu
parent 078d4a4d9c
commit 4ae7b27389

View File

@ -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."
)