Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from miketheman/COOK-1316

[COOK-1316] Added attribute for default site, added condition to commons...
  • Loading branch information...
commit 2638b7bead7babdd9a75d598a57037b4cf3a82c9 2 parents 73eb194 + 5b5e9fe
@jtimberman jtimberman authored
View
1  README.md
@@ -45,6 +45,7 @@ Generally used attributes. Some have platform specific values. See `attributes/d
* `node['nginx']['worker_connections']` - used for config value of `events { worker_connections }`
* `node['nginx']['server_names_hash_bucket_size']` - used for config value of `server_names_hash_bucket_size`.
* `node['nginx']['disable_access_log']` - set to true to disable the general access log, may be useful on high traffic sites.
+* `node['nginx']['default_site_enabled']` - enable the default site
### Attributes for configuring the gzip module
View
1  attributes/default.rb
@@ -64,3 +64,4 @@
default['nginx']['disable_access_log'] = false
default['nginx']['install_method'] = 'package'
+default['nginx']['default_site_enabled'] = true
View
4 metadata.rb
@@ -89,3 +89,7 @@
attribute "nginx/disable_access_log",
:display_name => "Disable Access Log",
:default => "false"
+
+attribute "nginx/default_site_enabled",
+ :display_name => "Default site enabled",
+ :default => "true"
View
2  recipes/commons.rb
@@ -62,4 +62,4 @@
mode 0644
end
-nginx_site 'default'
+nginx_site 'default' if node['nginx']['default_site_enabled']
Please sign in to comment.
Something went wrong with that request. Please try again.