nginx_config/snippets/ssl_options.conf

16 lines
448 B
Plaintext
Raw Permalink Normal View History

2021-01-22 22:21:42 +00:00
ssl_session_timeout 1d;
ssl_session_cache shared:TLS:1m;
2021-01-22 23:10:53 +00:00
ssl_session_tickets off;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EECDH+AES256 !aNULL:!MD5';
2021-01-22 22:21:42 +00:00
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
2021-01-22 23:10:53 +00:00
2021-01-22 22:21:42 +00:00
ssl_stapling on;
ssl_stapling_verify on;
2021-01-22 23:10:53 +00:00
2021-10-04 23:13:52 +00:00
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
2021-01-22 23:10:53 +00:00
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;