2013-07-17 20:42:57 +02:00
|
|
|
location <%= @location %> {
|
|
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
2013-05-06 11:38:34 +02:00
|
|
|
<%= key %> <%= value %>;
|
2012-10-03 01:35:52 +02:00
|
|
|
<% end -%><% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
<% if @proxy_cache -%>
|
|
|
|
proxy_cache <%= @proxy_cache %>;
|
|
|
|
proxy_cache_valid <%= @proxy_cache_valid %>;
|
2013-03-27 19:13:52 +01:00
|
|
|
<% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
proxy_pass <%= @proxy %>;
|
|
|
|
proxy_read_timeout <%= @proxy_read_timeout %>;
|
2013-11-27 19:56:04 +01:00
|
|
|
<% if @proxy_method -%>
|
2013-10-15 22:49:33 +02:00
|
|
|
proxy_method <%= @proxy_method %>;
|
|
|
|
<% end -%>
|
2013-11-27 19:56:04 +01:00
|
|
|
<% if @proxy_set_body -%>
|
2013-10-16 00:01:50 +02:00
|
|
|
proxy_set_body <%= @proxy_set_body %>;
|
|
|
|
<% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
2012-10-03 01:35:52 +02:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
2011-06-07 00:25:04 +02:00
|
|
|
}
|
2013-07-31 23:07:59 +02:00
|
|
|
|