haani-niyaz
9/28/2017 - 6:01 AM

haproxy-bitbucket.cfg

global
    log 127.0.0.1 local2
    user haproxy
    group haproxy
    chroot /var/lib/haproxy
    pidfile /var/run/haproxy.pid
    daemon
    maxconn 1000

defaults
    log global
    mode http
    option httplog
    option dontlognull
    timeout connect 5000
    timeout client  50000
    timeout server  50000
 
frontend hafrontend
    bind *:80
    mode http
    default_backend bitbucket_http_backend

backend bitbucket_http_backend
    mode http
    option httplog
    option forwardfor
    option http-server-close
    option httpchk
    server bitbucket01 10.0.3.155:7990 maxconn 50