class ApplicationController < ActionController::API

  protected 
  def proxy(url)
    logger.debug "Proxying to #{url}"

    proxy_response = HTTP.timeout(:per_operation, :connect => 3, :read => 1, :write => 1).get(url)

    send_data proxy_response.body, 
      content_type: proxy_response['Content-Type'], 
      disposition: "inline",
      status: proxy_response.code
  end
end

class ApplicationController < ActionController::API

  protected 
  def proxy(url)
    logger.debug "Proxying to #{url}"

    proxy_response = HTTP.timeout(:per_operation, :connect => 4, :read => 3, :write => 3).get(url)

    send_data proxy_response.body, 
      content_type: proxy_response['Content-Type'], 
      disposition: "inline",
      status: proxy_response.code
  end
end

Increase image proxy timeouts a bit.
Increase image proxy timeouts a bit.
