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:
commit
473ed04463
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>;
|
||||
|
|
Loading…
Reference in a new issue