config.ru in proxes-0.8.6 vs config.ru in proxes-0.9.0
- old
+ new
@@ -49,22 +49,17 @@
Ditty.component :proxes
run Rack::URLMap.new Ditty::Components.routes
end
-require 'sidekiq/web'
-map '/_sidekiq' do
- run Sidekiq::Web
-end
-
map '/' do
# Proxy all Elasticsearch requests
require 'proxes/security'
require 'proxes/forwarder'
# Security
use ProxES::Security, Ditty::Services::Logger.instance
use Rack::ContentLength
# Forward requests to ES
- run ProxES::Forwarder.new(backend: ENV['ELASTICSEARCH_URL'])
+ run ProxES::Forwarder.instance
end