File: reverse_proxy.ru

package info (click to toggle)
rainbows 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,552 kB
  • ctags: 823
  • sloc: ruby: 5,280; sh: 4,255; 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)