Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Created January 20, 2020 19:48
Show Gist options
  • Save haproxytechblog/1af1591c4ef729bd87edbcd78de4cd05 to your computer and use it in GitHub Desktop.
Save haproxytechblog/1af1591c4ef729bd87edbcd78de4cd05 to your computer and use it in GitHub Desktop.
HAProxyConf 2019 - Yammer
defaults
mode {protocol}
balance {balanceMode}
timeout client {clTO}
timeout connect {cTO}
timeout server {sTO}
timeout http-keep-alive {kaTO}
listen ::{service}-{servicePort}
acl down nbsrv(hc-{servicePort}) lt 1
monitor fail if down
monitor-uri /hc
option httpchk GET /hc
bind {vmIP}:{servicePort} ssl crt {crt} ciphers {cipherList}
server {dockerID} {vmIP}:{containerPort} check port {containerPort} observe layer4 on-error mark-down fail 2 rise 1
listen ::{service}-{servicePort}
load-server-state-from-file global
bind {dockerBridgeIP}:{servicePort}
option httpchk GET /hc
server-template appserver- 1-20 10.0.0.1:{servicePort} ssl check-ssl check port {servicePort} fall 2 observe layer4 on-error mark-down disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment