diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/reverse_proxy.ru | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/reverse_proxy.ru b/examples/reverse_proxy.ru new file mode 100644 index 0000000..fcb9e74 --- /dev/null +++ b/examples/reverse_proxy.ru @@ -0,0 +1,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) |