This file contains hidden or 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
| global | |
| #debug | |
| chroot /var/lib/haproxy | |
| user haproxy | |
| group haproxy | |
| pidfile /var/run/haproxy.pid | |
| # Default SSL material locations | |
| ca-base /etc/ssl/certs | |
| crt-base /etc/ssl/private |
This file contains hidden or 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
| frontend https-in | |
| mode tcp | |
| bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1 | |
| use_backend nodes-http2 if { ssl_fc_alpn -i h2 } | |
| default_backend nodes-http | |
| backend nodes-http | |
| server node1 web.server:80 check | |
| backend nodes-http2 |
This file contains hidden or 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
| # make sure you have these installed | |
| yum install -y make gcc perl pcre-devel zlib-devel |