|
@@ -31,13 +31,14 @@ default['cfe-nginx-php-fpm']['postfix']['update_cacert'] = true |
|
@@ -31,13 +31,14 @@ default['cfe-nginx-php-fpm']['postfix']['update_cacert'] = true |
31
|
default['cfe-nginx-php-fpm']['postfix']['email_domain'] = 'example.com'
|
31
|
default['cfe-nginx-php-fpm']['postfix']['email_domain'] = 'example.com'
|
32
|
|
32
|
|
33
|
# If your php-fpm pool is not named 'www', then delete
|
33
|
# If your php-fpm pool is not named 'www', then delete
|
34
|
-# the default one 'www' automatically installed by php-fpm
|
34
|
+# the default one ('www'), which is automatically installed by php-fpm
|
35
|
default['cfe-nginx-php-fpm']['php-fpm']['delete_pool_www'] = true
|
35
|
default['cfe-nginx-php-fpm']['php-fpm']['delete_pool_www'] = true
|
36
|
|
36
|
|
37
|
-default['cfe-nginx-php-fpm']['nginx']['inc_dir'] =
|
|
|
38
|
- "#{node['nginx']['dir']}/sites-available/include"
|
|
|
39
|
-default['cfe-nginx-php-fpm']['nginx']['priv_dir'] =
|
|
|
40
|
- "#{node['nginx']['dir']}/private"
|
37
|
+# Uncomment to set custom locations
|
|
|
38
|
+#default['cfe-nginx-php-fpm']['nginx']['inc_dir'] =
|
|
|
39
|
+# "#{node['nginx']['dir']}/sites-available/include"
|
|
|
40
|
+#default['cfe-nginx-php-fpm']['nginx']['priv_dir'] =
|
|
|
41
|
+# "#{node['nginx']['dir']}/private"
|
41
|
|
42
|
|
42
|
default['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_robots'] = false
|
43
|
default['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_robots'] = false
|
43
|
default['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_hidden'] = true
|
44
|
default['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_hidden'] = true
|
|
@@ -107,8 +108,10 @@ default['cfe-nginx-php-fpm']['nginx']['sites'] = [ |
|
@@ -107,8 +108,10 @@ default['cfe-nginx-php-fpm']['nginx']['sites'] = [ |
107
|
#
|
108
|
#
|
108
|
# php-fpm cookbook
|
109
|
# php-fpm cookbook
|
109
|
#
|
110
|
#
|
110
|
-default['php-fpm']['user'] = node['nginx']['user']
|
|
|
111
|
-default['php-fpm']['group'] = node['nginx']['group']
|
111
|
+# PHP-FPM user should be the same as the Nginx user by default.
|
|
|
112
|
+# To provide custom values, use override, instead of default.
|
|
|
113
|
+#override['php-fpm']['user'] = node['nginx']['user']
|
|
|
114
|
+#override['php-fpm']['group'] = node['nginx']['group']
|
112
|
|
115
|
|
113
|
default['php-fpm']['skip_repository_install'] = true
|
116
|
default['php-fpm']['skip_repository_install'] = true
|
114
|
default['php-fpm']['pools'] = [
|
117
|
default['php-fpm']['pools'] = [
|
|
@@ -117,18 +120,19 @@ default['php-fpm']['pools'] = [ |
|
@@ -117,18 +120,19 @@ default['php-fpm']['pools'] = [ |
117
|
{
|
120
|
{
|
118
|
:name => 'example_pool',
|
121
|
:name => 'example_pool',
|
119
|
:enable => true,
|
122
|
:enable => true,
|
120
|
- :listen => node['cfe-nginx-php-fpm']['php_fastcgi_socket'],
|
|
|
121
|
|
123
|
|
122
|
- :user => node['nginx']['user'],
|
|
|
123
|
- :group => node['nginx']['group'],
|
124
|
+ # Default value is: node['cfe-nginx-php-fpm']['php_fastcgi_socket']
|
|
|
125
|
+ #:listen => node['cfe-nginx-php-fpm']['php_fastcgi_socket'],
|
|
|
126
|
+
|
|
|
127
|
+ # Default is same as Nginx user and group
|
|
|
128
|
+ #:user => node['nginx']['user'],
|
|
|
129
|
+ #:group => node['nginx']['group'],
|
124
|
|
130
|
|
125
|
:max_requests => 500,
|
131
|
:max_requests => 500,
|
126
|
:max_children => 50,
|
132
|
:max_children => 50,
|
127
|
|
133
|
|
128
|
:access_log => false,
|
134
|
:access_log => false,
|
129
|
:catch_workers_output => 'no',
|
135
|
:catch_workers_output => 'no',
|
130
|
- #:access_log => true,
|
|
|
131
|
- #:catch_workers_output => 'yes',
|
|
|
132
|
|
136
|
|
133
|
:process_manager => value_for_platform(
|
137
|
:process_manager => value_for_platform(
|
134
|
'ubuntu' => {
|
138
|
'ubuntu' => {
|
|
@@ -161,12 +165,15 @@ default['mariadb']['install']['version'] = '5.5' |
|
@@ -161,12 +165,15 @@ default['mariadb']['install']['version'] = '5.5' |
161
|
# postfix cookbook
|
165
|
# postfix cookbook
|
162
|
#
|
166
|
#
|
163
|
default['postfix']['main']['myorigin'] = '$mydomain'
|
167
|
default['postfix']['main']['myorigin'] = '$mydomain'
|
164
|
-default['postfix']['main']['myhostname'] =
|
|
|
165
|
- node['cfe-nginx-php-fpm']['postfix']['email_domain']
|
|
|
166
|
-default['postfix']['main']['mydomain'] =
|
|
|
167
|
- node['cfe-nginx-php-fpm']['postfix']['email_domain']
|
|
|
168
|
default['postfix']['main']['mydestination'] =
|
168
|
default['postfix']['main']['mydestination'] =
|
169
|
['localhost.localdomain', 'localhost']
|
169
|
['localhost.localdomain', 'localhost']
|
|
|
170
|
+# Defaults for both myhostname and mydomain is:
|
|
|
171
|
+# node['cfe-nginx-php-fpm']['postfix']['email_domain']
|
|
|
172
|
+# To provide custom values, use override, instead of default.
|
|
|
173
|
+#override['postfix']['main']['myhostname'] =
|
|
|
174
|
+# node['cfe-nginx-php-fpm']['postfix']['email_domain']
|
|
|
175
|
+#override['postfix']['main']['mydomain'] =
|
|
|
176
|
+# node['cfe-nginx-php-fpm']['postfix']['email_domain']
|
170
|
|
177
|
|
171
|
#
|
178
|
#
|
172
|
# nginx cookbook
|
179
|
# nginx cookbook
|