Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Created May 31, 2023 16:55
Show Gist options
  • Save haproxytechblog/ee65ec3703ef89ce760fe656f7529580 to your computer and use it in GitHub Desktop.
Save haproxytechblog/ee65ec3703ef89ce760fe656f7529580 to your computer and use it in GitHub Desktop.
Announcing HAProxy 2.8
mailers smtp_servers
mailer mailserver1 mailserver1.example.com:25
defaults
email-alert mailers smtp_servers
email-alert from haproxy@example.com
email-alert to helpdesk@example.com
email-alert level info
global
lua-load /etc/haproxy/mailers.lua
global
httpclient.resolvers.disabled on
backend webservers
balance roundrobin
server web1 192.168.56.10:8080 check maxconn 30
filter compression
compression direction both
compression offload
compression algo-req gzip
compression type-req application/json
compression algo-res gzip
compression type-res text/css text/html text/javascript text/plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment