709c25e82e
kudos to Matthew Haughton for this suggestion Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
21 lines
724 B
Text
21 lines
724 B
Text
location <%= @location %> {
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%><% end -%>
|
|
<% if @proxy_cache -%>
|
|
proxy_cache <%= @proxy_cache %>;
|
|
proxy_cache_valid <%= @proxy_cache_valid %>;
|
|
<% end -%>
|
|
proxy_pass <%= @proxy %>;
|
|
proxy_read_timeout <%= @proxy_read_timeout %>;
|
|
<% if @proxy_method -%>
|
|
proxy_method <%= @proxy_method %>;
|
|
<% end -%>
|
|
<% if @proxy_set_body -%>
|
|
proxy_set_body <%= @proxy_set_body %>;
|
|
<% end -%>
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%><% end -%>
|
|
}
|
|
|