Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.