Merge pull request #354 from janorn/temp_paths

Add client_body_temp_path and proxy_temp_path to proxy.conf.
This commit is contained in:
James Fryman 2014-06-24 09:27:18 -05:00
commit 473ed04463
2 changed files with 14 additions and 0 deletions

View file

@ -281,6 +281,18 @@ describe 'nginx::config' do
'proxy_set_header header2;',
],
},
{
:title => 'should set client_body_temp_path',
:attr => 'client_body_temp_path',
:value => '/path/to/body_temp',
:match => 'client_body_temp_path /path/to/body_temp;',
},
{
:title => 'should set proxy_temp_path',
:attr => 'proxy_temp_path',
:value => '/path/to/proxy_temp',
:match => 'proxy_temp_path /path/to/proxy_temp;',
},
].each do |param|
context "when #{param[:attr]} is #{param[:value]}" do
let :params do { param[:attr].to_sym => param[:value] } end

View file

@ -1,3 +1,5 @@
proxy_temp_path <%= @proxy_temp_path %>;
client_body_temp_path <%= @client_body_temp_path %>;
proxy_redirect <%= @proxy_redirect %>;
client_max_body_size <%= @client_max_body_size %>;
client_body_buffer_size <%= @client_body_buffer_size %>;