rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob fcb9e74ef75d337cb5401437713023491094eb66 202 bytes (raw)
$ git show v5.1.0:examples/reverse_proxy.ru	# shows this blob on the CLI

1
2
3
4
5
6
7
8
9
 
# see Rainbows::ReverseProxy RDoc
cfg = {
  :upstreams => [
    "/tmp/.r.sock",
    "http://bogomips.org/",
    [ "http://10.6.6.6:666/", { :weight => 666 } ],
  ]
}
run Rainbows::ReverseProxy.new(cfg)

git clone https://yhbt.net/rainbows.git