Sha256: a116713eab905c2c2c27602b57d9e4b8f0a81db2374867e776bcf5bd2089fee0
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
load 'rack/attack_extensions.rb' if Rails.env.development? module RackAttackAdmin class RackAttackController < RackAttackAdmin::ApplicationController # Web version of lib/tasks/rack_attack_admin_tasks.rake def index @default_banned_ip = Rack::Attack::BannedIp.new(bantime: '60 m') @banned_ip_keys = Rack::Attack::Fail2Ban.banned_ip_keys @counters_h = Rack::Attack.counters_h. without(*Rack::Attack::BannedIps.keys) render end def current_request render json: current_request_rack_attack_stats end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack_attack_admin-0.1.1 | app/controllers/rack_attack_admin/rack_attack_controller.rb |
rack_attack_admin-0.1.0 | app/controllers/rack_attack_admin/rack_attack_controller.rb |