Created
February 9, 2016 18:27
-
-
Save bencer/ba5c86ca8b3455ab47cd to your computer and use it in GitHub Desktop.
Node configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
roles: | |
- roles::www | |
vdomain: example.com | |
nginx::config::vhost_purge: true | |
nginx::config::confd_purge: true | |
nginx::nginx_vhosts: | |
"%{hiera('vdomain')}": | |
ensure: present | |
rewrite_www_to_non_www: true | |
www_root: "/srv/www/%{hiera('vdomain')}/" | |
try_files: | |
- '$uri' | |
- '$uri/' | |
- '/index.php$is_args$args' | |
nginx::nginx_locations: | |
'php': | |
ensure: present | |
vhost: example.com | |
location: '~ .php$' | |
www_root: "/srv/www/%{hiera('vdomain')}/" | |
try_files: | |
- '$uri' | |
- '/index.php =404' | |
location_cfg_append: | |
fastcgi_split_path_info: '^(.+\.php)(.*)$' | |
fastcgi_pass: 'php' | |
fastcgi_index: 'index.php' | |
fastcgi_param SCRIPT_FILENAME: "/srv/www/%{hiera('vdomain')}$fastcgi_script_name" | |
include: 'fastcgi_params' | |
fastcgi_param QUERY_STRING: '$query_string' | |
fastcgi_param REQUEST_METHOD: '$request_method' | |
fastcgi_param CONTENT_TYPE: '$content_type' | |
fastcgi_param CONTENT_LENGTH: '$content_length' | |
fastcgi_intercept_errors: 'on' | |
fastcgi_ignore_client_abort: 'off' | |
fastcgi_connect_timeout: '60' | |
fastcgi_send_timeout: '180' | |
fastcgi_read_timeout: '180' | |
fastcgi_buffer_size: '128k' | |
fastcgi_buffers: '4 256k' | |
fastcgi_busy_buffers_size: '256k' | |
fastcgi_temp_file_write_size: '256k' | |
'server-status': | |
ensure: present | |
vhost: "%{hiera('vdomain')}" | |
location: /server-status | |
stub_status: true | |
location_cfg_append: | |
access_log: off | |
allow: 127.0.0.1 | |
deny: all | |
serverdensity_agent::plugin::nginx::nginx_status_url: "http://%{hiera('vdomain')}/server-status" | |
nginx::nginx_upstreams: | |
'php': | |
ensure: present | |
members: | |
- unix:/var/run/php5-fpm.sock | |
php::fpm: true | |
php::fpm::settings: | |
PHP/short_open_tag: 'On' | |
php::extensions: | |
json: {} | |
curl: {} | |
mcrypt: {} | |
php::fpm::pools: | |
'www': | |
listen: unix:/var/run/php5-fpm.sock | |
pm_status_path: /php-status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment