You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
167 lines
4.5 KiB
167 lines
4.5 KiB
---
|
|
# Variables listed here are applicable to all host groups
|
|
mysql_root_password: Ff!2KDSUOs10[tXR*M</_#mgvlJCkz5W
|
|
mysql_databases:
|
|
- name: drupal8db
|
|
encoding: utf8
|
|
collation: utf8_general_ci
|
|
mysql_users:
|
|
- name: drupal8user
|
|
host: "127.0.0.1"
|
|
password: dcSEMWpH]O2P(?ubNjFmLYJ[xoVhXiCs
|
|
priv: "drupal8db.*:ALL"
|
|
php_date_timezone: "Australia/Melbourne"
|
|
# Default user password for vmuser
|
|
default_user_password: #uVOInGP&p<jfd}bkelLMEH!ZNRg$xiz
|
|
|
|
# DO NOT MODIFY BELOW THIS LINE.
|
|
|
|
wp_version: 4.3
|
|
wp_sha256sum: 3b0db3abe8504f15a33cf64188a493ec0de01eaa8d20e37c3d6a1d9fa0a40fb4
|
|
|
|
# These are the WordPress database settings
|
|
wp_db_name: wordpress
|
|
wp_db_user: wordpress
|
|
wp_db_password: secret
|
|
|
|
# MySQL settings
|
|
mysql_root_password_update: yes
|
|
mysql_bind_address: '127.0.0.1'
|
|
mysql_slow_query_log_enabled: yes
|
|
mysql_slow_query_log_file: /var/log/mysql-slow.log
|
|
mysql_pid_file: /var/lib/mysql/mysql.pid
|
|
mysql_slow_query_time: 2
|
|
mysql_max_allowed_packet: "256M"
|
|
mysql_innodb_buffer_pool_size: "1G"
|
|
mysql_innodb_log_buffer_size: "1G"
|
|
mysql_innodb_log_file_size: "1G"
|
|
mysql_innodb_flush_log_at_trx_commit: "2"
|
|
mysql_innodb_file_per_table: 1
|
|
mysql_innodb_log_buffer_size: "16M"
|
|
|
|
# This is used for the nginx server configuration, but access to the
|
|
# WordPress site is not restricted by a named host.
|
|
nginx_port: 80
|
|
server_hostname: server.example.com
|
|
|
|
# Disable All Updates
|
|
# By default automatic updates are enabled, set this value to true to disable all automatic updates
|
|
auto_up_disable: false
|
|
|
|
#Define Core Update Level
|
|
# true = Development, minor, and major updates are all enabled
|
|
# false = Development, minor, and major updates are all disabled
|
|
# minor = Minor updates are enabled, development, and major updates are disabled
|
|
core_update_level: true
|
|
|
|
# Defines PHP values
|
|
php_enablerepo: "remi-php70"
|
|
|
|
# PHP-FPM configuration.
|
|
php_enable_php_fpm: true
|
|
php_fpm_pool_user: www-php
|
|
php_fpm_pool_group: www-php
|
|
|
|
php_apc_shm_size: "128M"
|
|
|
|
# Interaction with which web server
|
|
php_webserver_daemon: "nginx"
|
|
|
|
php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING"
|
|
|
|
php_packages:
|
|
- php
|
|
- php-cli
|
|
- php-common
|
|
- php-devel
|
|
- php-fpm
|
|
- php-gd
|
|
- php-imap
|
|
- php-ldap
|
|
- php-mbstring
|
|
- php-mcrypt
|
|
- php-memcached
|
|
- php-redis
|
|
- php-opcache
|
|
- php-pdo
|
|
- php-pear
|
|
- php-pecl-apcu
|
|
- php-xml
|
|
- php-xmlrpc
|
|
- php-pecl-uploadprogress
|
|
|
|
# Nginx vhosts configuration
|
|
nginx_vhosts:
|
|
- listen: "{{ nginx_port }} default_server"
|
|
server_name: "{{ server_hostname }} www.{{ server_hostname }}"
|
|
root: "/var/www/html/{{ server_hostname }}"
|
|
open_file_cache: "max=2000 inactive=120s"
|
|
open_file_cache_valid: "240s"
|
|
open_file_cache_min_uses: "5"
|
|
open_file_cache_errors: "off"
|
|
client_max_body_size: "5m"
|
|
client_body_timeout: "60"
|
|
index: "index.php index.html index.htm"
|
|
error_page: "403 =404"
|
|
access_log: "/var/log/nginx/{{ server_hostname }}_access.log"
|
|
error_log: "/var/log/nginx/{{ server_hostname }}_error.log"
|
|
extra_parameters: |
|
|
location / {
|
|
index index.php;
|
|
try_files $uri $uri/ @rewrite;
|
|
expires max;
|
|
}
|
|
location @rewrite {
|
|
rewrite ^/(.*)$ /index.php?q=$1 last;
|
|
}
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
location = /favicon.ico {
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
location = /backup {
|
|
deny all;
|
|
}
|
|
location ~* \.(txt|log)$ {
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
}
|
|
location ~ \..*/.*\.php$ {
|
|
return 403;
|
|
}
|
|
location ~ ^/sites/.*/files/styles/ {
|
|
try_files $uri @rewrite;
|
|
}
|
|
location ~ ^/sites/default/files/ {
|
|
try_files $uri @rewrite;
|
|
}
|
|
location ~* \.(gif|jpg|jpeg|png|ico|bmp|js|css|pdf|doc|webp|woff|ico|js|css)(\?[a-zA-Z0-9\.\-_,])?$ {
|
|
expires max;
|
|
log_not_found off;
|
|
add_header Cache-Control "public";
|
|
add_header X-Cache $upstream_cache_status;
|
|
}
|
|
location ~ /\. {
|
|
access_log off;
|
|
log_not_found off;
|
|
deny all;
|
|
}
|
|
location ~ ~$ {
|
|
access_log off;
|
|
log_not_found off;
|
|
deny all;
|
|
}
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|