Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appfolio/ae_reverse_proxy
Implementation of a rack compliant reverse proxy.
https://github.com/appfolio/ae_reverse_proxy
Last synced: about 2 months ago
JSON representation
Implementation of a rack compliant reverse proxy.
- Host: GitHub
- URL: https://github.com/appfolio/ae_reverse_proxy
- Owner: appfolio
- License: mit
- Created: 2021-01-25T17:42:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T00:14:41.000Z (10 months ago)
- Last Synced: 2024-10-05T20:06:31.328Z (3 months ago)
- Language: Ruby
- Size: 43 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this 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:
```ruby
gem 'ae_reverse_proxy'
```And then execute:
```bash
$ bundle install
```Or install it yourself as:
```bash
$ gem install ae_reverse_proxy
```Use it in a console with:
```bash
$ ./console
```## Usage
```ruby
class ImageController < ActionController::Base
include AeReverseProxy::ControllerCallbackMethodbefore_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](https://opensource.org/licenses/MIT).