]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/haproxy/osrf-ws-http-proxy
1db4cd6db67d0ecd5459d85de84c1d0f8f97a1e8
[OpenSRF.git] / examples / haproxy / osrf-ws-http-proxy
1 listen web
2         bind 0.0.0.0:80
3         mode http
4         option forwardfor
5         balance roundrobin
6         server web01 localhost:7080 check
7
8 frontend https_ws
9         bind 0.0.0.0:443 ssl crt /etc/apache2/ssl/cert_plus_key.pem
10         mode http
11         option forwardfor
12         option httpclose
13         reqadd X-Forwarded-Proto:\ https
14         acl is_websocket hdr(Upgrade) -i WebSocket
15         use_backend ws if is_websocket
16         default_backend https_server
17
18 backend https_server
19         mode http
20         balance roundrobin
21         server s1 localhost:7443 ssl verify none
22
23 backend ws
24         timeout server 300s
25         server ws1 localhost:7682 verify none