Skip to content

Commit

Permalink
fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
IndraGunawan committed Jun 14, 2017
1 parent 26de647 commit 5289212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Default bundle configuration
indragunawan_api_rate_limit:
enabled: true

# The service that is used to persist rate limit metadata. The service has to implement the Doctrine\Common\Cache\Cache interface.
# The service that is used to persist rate limit metadata. The service has to implement the Doctrine\Common\Cache\Cache interface. If no service id provided then the default storage is Filesystem (location: %kernel.cache_dir%/rate_limit).
storage: null

# Response header for rate limit information
Expand All @@ -66,12 +66,13 @@ indragunawan_api_rate_limit:
# Exception thrown when rate limit exceeded
exception:
status_code: 429
message: 'API rate limit exceeded for %s.' #%s will be replace with client IP address
message: 'API rate limit exceeded for %s.' # %s will be replace with client IP address
custom_exception: null
```
### Disable on development
```yml
# app/config/config_dev.yml
indragunawan_api_rate_limit:
enabled: false
```
Expand Down

0 comments on commit 5289212

Please sign in to comment.