2014-08-27 19:02:29 +02:00
|
|
|
---
|
2022-09-10 17:09:12 +02:00
|
|
|
# ansible.builtin.file: roles/nginx/defaults/main.yml
|
2014-08-27 19:02:29 +02:00
|
|
|
|
|
|
|
# path config
|
|
|
|
nginx_confd_path: /etc/nginx/conf.d
|
|
|
|
|
|
|
|
# parent directory of vhost roots
|
|
|
|
nginx_root_prefix: /var/www
|
|
|
|
|
2015-06-04 22:28:31 +02:00
|
|
|
# 1 hour timeout
|
|
|
|
nginx_ssl_session_timeout: 1h
|
|
|
|
# 10MB -> 40,000 sessions
|
|
|
|
nginx_ssl_session_cache: shared:SSL:10m
|
|
|
|
# 1400 bytes to fit in one MTU (default is 16k!)
|
|
|
|
nginx_ssl_buffer_size: 1400
|
|
|
|
nginx_ssl_dhparam: /etc/ssl/certs/dhparam.pem
|
2023-08-23 21:22:51 +02:00
|
|
|
nginx_ssl_protocols: TLSv1.2 TLSv1.3
|
2015-06-04 22:28:31 +02:00
|
|
|
|
2018-04-30 17:04:17 +02:00
|
|
|
# DNS resolvers for OCSP stapling (default to Cloudflare public DNS)
|
|
|
|
# See: https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling
|
2023-08-23 21:22:51 +02:00
|
|
|
nginx_ssl_stapling_resolver: 1.1.1.1 1.0.0.1 [2606:4700:4700::1111] [2606:4700:4700::1001]
|
2018-04-30 17:04:17 +02:00
|
|
|
|
2021-03-23 14:36:28 +01:00
|
|
|
# HTTP Strict-Transport-Security header, recommended by Google to be ~1 year
|
|
|
|
# in seconds, see: https://hstspreload.org/
|
|
|
|
nginx_hsts_max_age: 31536000
|
|
|
|
|
2021-03-19 22:50:39 +01:00
|
|
|
# install acme.sh?
|
2022-09-10 21:33:19 +02:00
|
|
|
# true unless you're in development and using "localhost" + snakeoil certs
|
|
|
|
use_letsencrypt: true
|
2016-10-09 10:57:23 +02:00
|
|
|
|
2016-06-27 18:07:48 +02:00
|
|
|
# Directory root for Let's Encrypt certs
|
2021-03-19 22:39:30 +01:00
|
|
|
letsencrypt_root: /etc/ssl
|
2014-09-13 22:16:54 +02:00
|
|
|
|
2021-03-19 22:39:30 +01:00
|
|
|
# Location where to save initial acme.sh script. After installation the script
|
|
|
|
# will automatically create its home in the /root/.acme.sh directory (including
|
2021-09-27 12:40:17 +02:00
|
|
|
# a copy of the script itself). The initial script is not needed after.
|
|
|
|
letsencrypt_acme_script_temp: /root/acme.sh
|
2021-03-19 22:39:30 +01:00
|
|
|
letsencrypt_acme_home: /root/.acme.sh
|
2016-06-27 22:52:39 +02:00
|
|
|
|
2021-05-10 15:00:44 +02:00
|
|
|
# stable is 1.20.x
|
|
|
|
# mainline is 1.21.x
|
2016-05-27 07:14:04 +02:00
|
|
|
nginx_version: mainline
|
2015-05-24 23:15:49 +02:00
|
|
|
|
2014-08-27 19:02:29 +02:00
|
|
|
# vim: set ts=2 sw=2:
|