anchor.diff:      monitor fail if tcp-<%= tcp_proxy["name"] %>-routers_down
     <% end -%>
   <% end -%>
  +# }}}
  
positive.code:     timeout http-request    <%= (p("ha_proxy.request_timeout").to_f    * 1000).to_i %>ms
      timeout queue           <%= (p("ha_proxy.queue_timeout").to_f      * 1000).to_i %>ms
  
  <% if p("ha_proxy.stats_enable") %>
    <% stat = p("ha_proxy.stats_bind").split(':');
       stat_prefix = stat[0] + ":";
       stat_port = stat[1].to_i;
     %>
    <% 1.upto(p("ha_proxy.threads")) do |proc| %>
  listen stats_<%= proc %>
      bind <%= stat_prefix %><%= stat_port + (proc - 1) %>
      bind-process <%= proc %>
  
negative.code: end
  %>
  
  <%
  if_p("ha_proxy.rsp_headers") do |rsp_headers|
    rsp_headers.each do |rsp_header, value|
  -%>
      rspadd <%= rsp_header.gsub(/(?!:\\)( )/, '\ ') %>:\ <%= value.gsub(/(?!:\\) /, '\ ') %>
  <%
    end
  end
  -%>
  
  <% if p("ha_proxy.internal_only_domains").size > 0 %>
      acl private src <%= p("ha_proxy.trusted_domain_cidrs") %>
  