* add role argument spec for os, ssh, mysql Signed-off-by: Sebastian Gumprich <[email protected]> * add role argument spec for os, ssh, mysql Signed-off-by: Sebastian Gumprich <[email protected]> * remove variable in variable as it cannot be used in argument spec Signed-off-by: Sebastian Gumprich <[email protected]> * fix wrong syntax * fix spelling errors Signed-off-by: Sebastian Gumprich <[email protected]> * cannot use vars before arg-spec validation Signed-off-by: Sebastian Gumprich <[email protected]> * yamllint the arg-spec Signed-off-by: Sebastian Gumprich <[email protected]> * add back variable Signed-off-by: Sebastian Gumprich <[email protected]> * remove redundant setting in tests * fix descriptions in mysql hardening to betterreflect what they do Signed-off-by: Sebastian Gumprich <[email protected]> * remove duplicate empty line Signed-off-by: Sebastian Gumprich <[email protected]> * set correct defaults on to ssl options Signed-off-by: Sebastian Gumprich <[email protected]> * remove left-over hidepid argument spec Signed-off-by: Sebastian Gumprich <[email protected]> * remove license and author infos, this lives in the collection readme Signed-off-by: Sebastian Gumprich <[email protected]> * fix styling Signed-off-by: Sebastian Gumprich <[email protected]> * update some descriptions and sort them in the readme Signed-off-by: Sebastian Gumprich <[email protected]> * some more linting Signed-off-by: Sebastian Gumprich <[email protected]> --------- Signed-off-by: Sebastian Gumprich <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
---
|
|
nginx_client_body_buffer_size: 1k
|
|
nginx_remove_default_site: true
|
|
nginx_client_max_body_size: 1k
|
|
nginx_keepalive_timeout: 5 5
|
|
nginx_server_tokens: "off"
|
|
nginx_client_header_buffer_size: 1k
|
|
nginx_large_client_header_buffers: 2 1k
|
|
nginx_client_body_timeout: "10"
|
|
nginx_client_header_timeout: "10"
|
|
nginx_send_timeout: "10"
|
|
nginx_limit_conn_zone: $binary_remote_addr zone=default:10m
|
|
nginx_limit_conn: default 5
|
|
nginx_configuration_dir: /etc/nginx
|
|
nginx_configuration_hardening_dir: /etc/nginx
|
|
nginx_owner_user: root
|
|
nginx_owner_group: root
|
|
nginx_add_header:
|
|
# avoid clickjacking
|
|
- X-Frame-Options SAMEORIGIN
|
|
# disable content-type sniffing
|
|
- X-Content-Type-Options nosniff
|
|
# XSS filter
|
|
- X-XSS-Protection "1; mode=block"
|
|
- Strict-Transport-Security max-age=15768000
|
|
- Content-Security-Policy "script-src 'self'; object-src 'self'"
|
|
|
|
nginx_ssl_prefer_server_ciphers: "on"
|
|
nginx_ssl_protocols: TLSv1.2 TLSv1.3
|
|
# yamllint disable-line rule:line-length
|
|
nginx_ssl_ciphers: ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
|
|
nginx_ssl_session_tickets: "off"
|
|
nginx_dh_size: "4096"
|