2014-09-12 19:42:51 +02:00
|
|
|
proxy_pass <%= @proxy %>;
|
|
|
|
proxy_read_timeout <%= @proxy_read_timeout %>;
|
|
|
|
proxy_connect_timeout <%= @proxy_connect_timeout %>;
|
|
|
|
proxy_redirect <%= @proxy_redirect %>;
|
|
|
|
<% if @proxy_method -%>
|
|
|
|
proxy_method <%= @proxy_method %>;
|
2014-09-03 20:50:37 +02:00
|
|
|
<% end -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% if @proxy_set_body -%>
|
|
|
|
proxy_set_body <%= @proxy_set_body %>;
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% unless @proxy_set_header.nil? -%>
|
|
|
|
<%- @proxy_set_header.each do |header| -%>
|
|
|
|
proxy_set_header <%= header %>;
|
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2016-05-12 18:09:16 +02:00
|
|
|
<% unless @proxy_hide_header.nil? -%>
|
|
|
|
<%- @proxy_hide_header.each do |header| -%>
|
|
|
|
proxy_hide_header <%= header %>;
|
|
|
|
<%- end -%>
|
|
|
|
<% end -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% if @proxy_cache -%>
|
|
|
|
proxy_cache <%= @proxy_cache %>;
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2016-03-25 12:14:29 +01:00
|
|
|
<% if @proxy_cache_valid && Array(@proxy_cache_valid).size > 0 -%>
|
|
|
|
<%- Array(@proxy_cache_valid).each do |line| -%>
|
|
|
|
proxy_cache_valid <%= line %>;
|
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2015-05-29 23:21:34 +02:00
|
|
|
<% if @proxy_cache_use_stale -%>
|
|
|
|
proxy_cache_use_stale <%= @proxy_cache_use_stale %>;
|
|
|
|
<% end -%>
|
|
|
|
<% if @proxy_cache_key -%>
|
|
|
|
proxy_cache_key <%= @proxy_cache_key %>;
|
|
|
|
<% end -%>
|