Skip to content

Instantly share code, notes, and snippets.

@haani-niyaz
Created September 28, 2017 06:01
Show Gist options
  • Save haani-niyaz/cfeeb77d14eca3450b6b6869cc9fba33 to your computer and use it in GitHub Desktop.
Save haani-niyaz/cfeeb77d14eca3450b6b6869cc9fba33 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment