diff --git a/manifests/config.pp b/manifests/config.pp index 96b0a1d..7d0881a 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -19,7 +19,9 @@ class nginx::config( $proxy_set_header = $nginx::params::nx_proxy_set_header, $proxy_http_version = $nginx::params::nx_proxy_http_version, $confd_purge = $nginx::params::nx_confd_purge, - $server_tokens = $nginx::params::nx_server_tokens + $server_tokens = $nginx::params::nx_server_tokens, + $types_hash_max_size = $nginx::params::nx_types_hash_max_size, + $types_hash_bucket_size = $nginx::params::nx_types_hash_bucket_size ) inherits nginx::params { File { owner => 'root', diff --git a/manifests/params.pp b/manifests/params.pp index 53f8179..54a5e5e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,6 +21,8 @@ class nginx::params { $nx_confd_purge = false $nx_worker_processes = 1 $nx_worker_connections = 1024 + $nx_types_hash_max_size = 1024 + $nx_types_hash_bucket_size = 512 $nx_multi_accept = off $nx_events_use = false # One of [kqueue|rtsig|epoll|/dev/poll|select|poll|eventport] or false to use OS default $nx_sendfile = on diff --git a/templates/conf.d/nginx.conf.erb b/templates/conf.d/nginx.conf.erb index 37eb8a6..99479cc 100644 --- a/templates/conf.d/nginx.conf.erb +++ b/templates/conf.d/nginx.conf.erb @@ -21,6 +21,9 @@ http { server_tokens <%= server_tokens %>; <% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on' %>tcp_nopush on;<% end %> + types_hash_max_size <%= scope.lookupvar('nginx::params::nx_types_hash_max_size')%>; + types_hash_bucket_size <%= scope.lookupvar('nginx::params::nx_types_hash_bucket_size')%>; + keepalive_timeout <%= scope.lookupvar('nginx::params::nx_keepalive_timeout')%>; tcp_nodelay <%= scope.lookupvar('nginx::params::nx_tcp_nodelay')%>;