forked from sous-chefs/nginx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.rb
115 lines (93 loc) · 3.47 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name 'nginx'
maintainer 'Opscode, Inc.'
maintainer_email 'cookbooks@opscode.com'
license 'Apache 2.0'
description 'Installs and configures nginx'
version '2.0.5'
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'
depends 'apt', '~> 2.2'
depends 'bluepill', '~> 2.3'
depends 'build-essential', '~> 1.4'
depends 'ohai', '~> 1.1'
depends 'runit', '~> 1.2'
depends 'yum', '~> 2.3'
supports 'amazon'
supports 'centos'
supports 'debian'
supports 'fedora'
supports 'oracle'
supports 'redhat'
supports 'scientific'
supports 'ubuntu'
attribute 'nginx/dir',
:display_name => 'Nginx Directory',
:description => 'Location of nginx configuration files',
:default => '/etc/nginx'
attribute 'nginx/log_dir',
:display_name => 'Nginx Log Directory',
:description => 'Location for nginx logs',
:default => '/var/log/nginx'
attribute 'nginx/user',
:display_name => 'Nginx User',
:description => 'User nginx will run as',
:default => 'www-data'
attribute 'nginx/binary',
:display_name => 'Nginx Binary',
:description => 'Location of the nginx server binary',
:default => '/usr/sbin/nginx'
attribute 'nginx/gzip',
:display_name => 'Nginx Gzip',
:description => 'Whether gzip is enabled',
:default => 'on'
attribute 'nginx/gzip_http_version',
:display_name => 'Nginx Gzip HTTP Version',
:description => 'Version of HTTP Gzip',
:default => '1.0'
attribute 'nginx/gzip_comp_level',
:display_name => 'Nginx Gzip Compression Level',
:description => 'Amount of compression to use',
:default => '2'
attribute 'nginx/gzip_proxied',
:display_name => 'Nginx Gzip Proxied',
:description => 'Whether gzip is proxied',
:default => 'any'
attribute 'nginx/gzip_types',
:display_name => 'Nginx Gzip Types',
:description => 'Supported MIME-types for gzip',
:type => 'array',
:default => ['text/plain', 'text/css', 'application/x-javascript', 'text/xml', 'application/xml', 'application/xml+rss', 'text/javascript', 'application/javascript', 'application/json']
attribute 'nginx/keepalive',
:display_name => 'Nginx Keepalive',
:description => 'Whether to enable keepalive',
:default => 'on'
attribute 'nginx/keepalive_timeout',
:display_name => 'Nginx Keepalive Timeout',
:default => '65'
attribute 'nginx/worker_processes',
:display_name => 'Nginx Worker Processes',
:description => 'Number of worker processes',
:default => '1'
attribute 'nginx/worker_connections',
:display_name => 'Nginx Worker Connections',
:description => 'Number of connections per worker',
:default => '1024'
attribute 'nginx/server_names_hash_bucket_size',
:display_name => 'Nginx Server Names Hash Bucket Size',
:default => '64'
attribute 'nginx/types_hash_max_size',
:display_name => 'Nginx Types Hash Max Size',
:default => '2048'
attribute 'nginx/types_hash_bucket_size',
:display_name => 'Nginx Types Hash Bucket Size',
:default => '64'
attribute 'nginx/disable_access_log',
:display_name => 'Disable Access Log',
:default => 'false'
attribute 'nginx/default_site_enabled',
:display_name => 'Default site enabled',
:default => 'true'
attribute 'nginx/sendfile',
:display_name => 'Nginx sendfile',
:description => 'Whether to enable sendfile',
:default => 'on'