configuring haproxy#

combining a http listener for both api and websockets

listen kazoo-crossbar-https
        bind *:8443 ssl crt /etc/haproxy/certs/mycert.pem
        mode http
        option httplog
        option dontlognull
        acl is_blackhole path_beg /
        use_backend kapps-blackhole if is_blackhole
        default_backend kapps-crossbar
backend kapps-blackhole
  balance source
    mode http
    option forwardfor
    option http-server-close
    option forceclose
    no option httpclose
    option httpchk HEAD  /

   server srv-01 check
   server srv-02 check
   server srv-03 check
   server srv-04 check

configuring monster-ui#

edit js/config.js


    return {
        api: {
            // The default API URL defines what API is used to log in to your back-end
            default: ''

            // If you want to use WebSockets you need to turn blackhole on in the back-end and then put the URL in the 'socket' key below
           , socket: ''

Edit this page here