Haproxy默认设置为显示
defaults
log global
maxconn 64000
option http-server-close
option httplog
option forwardfor
option contstats
timeout connect 5000ms
timeout client 30000ms
timeout server 30000ms
timeout tunnel 3600000ms
timeout http-keep-alive 500ms
timeout http-request 5000ms
timeout queue 30000ms
对于特定的安全前端,我可以覆盖dafault forwardfor选项,因为TCP模式不允许。
frontend secured
bind *:443
mode tcp
option tcplog
default_backend app