Sha256: 30a6a9414001ecac427f89eebdada312433575f3bf82f73f407e9cc8a960db91

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

require 'kibana/rack'

ENV['EXAMPLE_NAME'] = 'Rack Basic Auth Example'

Kibana.configure do |config|
  config.kibana_dashboards_path = File.expand_path('../../dashboards', __FILE__)
end

map '/kibana' do
  use Rack::Auth::Basic, 'Restricted Access' do |username, password|
    username == 'kibana' && password == 'kibana'
  end

  run Kibana::Rack::Web
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kibana-rack-0.2.0 examples/rack_basic_auth/config.ru
kibana-rack-0.1.4 examples/rack_basic_auth/config.ru
kibana-rack-0.1.3 examples/rack_basic_auth/config.ru
kibana-rack-0.1.2 examples/rack_basic_auth/config.ru
kibana-rack-0.1.1 examples/rack_basic_auth/config.ru
kibana-rack-0.1.0 examples/rack_basic_auth/config.ru