-
-
Save brndnmtthws/c5c613d9e90d2df771f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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