Skip to content

Commit

Permalink
COOK-324, update nginx attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jul 11, 2010
1 parent 174de9a commit 0aada6d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions nginx/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set_unless[:nginx][:version] = "0.7.67"
set_unless[:nginx][:install_path] = "/opt/nginx-#{nginx[:version]}"
set_unless[:nginx][:src_binary] = "#{nginx[:install_path]}/sbin/nginx"
default[:nginx][:version] = "0.7.67"
default[:nginx][:install_path] = "/opt/nginx-#{nginx[:version]}"
default[:nginx][:src_binary] = "#{nginx[:install_path]}/sbin/nginx"

case platform
when "debian","ubuntu"
Expand All @@ -15,18 +15,18 @@
set[:nginx][:binary] = "/usr/sbin/nginx"
end

set_unless[:nginx][:configure_flags] = [
default[:nginx][:configure_flags] = [
"--prefix=#{nginx[:install_path]}",
"--conf-path=#{nginx[:dir]}/nginx.conf",
"--with-http_ssl_module",
"--with-http_gzip_static_module"
]

set_unless[:nginx][:gzip] = "on"
set_unless[:nginx][:gzip_http_version] = "1.0"
set_unless[:nginx][:gzip_comp_level] = "2"
set_unless[:nginx][:gzip_proxied] = "any"
set_unless[:nginx][:gzip_types] = [
default[:nginx][:gzip] = "on"
default[:nginx][:gzip_http_version] = "1.0"
default[:nginx][:gzip_comp_level] = "2"
default[:nginx][:gzip_proxied] = "any"
default[:nginx][:gzip_types] = [
"text/plain",
"text/html",
"text/css",
Expand All @@ -37,8 +37,8 @@
"text/javascript"
]

set_unless[:nginx][:keepalive] = "on"
set_unless[:nginx][:keepalive_timeout] = 65
set_unless[:nginx][:worker_processes] = cpu[:total]
set_unless[:nginx][:worker_connections] = 2048
set_unless[:nginx][:server_names_hash_bucket_size] = 64
default[:nginx][:keepalive] = "on"
default[:nginx][:keepalive_timeout] = 65
default[:nginx][:worker_processes] = cpu[:total]
default[:nginx][:worker_connections] = 2048
default[:nginx][:server_names_hash_bucket_size] = 64
2 changes: 1 addition & 1 deletion nginx/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
]
},
"license": "Apache 2.0",
"version": "0.14.1",
"version": "0.14.2",
"maintainer": "Opscode, Inc.",
"suggestions": {
},
Expand Down
2 changes: 1 addition & 1 deletion nginx/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures nginx"
version "0.14.1"
version "0.14.2"

recipe "nginx", "Installs nginx package and sets up configuration with Debian apache style with sites-enabled/sites-available"
recipe "nginx::source", "Installs nginx from source and sets up configuration with Debian apache style with sites-enabled/sites-available"
Expand Down

0 comments on commit 0aada6d

Please sign in to comment.