make client_max_body_size configurable
This commit is contained in:
parent
43d2e86a20
commit
fda2969c20
3 changed files with 4 additions and 1 deletions
|
@ -27,6 +27,7 @@ class nginx::config(
|
|||
$proxy_http_version = $nginx::params::nx_proxy_http_version,
|
||||
$types_hash_max_size = $nginx::params::nx_types_hash_max_size,
|
||||
$types_hash_bucket_size = $nginx::params::nx_types_hash_bucket_size,
|
||||
$client_max_body_size = $nginx::params::nx_client_max_body_size,
|
||||
$http_cfg_append = $nginx::params::nx_http_cfg_append
|
||||
) inherits nginx::params {
|
||||
File {
|
||||
|
|
|
@ -43,6 +43,7 @@ class nginx (
|
|||
$service_restart = $nginx::params::nx_service_restart,
|
||||
$mail = $nginx::params::nx_mail,
|
||||
$server_tokens = $nginx::params::nx_server_tokens,
|
||||
$client_max_body_size = $nginx::params::nx_client_max_body_size,
|
||||
$http_cfg_append = $nginx::params::nx_http_cfg_append,
|
||||
$nginx_vhosts = {},
|
||||
$nginx_upstreams = {},
|
||||
|
@ -67,6 +68,7 @@ class nginx (
|
|||
proxy_cache_inactive => $proxy_cache_inactive,
|
||||
confd_purge => $confd_purge,
|
||||
server_tokens => $server_tokens,
|
||||
client_max_body_size => $client_max_body_size,
|
||||
http_cfg_append => $http_cfg_append,
|
||||
require => Class['nginx::package'],
|
||||
notify => Class['nginx::service'],
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
proxy_redirect <%= scope.lookupvar('nginx::params::nx_proxy_redirect') %>;
|
||||
client_max_body_size <%= scope.lookupvar('nginx::params::nx_client_max_body_size') %>;
|
||||
client_max_body_size <%= @client_max_body_size %>;
|
||||
client_body_buffer_size <%= scope.lookupvar('nginx::params::nx_client_body_buffer_size') %>;
|
||||
proxy_connect_timeout <%= scope.lookupvar('nginx::params::nx_proxy_connect_timeout') %>;
|
||||
proxy_send_timeout <%= scope.lookupvar('nginx::params::nx_proxy_send_timeout') %>;
|
||||
|
|
Loading…
Reference in a new issue