Skip to content

Instantly share code, notes, and snippets.

@shunirr

shunirr/config.ru

Last active Apr 11, 2016
Embed
What would you like to do?
require 'rubygems'
require 'rack/reverse_proxy'
use Rack::ReverseProxy do
reverse_proxy '/callback', 'http://example.com/'
end
app = proc do |env|
[ 200, {'Content-Type' => 'text/plain'}, ["OK"] ]
end
run app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment