Merge pull request #246 from inflection/add_client_max_body_size

Adding client_max_body_size.
This commit is contained in:
James Fryman 2014-01-28 13:08:28 -08:00
commit eeb0830b7f
2 changed files with 5 additions and 0 deletions

View file

@ -88,6 +88,7 @@
# password with HTTP Basic Authentication.
# [*auth_basic_user_file*] - This directive sets the htpasswd filename for
# the authentication realm.
# [*client_max_body_size*] - This directive sets client_max_body_size.
# [*vhost_cfg_append*] - It expects a hash with custom directives to
# put after everything else inside vhost
# [*vhost_cfg_prepend*] - It expects a hash with custom directives to
@ -165,6 +166,7 @@ define nginx::resource::vhost (
$try_files = undef,
$auth_basic = undef,
$auth_basic_user_file = undef,
$client_max_body_size = undef,
$vhost_cfg_prepend = undef,
$vhost_cfg_append = undef,
$include_files = undef,

View file

@ -11,6 +11,9 @@ server {
<% if defined? @auth_basic_user_file -%>
auth_basic_user_file <%= @auth_basic_user_file %>;
<% end -%>
<% if defined? @client_max_body_size -%>
client_max_body_size <%= @client_max_body_size %>;
<% end -%>
<%# make sure that allow comes before deny by forcing the allow key (if it -%>
<%# exists) to be first in the output order. The hash keys also need to be -%>
<%# sorted so that the ordering is stable. -%>