ansible-nginx/defaults/main.yml

78 lines
1.6 KiB
YAML
Raw Normal View History

2015-07-15 17:14:39 +07:00
---
2015-07-15 20:18:51 +07:00
nginx_apt_package: nginx-full
#
# Nginx shared variables
#
2015-07-30 18:02:21 +07:00
nginx_root: "/srv/www"
2015-07-15 20:18:51 +07:00
nginx_log_dir: '/var/log/nginx'
nginx_ssl_dir: '/etc/nginx/ssl'
2015-11-03 20:44:14 +07:00
nginx_pid: '/run/nginx.pid'
2015-07-15 20:18:51 +07:00
nginx_resolver:
2015-12-01 22:35:56 +07:00
hosts: ['8.8.8.8', '8.8.4.4']
2015-07-15 20:18:51 +07:00
valid: '300'
timeout: '5'
nginx_error_log_level: 'warn' # http://nginx.org/en/docs/ngx_core_module.html#error_log
nginx_dh_length: 2048
#
# Load upstream
#
# PHP
2015-07-16 21:26:40 +07:00
nginx_php: false
nginx_php_sockets:
- unix_socket: "/var/run/php5-fpm.sock"
2015-12-01 22:35:56 +07:00
nginx_upstreams: []
2015-07-15 20:18:51 +07:00
#
# Nginx configuration
#
nginx_user: 'www-data'
nginx_worker_processes: '{{ ansible_processor_vcpus }}'
nginx_events:
worker_connections: '512'
multi_accept: 'on'
use: 'epoll'
#
# Nginx HTTP
#
nginx_http:
access_log: 'off'
error_log: 'off'
client_body_buffer_size: '1M'
client_header_buffer_size: '1M'
client_max_body_size: '10M'
large_client_header_buffers: '8 8k'
client_body_timeout: '60'
client_header_timeout: '60'
keepalive_timeout: '30 30'
send_timeout: '120'
ignore_invalid_headers: 'on'
keepalive_requests: '100'
recursive_error_pages: 'on'
sendfile: 'on'
server_name_in_redirect: 'off'
server_tokens: 'off'
tcp_nodelay: 'on'
tcp_nopush: 'on'
reset_timedout_connection: 'on'
gzip: 'on'
gzip_buffers: '16 8k'
gzip_comp_level: '9'
gzip_http_version: '1.0'
gzip_min_length: '0'
gzip_types: 'text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml'
2015-07-15 20:18:51 +07:00
gzip_vary: 'on'
gzip_disable: '"msie6"'
# etag: 'off'
2015-12-01 22:35:56 +07:00
#
# Vhosts
#
2015-07-15 20:18:51 +07:00
nginx_vhosts: []