Skip to content

Instantly share code, notes, and snippets.

@zdk
Created April 27, 2020 14:59
Show Gist options
  • Save zdk/80b9d9fe2c041d0416d2d3a7249553e5 to your computer and use it in GitHub Desktop.
Save zdk/80b9d9fe2c041d0416d2d3a7249553e5 to your computer and use it in GitHub Desktop.
Super bare minimum HAProxy config
listen http-in
mode http
bind *:80
server web1 172.22.20.21:8080 check
server web2 172.22.20.22:8080 check
server web3 172.22.20.23:8080 check
stats enable
stats refresh 3s
stats show-node
stats uri /haproxy?stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment