README.md 2.07 KB

cfe-nginx-php-fpm-cookbook

Installs PHP5-FPM, Nginx, Postfix, and MariaDB client on a server. Also sets up webserver configs for all virtual servers, including TLS and basic auth.

Can also auto-generate config files for certain site types, such as Wordpress, etc. (right now it's: wordpress, basic, and webserver).

Supported Platforms

Ubuntu 14.04

Attributes

Key Type Description Default
['cfe-nginx-php-fpm']['postfix']['email_domain'] String Email domain to be used by Postfix. ''
['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_robots'] Boolean Whether to log crawler access in Nginx. false
['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_hidden'] Boolean Whether to log attempted accesses to hidden files/folders in Nginx. true
['cfe-nginx-php-fpm']['nginx']['restriction_file']['log_static'] Boolean Whether to log accesses to static files in Nginx. false
['cfe-nginx-php-fpm']['nginx']['restriction_file']['static_types'] Array An array of strings denoting the file extensions of what will be considered static files by Nginx with regards to logging (see previous attribute). (see default attribute file)
['cfe-nginx-php-fpm']['nginx']['sites'] Array/Hash Values that define the virtual servers to be hosted by Nginx. (see default attribute file)

Usage

cfe-nginx-php-fpm::default

Include cfe-nginx-php-fpm in your node's run_list:

{
  "run_list": [
    "recipe[cfe-nginx-php-fpm]"
  ]
}

License and Authors

Author:: Earth U. (sysadmin@chromedia.com)