Skip to content

Instantly share code, notes, and snippets.

@jolynch
Created April 7, 2015 20:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jolynch/75dd9a87282dda57bd71 to your computer and use it in GitHub Desktop.
Save jolynch/75dd9a87282dda57bd71 to your computer and use it in GitHub Desktop.
Basic testing configuration for haproxy
global
daemon
defaults
timeout connect 200ms
timeout client 1000ms
timeout server 1000ms
mode http
option forceclose
listen stats :3333
mode http
stats enable
stats uri /
stats refresh 1m
stats show-node
frontend test.main
bind 0.0.0.0:16000
default_backend test.main
backend test.main
option httpchk GET /
server testhttp 0.0.0.0:8001 observe layer7 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment