Merge branch 'main' into docs

This commit is contained in:
Wayne
2025-09-06 17:55:35 +03:00
2 changed files with 9 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ Open Archiver is built on a modern, scalable, and maintainable technology stack:
```bash
git clone https://github.com/LogicLabs-OU/OpenArchiver.git
cd open-archiver
cd OpenArchiver
```
2. **Configure your environment:**

View File

@@ -8,7 +8,11 @@ The rate limiter restricts the number of requests an IP address can make within
By default, the limits are:
<<<<<<< HEAD
- **100 requests** per **1 minute** per IP address.
=======
- **100 requests** per **15 minutes** per IP address.
>>>>>>> main
If this limit is exceeded, the API will respond with an HTTP `429 Too Many Requests` status code.
@@ -27,7 +31,11 @@ When an IP address is rate-limited, the API will return a JSON response with the
You can customize the rate-limiting settings by setting the following environment variables in your `.env` file:
<<<<<<< HEAD
- `RATE_LIMIT_WINDOW_MS`: The time window in milliseconds. Defaults to `60000` (1 minute).
=======
- `RATE_LIMIT_WINDOW_MS`: The time window in milliseconds. Defaults to `900000` (15 minutes).
>>>>>>> main
- `RATE_LIMIT_MAX_REQUESTS`: The maximum number of requests allowed per IP address within the time window. Defaults to `100`.
## Handling Rate Limits