diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-05-26 17:24:43 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2023-06-01 14:38:53 +0200 |
commit | 66fdec0eb92bf11c0bc477d6fb1df3dc783e4dcb (patch) | |
tree | 2ce8a9ecf1cdae68e4745c24cab01482d07a5447 /searx/plugins | |
parent | 1ec325adccc427fe05cf08da9a2d9d63da7365f4 (diff) | |
download | searxng-66fdec0eb92bf11c0bc477d6fb1df3dc783e4dcb.tar.gz searxng-66fdec0eb92bf11c0bc477d6fb1df3dc783e4dcb.zip |
[mod] limiter: add config file /etc/searxng/limiter.toml
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/limiter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py index d9566b92b..92b0aa2a0 100644 --- a/searx/plugins/limiter.py +++ b/searx/plugins/limiter.py @@ -38,5 +38,6 @@ def init(app: flask.Flask, settings) -> bool: if not redisdb.client(): logger.error("The limiter requires Redis") return False + limiter.init_cfg(logger) app.before_request(pre_request) return True |