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 -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% if @proxy_cache -%>
|
|
|
|
proxy_cache <%= @proxy_cache %>;
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% if @proxy_cache_valid -%>
|
|
|
|
proxy_cache_valid <%= @proxy_cache_valid %>;
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
2014-09-12 19:42:51 +02:00
|
|
|
<% if instance_variables.any? { |iv| iv.to_s.include? 'auth_basic' } -%>
|
|
|
|
|
|
|
|
<%- if @auth_basic -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
auth_basic "<%= @auth_basic %>";
|
2014-09-12 19:42:51 +02:00
|
|
|
<%- end -%>
|
|
|
|
<%- if defined? @auth_basic_user_file -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
auth_basic_user_file <%= @auth_basic_user_file %>;
|
2014-09-12 19:42:51 +02:00
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|