Haproxy - DNS based

This is a straightforward example of how to setup a DNS name based HAProxy setup for OliveTin.

frontend cleartext_frontend

    option httplog

    use_backend be_olivetin_webs if { hdr(Host) -i olivetin.example.com && path_beg /websocket }
    use_backend be_olivetin_http if { hdr(Host) -i olivetin.example.com }

backend be_olivetin_http
    server olivetinServer check

backend be_olivetin_webs
    timeout tunnel 1h
    option http-server-close
    server olivetinServer