Sha256: 0c11c268c0d65c248a60d4f7238b48e2a64c7716bd7cbdaaa932bd69626cbd65
Contents?: true
Size: 591 Bytes
Versions: 7
Compression:
Stored size: 591 Bytes
Contents
module Kibana module Sinatra class Web < ::Sinatra::Base set :root, File.expand_path(File.dirname(__FILE__) + "/../../kibana") set :public_folder, Proc.new { "#{root}/assets" } set :views, Proc.new { "#{root}/views" } get '/' do File.read("#{settings.public_folder}/index.html") end get '/config.js' do content_type 'text/javascript' erb :config end def elasticsearch_url "http://\"+window.location.hostname+\":9200" end def kibana_index "kibana-int" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems