Add API rate limits
This commit is contained in:
@@ -102,6 +102,9 @@ Other tunables (defaults shown in compose):
|
||||
- `ELASTIC_VERIFY_CERTS` (set to `1` for real TLS verification)
|
||||
- `QDRANT_COLLECTION` (default `tlc-captions-full`)
|
||||
- `QDRANT_VECTOR_NAME` / `QDRANT_VECTOR_SIZE` / `QDRANT_EMBED_MODEL`
|
||||
- `RATE_LIMIT_ENABLED` (default `1`)
|
||||
- `RATE_LIMIT_REQUESTS` (default `60`)
|
||||
- `RATE_LIMIT_WINDOW_SECONDS` (default `60`)
|
||||
|
||||
Port 8080 on the host is forwarded to the app. Mount `./data` (read-only) if you want local fallbacks for metrics (`LOCAL_DATA_DIR=/app/data/video_metadata`); otherwise the app will rely purely on the remote backends. Stop the container with `docker compose down`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user