global
    log 127.0.0.1   syslog info
    daemon
    user vcap
    group vcap
    maxconn 64000
    spread-checks 4
    stats socket /var/vcap/jobs/haproxy/config/haproxy.sock mode 600 level operator

defaults
    log global
    timeout connect 30000ms
    maxconn 64000
    <% if p("router.haproxy.request_timeout_in_seconds").to_i > 0 %>
        timeout client <%= p("router.haproxy.request_timeout_in_seconds").to_i * 1000 %>ms
        timeout server <%= p("router.haproxy.request_timeout_in_seconds").to_i * 1000 %>ms
    <% end %>

frontend http-in
    mode http
    bind :<%= p("router.haproxy.health_check_port") %>
    option forwardfor
    reqadd X-Forwarded-Proto:\ http

global
    log 127.0.0.1   syslog info
    daemon
    user vcap
    group vcap
    maxconn 64000
    spread-checks 4
    stats socket /var/vcap/jobs/haproxy/config/haproxy.sock user vcap mode 600 level operator

defaults
    log global
    timeout connect 30000ms
    maxconn 64000
    <% if p("router.haproxy.request_timeout_in_seconds").to_i > 0 %>
        timeout client <%= p("router.haproxy.request_timeout_in_seconds").to_i * 1000 %>ms
        timeout server <%= p("router.haproxy.request_timeout_in_seconds").to_i * 1000 %>ms
    <% end %>

frontend http-in
    mode http
    bind :<%= p("router.haproxy.health_check_port") %>
    option forwardfor
    reqadd X-Forwarded-Proto:\ http

Set user on stats socket to vcap
Set user on stats socket to vcap

[#119932437]

Signed-off-by: Mark St.Godard <c658bdde7d0e2722483697104148a0afc73ce15b@gmail.com>
