File: reverse_proxy.ru

package info (click to toggle)
rainbows 5.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,424 kB
  • sloc: ruby: 5,287; sh: 4,166; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (4)
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)