Created
January 20, 2020 19:48
-
-
Save haproxytechblog/1af1591c4ef729bd87edbcd78de4cd05 to your computer and use it in GitHub Desktop.
HAProxyConf 2019 - Yammer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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