lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb in mkit-0.5.0 vs lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb in mkit-0.6.0
- old
+ new
@@ -4,10 +4,10 @@
<% service_port.each { |port|%>
#
# start <%=name%>-<%=port.external_port%>
#
frontend <%=name%>-<%=port.external_port%>-front
- bind <%=lease.ip%>:<%=port.external_port%>
+ bind <%=lease.ip%>:<%=port.external_port%> <%=if port.ssl? then "ssl crt #{port.crt}" end%>
mode <%=port.mode%>
#
use_backend <%=name%>-<%=port.external_port%>-back
backend <%=name%>-<%=port.external_port%>-back
\ No newline at end of file