From 179b1a4b5d0797bb9c08203659517d83bf73fda8 Mon Sep 17 00:00:00 2001 From: Stefan Dorosz Date: Thu, 20 Jun 2013 10:48:52 -0400 Subject: [PATCH] Add server_names_hash_bucket_size param --- manifests/params.pp | 1 + templates/conf.d/nginx.conf.erb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index b18cc14..5482133 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -23,6 +23,7 @@ class nginx::params { $nx_worker_connections = 1024 $nx_types_hash_max_size = 1024 $nx_types_hash_bucket_size = 512 + $nx_names_hash_bucket_size = 64 $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 98b3a8b..c17c8f7 100644 --- a/templates/conf.d/nginx.conf.erb +++ b/templates/conf.d/nginx.conf.erb @@ -24,6 +24,8 @@ http { 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')%>; + server_names_hash_bucket_size <%= scope.lookupvar('nginx::params::nx_names_hash_bucket_size')%>; + keepalive_timeout <%= scope.lookupvar('nginx::params::nx_keepalive_timeout')%>; tcp_nodelay <%= scope.lookupvar('nginx::params::nx_tcp_nodelay')%>;