feat: configurable API rate limit
Python Lint CI / ruff-format-check (push) Successful in 54s
Python Lint CI / ty (push) Successful in 54s
Python Lint CI / ruff (push) Successful in 54s

This commit is contained in:
2026-07-03 15:41:57 +02:00
parent 42a5995647
commit 4e7f0476e0
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class Server(gunicorn.app.base.BaseApplication):
self.limiter = flask_limiter.Limiter(
flask_limiter.util.get_remote_address,
app=self.app,
default_limits=["100 per minute"],
default_limits=[params.api_rate_limit],
storage_uri=params.cache_uri,
)
self._index_content: str | None = None