Skip to content

Commit b13628c

Browse files
committed
Include Fail2ban configuration in README
1 parent 30b3302 commit b13628c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,34 @@ The API token to allow access to your Campfire account.
325325

326326
For more options to set Campfire, like _ssl_, check [here](https://github.com/collectiveidea/tinder/blob/master/lib/tinder/campfire.rb#L17).
327327

328+
### Fail2ban notifier
329+
330+
This notifier creates a log file you can then parse with [fail2ban](http://www.fail2ban.org/)
331+
332+
#### Usage
333+
334+
To configure the notifier, you don't need anything, although you can customise the `logifile` value, like this:
335+
336+
```ruby
337+
Whatever::Application.config.middleware.use ExceptionNotification::Rack,
338+
:email => {
339+
:email_prefix => "[Whatever] ",
340+
:sender_address => %{"notifier" <[email protected]>},
341+
:exception_recipients => %w{[email protected]}
342+
},
343+
:fail2ban => {
344+
:logfile => '/path/to/logs/fail2ban.log'
345+
}
346+
```
347+
348+
#### Options
349+
350+
##### logfile
351+
352+
*String, not required*
353+
354+
An alternative log file location. By default Rails.root.join('log', 'fail2ban.log')
355+
328356

329357
### HipChat notifier
330358

0 commit comments

Comments
 (0)