diff --git a/README.md b/README.md index 2b9f314..4883ab9 100644 --- a/README.md +++ b/README.md @@ -64,5 +64,6 @@ Migas includes the following environmental variables to allow finer control when | Environmental Variable | Description | Default | | ---- | ---- | ---- | | MIGAS_REQUEST_WINDOW | A sliding window for limiting number of queries (in seconds) | 60 | -| MIGAS_REQUESTS_PER_WINDOW | Maximum number of requests per `MIGAS_REQUEST_WINDOW` | 5 | +| MIGAS_MAX_REQUESTS_PER_WINDOW | Maximum number of requests per `MIGAS_REQUEST_WINDOW` | 5 | | MIGAS_MAX_REQUEST_SIZE | Maximum size of request body | 450 | +| MIGAS_BYPASS_RATE_LIMIT | Avoid requests cap | 0 | diff --git a/docker-compose.yml b/docker-compose.yml index 3cc9c32..f8bf8d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,11 @@ services: environment: MIGAS_REDIS_URI: "redis://cache:6379" DATABASE_URL: "postgresql+asyncpg://postgres:crumbs@postgres:5432/migas" + MIGAS_REQUEST_WINDOW: + MIGAS_MAX_REQUESTS_PER_WINDOW: + MIGAS_MAX_REQUEST_SIZE: + MIGAS_BYPASS_RATE_LIMIT: + MIGAS_DEBUG: # Redis in-memory db cache: