xoxys.nginx/defaults/main.yml

144 lines
3.5 KiB
YAML
Raw Normal View History

2017-07-15 17:39:52 +02:00
---
2018-08-09 21:20:06 +02:00
nginx_official_repo_enabled: True
2017-12-24 14:05:27 +01:00
nginx_user: nginx
nginx_group: nginx
2017-12-24 17:36:43 +01:00
nginx_worker_processes: 1
2017-12-24 17:42:23 +01:00
nginx_worker_connections: 1024
2018-08-11 14:59:43 +02:00
nginx_error_log:
enabled: True
file: /var/log/nginx/error.log
level: error
2018-08-11 15:22:15 +02:00
nginx_access_log:
2018-08-11 14:59:43 +02:00
enabled: True
file: /var/log/nginx/access.log
2018-08-11 15:27:27 +02:00
format: main
2018-08-11 14:59:43 +02:00
nginx_client_body_buffer_size: 10k
nginx_client_header_buffer_size: 1k
nginx_client_max_body_size: 8m
nginx_client_body_timeout: 60
nginx_client_header_timeout: 60
nginx_keepalive_timeout: 65
nginx_send_timeout: 60
nginx_reset_timedout_connection: True
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
nginx_iptables_enabled: False
2019-07-19 20:56:09 +02:00
nginx_iptables_rules_default:
- name: allow_nginx_ports
rules: |
-A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT
state: present
nginx_iptables_rules_extra: []
2018-08-11 14:59:43 +02:00
2017-12-23 12:25:55 +01:00
nginx_tls_enabled: False
2019-06-11 23:10:16 +02:00
nginx_tls_versions:
2019-06-11 22:58:53 +02:00
- TLSv1.2
2019-10-18 10:54:26 +02:00
# @var nginx_tls_cert_source:description: Source has to be a file.
# @var nginx_tls_cert_source: $ "_unset_"
# @var nginx_tls_key_source:description: Source has to be a file.
# @var nginx_tls_key_source: $ "_unset_"
# @var nginx_tls_cert_file:description: Set the destination filename.
2018-10-22 10:11:35 +02:00
nginx_tls_cert_file: mycert.pem
2019-10-18 10:54:26 +02:00
# @var nginx_tls_key_file:description: Set the destination filename.
2018-10-22 10:11:35 +02:00
nginx_tls_key_file: mykey.pem
2019-10-18 10:54:26 +02:00
# @var nginx_tls_dhparam_file: $ "_unset_"
2019-07-18 08:59:41 +02:00
nginx_tls_dhparam_size: 2048
2018-08-12 11:31:12 +02:00
2018-10-22 10:56:39 +02:00
nginx_tls_ciphers:
2019-06-11 23:00:13 +02:00
- ECDHE-RSA-AES256-GCM-SHA512
- DHE-RSA-AES256-GCM-SHA512
- ECDHE-RSA-AES256-GCM-SHA384
- DHE-RSA-AES256-GCM-SHA384
- ECDHE-RSA-AES256-SHA384
2019-10-18 10:54:26 +02:00
# @var nginx_tls_ecdh_curve: $ "_unset_"
2018-10-22 10:56:39 +02:00
nginx_tls_ocsp_enabled: False
2019-10-18 10:54:26 +02:00
# @var nginx_tls_ocsp_trusted_certificate: $ "_unset_"
nginx_tls_hsts_enabled: False
2018-08-12 01:14:47 +02:00
nginx_hsts_options:
2018-12-09 23:12:54 +01:00
- max-age=63072000
2018-08-12 01:14:47 +02:00
- includeSubDomains
2018-10-22 10:11:35 +02:00
nginx_xfo_enabled: True
nginx_xfo_policy: deny
nginx_xcto_enabled: True
2019-06-11 17:01:38 +02:00
nginx_csp_enabled: False
2019-10-18 10:54:26 +02:00
# @ var nginx_csp_options: $ "_unset_"
# @var nginx_csp_options:example: >
2019-06-11 17:01:38 +02:00
# nginx_csp_options:
# - directive: frame-ancestors
# parameters:
# - https://example.com
# - https://mypage.com
2018-10-22 10:11:35 +02:00
nginx_xxxsp_enabled: True
nginx_xxxsp_parameters:
- mode=block
2018-08-11 14:59:43 +02:00
nginx_vhosts_dir: /var/www/vhosts
2019-07-17 23:32:11 +02:00
nginx_vhosts_default:
- file: default
2019-07-18 00:16:24 +02:00
servers:
2019-07-17 23:32:11 +02:00
- port: 80
2019-07-18 00:16:24 +02:00
server_name: "{{ ansible_fqdn }}"
2019-07-17 23:32:11 +02:00
locations:
- match: /
root: /var/www/vhosts/default
index: index.html
2019-10-18 10:54:26 +02:00
# @var nginx_vhosts_default:example: >
2019-07-17 23:32:11 +02:00
# nginx_vhosts_default:
# - file: default
# upstream:
# name: my_pool
# servers: []
# servers:
# - port: 80
# server_name: demo.example.com
# tls_redirect: False # skips locations if enabled
# tls_redirect_url:
# tls:
# cert: /etc/pki/tls/..
# key: /etc/pki/tls/..
# dhparam:
# client_max_body_size:
2019-08-28 18:34:01 +02:00
# send_timeout:
2019-07-17 23:32:11 +02:00
# locations:
# - match: /
# root: /var/www/vhosts/default
# index: index.html
# proxy_pass:
2019-08-28 18:34:01 +02:00
# proxy_http_version: "1.1"
# proxy_buffering: "off"
# proxy_connect_timeout: 3600s
# proxy_read_timeout: 3600s
# proxy_send_timeout: 3600s
2019-07-17 23:32:11 +02:00
# proxy_headers: []
# error_page: /usr/share/nginx/html
nginx_vhosts_extra: []
2018-08-11 14:59:43 +02:00
nginx_server_names_hash_bucket_size: 32