haproxy.conf 431 B

123456789101112131415
  1. frontend cleartext_frontend
  2. bind 0.0.0.0:80
  3. option httplog
  4. use_backend be_olivetin_webs if { hdr(Host) -i olivetin.example.com && path_beg /websocket }
  5. use_backend be_olivetin_http if { hdr(Host) -i olivetin.example.com }
  6. backend be_olivetin_http
  7. server olivetinServer 127.0.0.1:1337 check
  8. backend be_olivetin_webs
  9. timeout tunnel 1h
  10. option http-server-close
  11. server olivetinServer 127.0.0.1:1337