module-nginx/templates/conf.d/upstream.erb
Matthew Haughton 4af2087867 fix spacing issues in various templates
Before this change, vhost_ssl_header would merge
"ssl" with any listen options, e.g.:
    listen       *:443 ssldefault;
when listen_options => 'default'.
2013-11-21 23:04:39 -05:00

7 lines
230 B
Text

upstream <%= @name %> {
<% if @upstream_cfg_prepend -%><% upstream_cfg_prepend.sort_by{|k,v| k}.each do |key,value| %>
<%= key %> <%= value %>;
<% end -%><% end -%>
<% @members.each do |i| %>
server <%= i %>;<% end %>
}