Files
confdroid_haproxy/templates/haproxy_head.erb
2018-12-18 16:23:09 +01:00

38 lines
1.3 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 http
log global
option httplog
option dontlognull
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