docker/config.ru in sidekiq-prometheus-exporter-0.1.15 vs docker/config.ru in sidekiq-prometheus-exporter-0.1.16

- old
+ new

@@ -5,15 +5,16 @@ config = {} config[:url] = ENV['REDIS_URL'] if ENV.key?('REDIS_URL') unless config.key?(:url) + scheme = (ENV.fetch('REDIS_SSL', 'false') == 'true') ? 'rediss' : 'redis' host = ENV.fetch('REDIS_HOST', 'localhost') port = ENV.fetch('REDIS_PORT', 6379) db_number = ENV.fetch('REDIS_DB_NUMBER', 0) password = ":#{ENV['REDIS_PASSWORD']}" if ENV.key?('REDIS_PASSWORD') - config[:url] = "redis://#{password}@#{host}:#{port}/#{db_number}" + config[:url] = "#{scheme}://#{password}@#{host}:#{port}/#{db_number}" end if ENV.key?('REDIS_NAMESPACE') require 'redis-namespace'