2017-07-15 15:39:52 +00:00
|
|
|
---
|
2018-08-09 19:20:06 +00:00
|
|
|
nginx_official_repo_enabled: True
|
2017-12-24 13:05:27 +00:00
|
|
|
nginx_user: nginx
|
|
|
|
nginx_group: nginx
|
2017-12-24 16:36:43 +00:00
|
|
|
nginx_worker_processes: 1
|
2017-12-24 16:42:23 +00:00
|
|
|
nginx_worker_connections: 1024
|
2018-08-11 12:59:43 +00:00
|
|
|
nginx_error_log:
|
|
|
|
enabled: True
|
|
|
|
file: /var/log/nginx/error.log
|
|
|
|
level: error
|
2018-08-11 13:22:15 +00:00
|
|
|
nginx_access_log:
|
2018-08-11 12:59:43 +00:00
|
|
|
enabled: True
|
|
|
|
file: /var/log/nginx/access.log
|
2018-08-11 13:27:27 +00:00
|
|
|
format: main
|
2018-08-11 12:59:43 +00:00
|
|
|
|
|
|
|
## nginx buffer sizes
|
|
|
|
nginx_client_body_buffer_size: 10k
|
|
|
|
nginx_client_header_buffer_size: 1k
|
|
|
|
nginx_client_max_body_size: 8m
|
|
|
|
|
|
|
|
## nginx timeout settings
|
|
|
|
nginx_client_body_timeout: 60
|
|
|
|
nginx_client_header_timeout: 60
|
|
|
|
nginx_keepalive_timeout: 65
|
|
|
|
nginx_send_timeout: 60
|
|
|
|
nginx_reset_timedout_connection: True
|
|
|
|
|
|
|
|
## nginx compression
|
|
|
|
nginx_gzip_enabled: True
|
|
|
|
nginx_gzip_comp_level: 2
|
|
|
|
nginx_gzip_min_length: 1000
|
|
|
|
nginx_gzip_proxied:
|
|
|
|
- expired
|
|
|
|
- no-cache
|
|
|
|
- no-store
|
|
|
|
- private
|
|
|
|
- auth
|
|
|
|
nginx_gzip_types:
|
|
|
|
- text/plain
|
|
|
|
- application/x-javascript
|
|
|
|
- text/xml
|
|
|
|
- text/css
|
|
|
|
- application/xml
|
|
|
|
|
2017-07-15 15:39:52 +00:00
|
|
|
nginx_open_ports:
|
|
|
|
- 80
|
|
|
|
- 443
|
2018-08-11 12:59:43 +00:00
|
|
|
|
2017-12-23 11:25:55 +00:00
|
|
|
nginx_tls_enabled: False
|
2018-08-11 12:59:43 +00:00
|
|
|
nginx_tls_certs_dir: /etc/pki/tls/certs
|
|
|
|
nginx_tls_key_dir: /etc/pki/tls/private
|
|
|
|
nginx_tls_cert_file: "{{ nginx_tls_certs_dir }}/mycert.pem"
|
|
|
|
nginx_tls_private_key_file: "{{ nginx_tls_key_dir }}/mycert.pem"
|
|
|
|
|
2017-12-23 11:25:55 +00:00
|
|
|
nginx_pfs_enabled: False
|
2018-08-09 19:20:06 +00:00
|
|
|
nginx_dhparam_size: 4069
|
2018-08-11 12:59:43 +00:00
|
|
|
nginx_dhparam_file: "{{ nginx_tls_certs_dir }}/dhparam-{{ nginx_dhparam_size }}.pem"
|
|
|
|
|
2018-08-11 23:14:47 +00:00
|
|
|
nginx_hsts_enabled: False
|
|
|
|
nginx_hsts_options:
|
|
|
|
- nginx_hsts_max_age=63072000
|
|
|
|
- includeSubDomains
|
|
|
|
|
2018-08-11 12:59:43 +00:00
|
|
|
nginx_vhosts_dir: /var/www/vhosts
|
|
|
|
|
|
|
|
nginx_default_page_enabled: False
|
|
|
|
|
|
|
|
nginx_server_names_hash_bucket_size: 32
|