Sha256: a3793ca409f139bfebc5213e7deb5d001424f76960c78bae5faae2adeb6f1b82

Contents?: true

Size: 1.06 KB

Versions: 19

Compression:

Stored size: 1.06 KB

Contents

# Requires recent Haproxy to work with websockets (for example 1.4.16).
defaults
    mode http
    # Set timeouts to your needs
    timeout client  5s
    timeout connect 5s
    timeout server  5s

frontend all 0.0.0.0:8888
    mode http
    timeout client 120s

    option forwardfor
    # Fake connection:close, required in this setup.
    option http-server-close
    option http-pretend-keepalive

    acl is_sockjs path_beg /echo /broadcast /close
    acl is_stats  path_beg /stats

    use_backend sockjs if is_sockjs
    use_backend stats if is_stats
    default_backend static


backend sockjs
    # Load-balance according to hash created from first two
    # directories in url path. For example requests going to /1/
    # should be handled by single server (assuming resource prefix is
    # one-level deep, like "/echo").
    balance uri depth 2
    timeout server  120s
    server srv_sockjs1 127.0.0.1:9999
    # server srv_sockjs2 127.0.0.1:9998

backend static
    balance roundrobin
    server srv_static 127.0.0.1:8000

backend stats
    stats uri /stats
    stats enable

Version data entries

19 entries across 19 versions & 9 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/sockjs/examples/haproxy.cfg
disco_app-0.18.0 test/dummy/node_modules/sockjs/examples/haproxy.cfg
disco_app-0.18.2 test/dummy/node_modules/sockjs/examples/haproxy.cfg
enju_library-0.3.8 spec/dummy/node_modules/sockjs/examples/haproxy.cfg
ilog-0.4.1 node_modules/sockjs/examples/haproxy.cfg
ilog-0.4.0 node_modules/sockjs/examples/haproxy.cfg
ilog-0.3.3 node_modules/sockjs/examples/haproxy.cfg
jester-data-8.0.0 node_modules/sockjs/examples/haproxy.cfg
ezii-os-5.2.1 node_modules/sockjs/examples/haproxy.cfg
ezii-os-2.0.1 node_modules/sockjs/examples/haproxy.cfg
ezii-os-1.1.0 node_modules/sockjs/examples/haproxy.cfg
ezii-os-1.0.0 node_modules/sockjs/examples/haproxy.cfg
ezii-os-0.0.0.1.0 node_modules/sockjs/examples/haproxy.cfg
ezii-os-0.0.0.0.1 node_modules/sockjs/examples/haproxy.cfg
optimacms-0.4.3 spec/dummy/node_modules/sockjs/examples/haproxy.cfg
optimacms-0.4.2 spec/dummy/node_modules/sockjs/examples/haproxy.cfg
cortex-0.1.3 spec/dummy/node_modules/sockjs/examples/haproxy.cfg
dragonfly_puppeteer-0.1.0 node_modules/sockjs/examples/haproxy.cfg
lanes-0.8.0 node_modules/sockjs/examples/haproxy.cfg