Class: Rack::Reproxy::Nginx
- Inherits:
-
Middleware
- Object
- Middleware
- Rack::Reproxy::Nginx
- 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
-
#initialize(app, options = {}) ⇒ Nginx
constructor
A new instance of Nginx.
Methods inherited from Middleware
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, = {}) super @location = .fetch(:location, '/reproxy') end |