Files
confdroid_haproxy/templates/haproxy_head.erb

53 lines
1.7 KiB
Plaintext
Raw Normal View History

###############################################################################
2021-09-09 13:17:18 +02:00
##### haproxy.cfg created by puppet. manual changes will be overwritten. #####
###############################################################################
2018-12-10 16:57:53 +01:00
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 -%>
2025-01-27 14:41:09 +01:00
listen stats
bind *:8080
stats enable
stats uri /stats
stats auth joe:brown:P@sS
2018-12-10 16:57:53 +01:00
<% end -%>
2018-12-18 16:23:09 +01:00
defaults
2018-12-19 16:07:59 +01:00
mode <%= @hy_default_mode %>
2018-12-18 16:23:09 +01:00
log global
2018-12-19 16:07:59 +01:00
<% if @hy_use_httplog == true -%>
2018-12-18 16:23:09 +01:00
option httplog
2018-12-19 16:07:59 +01:00
<% end -%>
<% if @hy_use_dontlognull == true -%>
2018-12-18 16:23:09 +01:00
option dontlognull
2018-12-19 16:07:59 +01:00
<% end -%>
2018-12-24 16:51:00 +01:00
<% if @hy_use_http_server_close == true -%>
option http-server-close
<% end -%>
<% if @hy_use_forward_for == true -%>
2018-12-18 16:23:09 +01:00
option forwardfor except 127.0.0.0/8
2018-12-24 16:51:00 +01:00
<% end -%>
<% if @hy_use_redispatch == true -%>
2018-12-18 16:23:09 +01:00
option redispatch
2018-12-24 16:51:00 +01:00
<% end -%>
retries <%= @hy_max_retries %>
timeout http-request <%= @hy_timeout_http_request %>
timeout queue <%= @hy_timeout_queue %>
timeout connect <%= @hy_timeout_connect %>
timeout client <%= @hy_timeout_client %>
timeout server <%= @hy_timeout_server %>
timeout http-keep-alive <%= @hy_timeout_http_keep_alive %>
timeout check <%= @hy_timeout_check %>
maxconn <%= @hy_maxconn %>
2018-12-29 19:47:00 +01:00
### custom rules below ###
2025-01-27 14:41:09 +01:00