]> cat aescling's git repositories - mastodon.git/commitdiff
Disable nginx ssl_session_tickets for better security (#16632)
authorPeter Dave Hello <hsu@peterdavehello.org>
Fri, 20 Aug 2021 07:15:07 +0000 (15:15 +0800)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 07:15:07 +0000 (08:15 +0100)
It's default turned on, but it's better to turn it off for security reason.

Reference:
- https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_tickets
- https://github.com/mozilla/server-side-tls/issues/135

dist/nginx.conf

index a0429d2aa4e50040cc505e89cd8353306d66aa01..2b260f33c89fc9039d0c066d436d0cf5d5f6e6e5 100644 (file)
@@ -31,6 +31,7 @@ server {
   ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
   ssl_prefer_server_ciphers on;
   ssl_session_cache shared:SSL:10m;
+  ssl_session_tickets off;
 
   # Uncomment these lines once you acquire a certificate:
   # ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;