Sha256: d0d939570b3622a0cb06c9e44c9f42709dcc1f5a91f99a79fde9d84341f6aeb1

Contents?: true

Size: 702 Bytes

Versions: 14

Compression:

Stored size: 702 Bytes

Contents

<%
  @path = "/etc/haproxy/haproxy.cfg"
  @additive = ["# start haproxy passenger", "# end haproxy passenger"]
%>

<%
  backend_hosts = rubber_instances.for_role('passenger').collect { |i| i.name }
%>

listen passenger_proxy 0.0.0.0:<%= rubber_env.web_port %>
  <% backend_hosts.each do |server| %>
    server <%= server %> <%= server %>:<%= rubber_env.passenger_listen_port %> maxconn <%= rubber_env.max_app_connections %> check
  <% end %>

listen passenger_proxy 0.0.0.0:<%= rubber_env.web_ssl_port %>
  mode tcp
  <% backend_hosts.each do |server| %>
    server <%= server %> <%= server %>:<%= rubber_env.passenger_listen_ssl_port %> maxconn <%= rubber_env.max_app_connections %> check
  <% end %>

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
sml-rubber-0.9.10 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
sml-rubber-0.9.11 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
sml-rubber-0.9.13 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
wr0ngway-rubber-1.0.0 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
wr0ngway-rubber-1.0.1 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.8 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.7 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.6 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.5 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.4 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.3 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.2 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
axtro-rubber-1.0.2.1 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
rubber-1.0.2 generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf