Skip to content

appfolio/ae_reverse_proxy

Repository files navigation

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.

About

Implementation of a rack compliant reverse proxy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages