Class: Rack::Reproxy::Nginx

Inherits:
Middleware show all
Defined in:
lib/rack/reproxy.rb

Overview

Nginx relies on an upstream /reproxy location that proxies to X-Reproxy-Url. So we just return an X-Accel-Redirect: /reproxy header.

Instance Method Summary collapse

Methods inherited from Middleware

#call

Constructor Details

#initialize(app, options = {}) ⇒ Nginx

Returns a new instance of Nginx.



115
116
117
118
# File 'lib/rack/reproxy.rb', line 115

def initialize(app, options = {})
  super
  @location = options.fetch(:location, '/reproxy')
end