haproxy.cfg.tpl 531 B

123456789101112131415161718192021222324
  1. # HAProxy configuration template
  2. # {BACKEND_ADDRESS} will be replaced with the actual backend address
  3. global
  4. daemon
  5. log stdout local0
  6. defaults
  7. mode http
  8. timeout connect 5000ms
  9. timeout client 50000ms
  10. timeout server 50000ms
  11. option httplog
  12. log global
  13. listen http
  14. bind {{ listen_addr }}:{{ listen_port }}
  15. option httplog
  16. # TODO: add template directives
  17. #http-request return status 200 content-type "text/plain" string "OK"
  18. server dummy {{ backend_host }}:{{ backend_port }}