added proxy_buffer_size with default value of 8k
This commit is contained in:
parent
53b4986b5d
commit
4da3e46207
4 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,8 @@ class nginx::config(
|
|||
$types_hash_bucket_size = $nginx::params::nx_types_hash_bucket_size,
|
||||
$client_max_body_size = $nginx::params::nx_client_max_body_size,
|
||||
$proxy_buffers = $nginx::params::nx_proxy_buffers,
|
||||
$http_cfg_append = $nginx::params::nx_http_cfg_append
|
||||
$http_cfg_append = $nginx::params::nx_http_cfg_append,
|
||||
$proxy_buffer_size = $nginx::params::nx_proxy_buffer_size,
|
||||
) inherits nginx::params {
|
||||
File {
|
||||
owner => 'root',
|
||||
|
|
|
@ -46,6 +46,7 @@ class nginx (
|
|||
$server_tokens = $nginx::params::nx_server_tokens,
|
||||
$client_max_body_size = $nginx::params::nx_client_max_body_size,
|
||||
$proxy_buffers = $nginx::params::nx_proxy_buffers,
|
||||
$proxy_buffer_size = $nginx::params::nx_proxy_buffer_size,
|
||||
$http_cfg_append = $nginx::params::nx_http_cfg_append,
|
||||
$nginx_vhosts = {},
|
||||
$nginx_upstreams = {},
|
||||
|
@ -72,6 +73,7 @@ class nginx (
|
|||
server_tokens => $server_tokens,
|
||||
client_max_body_size => $client_max_body_size,
|
||||
proxy_buffers => $proxy_buffers,
|
||||
proxy_buffer_size => $proxy_buffer_size,
|
||||
http_cfg_append => $http_cfg_append,
|
||||
require => Class['nginx::package'],
|
||||
notify => Class['nginx::service'],
|
||||
|
|
|
@ -58,6 +58,7 @@ class nginx::params {
|
|||
$nx_proxy_read_timeout = '90'
|
||||
$nx_proxy_buffers = '32 4k'
|
||||
$nx_proxy_http_version = '1.0'
|
||||
$nx_proxy_buffer_size = '8k'
|
||||
|
||||
$nx_logdir = $::kernel ? {
|
||||
/(?i-mx:linux)/ => '/var/log/nginx',
|
||||
|
|
|
@ -5,6 +5,7 @@ proxy_connect_timeout <%= scope.lookupvar('nginx::params::nx_proxy_connect_tim
|
|||
proxy_send_timeout <%= scope.lookupvar('nginx::params::nx_proxy_send_timeout') %>;
|
||||
proxy_read_timeout <%= scope.lookupvar('nginx::params::nx_proxy_read_timeout') %>;
|
||||
proxy_buffers <%= @proxy_buffers %>;
|
||||
proxy_buffer_size <%= @proxy_buffer_size %>;
|
||||
proxy_http_version <%= @proxy_http_version %>;
|
||||
<% @proxy_set_header.each do |header| %>
|
||||
proxy_set_header <%= header %>;<% end %>
|
||||
|
|
Loading…
Reference in a new issue