Last active
April 11, 2016 16:25
-
-
Save shunirr/b24b680fa6171c7aed1571c120f3389c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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