Extensible rack application that serves as lightweight API reverse proxy.
Just add the gem to your Gemfile
gem 'api_valve'See the examples section on how to create & configure your own proxy using this gem.
By default the following headers are forwarded:
AcceptContent-TypeUser-AgentX-Real-IPX-Request-Id
Additionally these headers are generated:
X-Forwarded-For: The ApiGateway is added to the listX-Forwarded-Host: Filled with original request hostX-Forwarded-Port: Filled with original request portX-Forwarded-Prefix: Filled with the path prefix of the forwarder within the Api Gateway (egSCRIPT_NAMEenv)X-Forwarded-Proto: Filled with original request scheme