mirror of
https://github.com/LogicLabs-OU/OpenArchiver.git
synced 2026-04-06 00:31:57 +02:00
Merge branch 'main' into docs
This commit is contained in:
@@ -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:**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user