f94ad53471
Change-Id: I48038540d2a69a116521466369aaaddae02bceb3 Implements: blueprint ssl-endpoints
10 lines
601 B
Plaintext
10 lines
601 B
Plaintext
<% Array(@ipaddresses).zip(Array(@server_names)).each do |ipaddress,host| -%>
|
|
<% if @ports -%>
|
|
<%- Array(@ports).each do |port| -%>
|
|
server <%= host %> <%= ipaddress %>:<%= port %><%= if @define_cookies then " cookie " + host end %> <%= if @define_backups and @server_names.first != host then "backup" end -%> <%= Array(@options).sort.join(" ") %>
|
|
<%- end -%>
|
|
<% else -%>
|
|
server <%= host %> <%= ipaddress %><%= if @define_cookies then " cookie " + host end %> <%= if @define_backups and @server_names.first != host then "backup" end -%> <%= Array(@options).sort.join(" ") %>
|
|
<%- end -%>
|
|
<% end -%>
|