mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Merge pull request #61 from zmillman/readme-wiki-link
Add link to example configuration in README
This commit is contained in:
commit
1903edd1cf
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
|
@ -36,6 +36,17 @@ Or for Rackup files:
|
||||||
use Rack::Attack
|
use Rack::Attack
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Add a `rack-attack.rb` file to `config/initalizers/`:
|
||||||
|
```ruby
|
||||||
|
# In config/initializers/rack-attack.rb
|
||||||
|
module Rack::Attack
|
||||||
|
# configuration...
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
*Tip:* The example in the wiki is a great way to get started:
|
||||||
|
[Example Configuration](https://github.com/kickstarter/rack-attack/wiki/Example-Configuration)
|
||||||
|
|
||||||
Optionally configure the cache store for throttling:
|
Optionally configure the cache store for throttling:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue