README.rdoc in em-proxy-0.1.4 vs README.rdoc in em-proxy-0.1.5

- old
+ new

@@ -5,17 +5,20 @@ - Slides from RailsConf 2009: http://bit.ly/D7oWB - GoGaRuCo notes & Slides: http://www.igvita.com/2009/04/20/ruby-proxies-for-scale-and-monitoring/ == Getting started - # install & configure gemcutter repos - gem update --system - gem install gemcutter - gem tumble + $> gem install em-proxy + $> em-proxy + Usage: em-proxy [options] + -l, --listen [PORT] Port to listen on + -d, --duplex [host:port, ...] List of backends to duplex data to + -r, --relay [hostname:port] Relay endpoint: hostname:port + -v, --verbose Run in debug mode - gem install em-proxy + $> em-proxy -l 8080 -r localhost:8081 -d localhost:8082,localhost:8083 -v - irb:0> require 'em-proxy' +The above will start em-proxy on port 8080, relay and respond with data from port 8081, and also (optional) duplicate all traffic to ports 8082 and 8083 (and discard their responses). == Simple port forwarding proxy Proxy.start(:host => "0.0.0.0", :port => 80, :debug => true) do |conn| conn.server :srv, :host => "127.0.0.1", :port => 81