]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/haproxy/osrf-ws-http-proxy
bump up version numbers for 3.1.0-beta release
[OpenSRF.git] / examples / haproxy / osrf-ws-http-proxy
1 listen web 0.0.0.0:80
2         mode http
3         option forwardfor
4         http-request set-header X-Client-IP %[src]
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 ssl verify none