1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-03 16:53:02 +00:00

Added command line option or overwriting limiter backend

Added logger functions to remove newlines in messages
CalibreTask has now a default name
This commit is contained in:
Ozzie Isaacs
2024-02-25 16:02:01 +01:00
parent 3c4ed0de1a
commit c3fc125501
5 changed files with 22 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ def create_app():
# Configure rate limiter
# https://limits.readthedocs.io/en/stable/storage.html
app.config.update(RATELIMIT_ENABLED=config.config_ratelimiter)
if config.config_limiter_uri != "":
if config.config_limiter_uri != "" and not cli_param.memory_backend:
app.config.update(RATELIMIT_STORAGE_URI=config.config_limiter_uri)
if config.config_limiter_options != "":
app.config.update(RATELIMIT_STORAGE_OPTIONS=config.config_limiter_options)