Skip to content

Commit

Permalink
Merge pull request #354 from janorn/temp_paths
Browse files Browse the repository at this point in the history
Add client_body_temp_path and proxy_temp_path to proxy.conf.
  • Loading branch information
James Fryman committed Jun 24, 2014
2 parents 5c8fc63 + ebd2a6a commit 473ed04
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/classes/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,18 @@
'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
Expand Down
2 changes: 2 additions & 0 deletions templates/conf.d/proxy.conf.erb
Original file line number Diff line number Diff line change
@@ -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 %>;
Expand Down

0 comments on commit 473ed04

Please sign in to comment.