templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf in rubber-2.1.0 vs templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf in rubber-2.1.1
- old
+ new
@@ -6,16 +6,23 @@
<%
backend_hosts = rubber_instances.for_role('app').collect { |i| i.name }
%>
listen passenger_proxy 0.0.0.0:<%= rubber_env.web_port %>
+ monitor-uri /haproxy_test
option forwardfor
+ <% if Rubber.env == 'production' %>
+ option httpchk OPTIONS /httpchk.txt
+ <% end %>
<% backend_hosts.each do |server| %>
server <%= server %> <%= server %>:<%= rubber_env.passenger_listen_port %> maxconn <%= rubber_env.max_app_connections %> check
<% end %>
listen passenger_proxy_ssl 0.0.0.0:<%= rubber_env.web_ssl_port %>
mode tcp
- option forwardfor
+ <% if Rubber.env == 'production' %>
+ # only uncomment if you have a valid ssl cert
+ # option httpchk OPTIONS /httpchk.txt
+ <% end %>
<% backend_hosts.each do |server| %>
server <%= server %> <%= server %>:<%= rubber_env.passenger_listen_ssl_port %> maxconn <%= rubber_env.max_app_connections %> check
<% end %>