Skip to content

Instantly share code, notes, and snippets.

@brndnmtthws
Created November 20, 2015 22:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save brndnmtthws/c5c613d9e90d2df771f9 to your computer and use it in GitHub Desktop.
Save brndnmtthws/c5c613d9e90d2df771f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p templates
cat >templates/HAPROXY_HEAD <<EOL
global
daemon
log /dev/log local0
log /dev/log local1 notice
maxconn 4096
tune.ssl.default-dh-param 2048
defaults
log global
retries 3
maxconn 3000
timeout connect 5s
timeout client 30s
timeout server 30s
option redispatch
listen stats
bind 0.0.0.0:9090
balance
mode http
stats enable
monitor-uri /_haproxy_health_check
EOL
tar czf templates.tgz templates/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment