Skip to content

Instantly share code, notes, and snippets.

@shunirr
Last active April 11, 2016 16:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shunirr/b24b680fa6171c7aed1571c120f3389c to your computer and use it in GitHub Desktop.
Save shunirr/b24b680fa6171c7aed1571c120f3389c to your computer and use it in GitHub Desktop.
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