2015-10-08 23:21:40 +07:00
|
|
|
nginx_upstream_server_params:
|
|
|
|
- key: 'weight'
|
|
|
|
default: 1
|
|
|
|
- key: 'max_fails'
|
|
|
|
default: 1
|
|
|
|
- key: 'fail_timeout'
|
|
|
|
default: '10s'
|
|
|
|
- key: 'backup'
|
|
|
|
is_bool: true
|
|
|
|
- key: 'down'
|
|
|
|
is_bool: true
|
|
|
|
default: false
|
|
|
|
- key: 'route'
|
|
|
|
default: 'configuration_error'
|
|
|
|
- key: 'slow_start'
|
|
|
|
default: 0
|
2015-10-09 22:54:07 +07:00
|
|
|
# Nginx Plus only
|
|
|
|
# - key: 'max_conns'
|
|
|
|
# default: 0
|
|
|
|
# min_version: '1.5.9'
|
|
|
|
# - key: 'resolve'
|
|
|
|
# is_bool: true
|
|
|
|
# min_version: '1.5.12'
|
2015-12-03 22:32:08 +07:00
|
|
|
|
|
|
|
nginx_dirs:
|
2016-11-25 17:33:20 +07:00
|
|
|
- dir: "{{ nginx_htpasswd_dir }}"
|
|
|
|
mode: "0750"
|
|
|
|
owner: "{{ nginx_user }}"
|
|
|
|
- dir: "{{ nginx_ssl_dir }}"
|
|
|
|
mode: "0750"
|
|
|
|
owner: "root"
|
|
|
|
- dir: "{{ nginx_helper_dir }}"
|
|
|
|
mode: "0755"
|
|
|
|
owner: "root"
|
2018-03-17 03:56:15 +07:00
|
|
|
- dir: "{{ nginx_etc_dir }}/modules-available"
|
|
|
|
mode: "0755"
|
|
|
|
owner: "root"
|
|
|
|
- dir: "{{ nginx_etc_dir }}/modules-enabled"
|
|
|
|
mode: "0755"
|
|
|
|
owner: "root"
|
2015-12-03 22:32:08 +07:00
|
|
|
|
2016-01-22 15:46:43 +07:00
|
|
|
nginx_templates_no_dir:
|
|
|
|
- '_backuppc'
|
2016-08-11 02:29:03 +07:00
|
|
|
- '_nagios3'
|
|
|
|
- '_proxy'
|
2016-08-09 21:02:09 +07:00
|
|
|
|
2017-02-08 22:16:19 +07:00
|
|
|
nginx_servers_default_headers:
|
|
|
|
'X-Frame-Options': 'DENY always'
|
|
|
|
'X-Content-Type-Options': 'nosniff always'
|
2017-02-09 18:03:14 +07:00
|
|
|
'X-XSS-Protection': '1; mode=block'
|
2017-12-03 04:22:28 +07:00
|
|
|
|
|
|
|
nginx_acmesh_bin: "{{ nginx_acmesh_dir }}/acme.sh"
|