The project is in a healthy, maintained state
Gem for reverse proxying requests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.3.6, < 3
>= 2.2.3, < 4
 Project Readme

AeReverseProxy

A reverse proxy accepts a request from a client, forwards it to a server that can fulfill it, and returns the server's response to the client

This is forked from https://github.com/axsuul/rails-reverse-proxy. Thanks to https://github.com/axsuul and contributors.

Installation

Add this line to your application's Gemfile:

gem 'ae_reverse_proxy'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install ae_reverse_proxy

Use it in a console with:

$ ./console

Usage

class ImageController < ActionController::Base
  include AeReverseProxy::ControllerCallbackMethod

  before_action do
    reverse_proxy('https://www.another_server.com')
  end
end

Reference implementation: https://github.com/appfolio/screenings_app/blob/master/app/controllers/concerns/ssuid_forwardable.rb

License

The gem is available as open source under the terms of the MIT License.