-
Notifications
You must be signed in to change notification settings - Fork 1
Rate Limiting
Mathias Goncalves edited this page Mar 8, 2023
·
1 revision
Migas includes a sliding window rate limiter to avoid excessive pings from the same host. To control the upper threshold for this, refer to the table below:
Description | Environmental Variable | Default |
---|---|---|
Size of window to track responses (in seconds) | MIGAS_REQUEST_WINDOW |
60 |
Maximum number of requests allowed per window | MIGAS_MAX_REQUESTS_PER_WINDOW |
5 |
Maximum size of request body | MIGAS_MAX_REQUEST_SIZE |
2500 |
Disable rate limiting | MIGAS_BYPASS_RATE_LIMIT |
0 |