From 8477c34bb3470341fb8ebb7b18d3d694d2941f3b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Oct 2019 05:36:28 +0200 Subject: refactoring nginx config snippets --- roles/nginx/files/snippets/ssl.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/nginx/files/snippets/ssl.conf (limited to 'roles/nginx/files/snippets/ssl.conf') diff --git a/roles/nginx/files/snippets/ssl.conf b/roles/nginx/files/snippets/ssl.conf new file mode 100644 index 00000000..d187a7c0 --- /dev/null +++ b/roles/nginx/files/snippets/ssl.conf @@ -0,0 +1,10 @@ +ssl_protocols TLSv1 TLSv1.1 TLSv1.2; +ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AES:!ADH:!AECDH:!MD5; +ssl_prefer_server_ciphers on; + +# openssl dhparam -out /etc/ssl/certs/dhparams.pem 2048 +ssl_dhparam /etc/ssl/dhparams.pem; + +ssl_session_cache shared:SSL:10m; +ssl_session_timeout 10m; +ssl_session_tickets off; -- cgit v1.2.3