mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Add link to example configuration in README
This commit is contained in:
parent
66231dc5b2
commit
7af1239655
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
|
||||
```
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue