paulbsd-salt/states/nginx/templates/ssl_params.j2

22 lines
686 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
2022-10-10 10:19:42 +02:00
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
add_header X-XSS-Protection "1; mode=block";
2023-06-23 08:46:17 +02:00
2022-10-10 10:19:42 +02:00
resolver_timeout 5s;
2023-06-23 08:46:17 +02:00
2023-09-14 16:47:38 +02:00
ssl_certificate /etc/acme/certs/paulbsd.com.crt;
2022-10-10 10:19:42 +02:00
ssl_certificate_key /etc/acme/keys/paulbsd.com.key;
ssl_ciphers EECDH+AESGCM:EECDH+CHACHA20;
ssl_dhparam /etc/acme/dh/dh.pem;
ssl_ecdh_curve secp384r1;
2021-11-07 23:37:17 +01:00
ssl_prefer_server_ciphers on;
2022-10-10 10:19:42 +02:00
ssl_protocols TLSv1.3 TLSv1.2;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_session_timeout 5m;
ssl_stapling on;
ssl_stapling_verify on;