2013-07-17 20:42:57 +02:00
|
|
|
upstream <%= @name %> {
|
2013-11-10 23:59:11 +01:00
|
|
|
<% if @upstream_cfg_prepend -%><% @upstream_cfg_prepend.sort_by{|k,v| k}.each do |key,value| %>
|
2013-11-22 05:04:39 +01:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
<% @members.each do |i| %>
|
2013-10-29 19:55:40 +01:00
|
|
|
server <%= i %> fail_timeout=<%= @upstream_fail_timeout %>;<% end %>
|
2011-06-07 00:25:04 +02:00
|
|
|
}
|