Sha256: fd3e70b0454d437968a755f288d2db046904591488e1e2a7ec1c538702fb1eea
Contents?: true
Size: 1.3 KB
Versions: 12
Compression:
Stored size: 1.3 KB
Contents
RailsPerformance.setup do |config| config.redis = Redis::Namespace.new("#{Rails.env}-rails-performance", redis: Redis.new) config.duration = 4.hours config.debug = false # currently not used> config.enabled = true # default path where to mount gem config.mount_at = '/rails/performance' # protect your Performance Dashboard with HTTP BASIC password config.http_basic_authentication_enabled = false config.http_basic_authentication_user_name = 'rails_performance' config.http_basic_authentication_password = 'password12' # if you need an additional rules to check user permissions config.verify_access_proc = proc { |controller| true } # for example when you have `current_user` # config.verify_access_proc = proc { |controller| controller.current_user && controller.current_user.admin? } # You can ignore endpoints with Rails standard notation controller#action # config.ignored_endpoints = ['HomeController#contact'] # store custom data for the request # config.custom_data_proc = proc do |env| # request = Rack::Request.new(env) # { # email: request.env['warden'].user&.email, # if you are using Devise for example # user_agent: request.env['HTTP_USER_AGENT'] # } # end # config home button link config.home_link = '/' end if defined?(RailsPerformance)
Version data entries
12 entries across 12 versions & 1 rubygems