Add link to example configuration in README

This commit is contained in:
Zach Millman 2014-04-23 15:47:24 -05:00
parent 66231dc5b2
commit 7af1239655

View file

@ -36,6 +36,17 @@ Or for Rackup files:
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:
```ruby