44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
###############################################################################
|
|
##### haproxy.cfg created by puppet through concatenation. manual changes #####
|
|
##### will be overwritten. original full file available at #####
|
|
##### https://confdroid.com/2018/12/haproxy-cfg/ #####
|
|
###############################################################################
|
|
|
|
global
|
|
log <%= @hy_log_target %> <%= @hy_log_facility %>
|
|
|
|
chroot <%= @hy_chroot %>
|
|
pidfile <%= @hy_pid %>
|
|
maxconn <%= @hy_maxconn %>
|
|
user <%= @hy_user_name %>
|
|
group <%= @hy_user_name %>
|
|
daemon
|
|
|
|
<% if @hy_show_stats == true -%>
|
|
stats socket <%= @hy_stats_socket %>
|
|
<% end -%>
|
|
|
|
defaults
|
|
mode <%= @hy_default_mode %>
|
|
log global
|
|
<% if @hy_use_httplog == true -%>
|
|
option httplog
|
|
<% end -%>
|
|
<% if @hy_use_dontlognull == true -%>
|
|
option dontlognull
|
|
<% else -%>
|
|
no option dontlognull
|
|
<% end -%>
|
|
option http-server-close
|
|
option forwardfor except 127.0.0.0/8
|
|
option redispatch
|
|
retries 3
|
|
timeout http-request 10s
|
|
timeout queue 1m
|
|
timeout connect 10s
|
|
timeout client 1m
|
|
timeout server 1m
|
|
timeout http-keep-alive 10s
|
|
timeout check 10s
|
|
maxconn 3000
|