Merge pull request #246 from inflection/add_client_max_body_size
Adding client_max_body_size.
This commit is contained in:
commit
eeb0830b7f
2 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,7 @@
|
||||||
# password with HTTP Basic Authentication.
|
# password with HTTP Basic Authentication.
|
||||||
# [*auth_basic_user_file*] - This directive sets the htpasswd filename for
|
# [*auth_basic_user_file*] - This directive sets the htpasswd filename for
|
||||||
# the authentication realm.
|
# 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
|
# [*vhost_cfg_append*] - It expects a hash with custom directives to
|
||||||
# put after everything else inside vhost
|
# put after everything else inside vhost
|
||||||
# [*vhost_cfg_prepend*] - It expects a hash with custom directives to
|
# [*vhost_cfg_prepend*] - It expects a hash with custom directives to
|
||||||
|
@ -165,6 +166,7 @@ define nginx::resource::vhost (
|
||||||
$try_files = undef,
|
$try_files = undef,
|
||||||
$auth_basic = undef,
|
$auth_basic = undef,
|
||||||
$auth_basic_user_file = undef,
|
$auth_basic_user_file = undef,
|
||||||
|
$client_max_body_size = undef,
|
||||||
$vhost_cfg_prepend = undef,
|
$vhost_cfg_prepend = undef,
|
||||||
$vhost_cfg_append = undef,
|
$vhost_cfg_append = undef,
|
||||||
$include_files = undef,
|
$include_files = undef,
|
||||||
|
|
|
@ -11,6 +11,9 @@ server {
|
||||||
<% if defined? @auth_basic_user_file -%>
|
<% if defined? @auth_basic_user_file -%>
|
||||||
auth_basic_user_file <%= @auth_basic_user_file %>;
|
auth_basic_user_file <%= @auth_basic_user_file %>;
|
||||||
<% end -%>
|
<% 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 -%>
|
<%# 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 -%>
|
<%# exists) to be first in the output order. The hash keys also need to be -%>
|
||||||
<%# sorted so that the ordering is stable. -%>
|
<%# sorted so that the ordering is stable. -%>
|
||||||
|
|
Loading…
Reference in a new issue