From daac31159624ccbd54b419ce3bd4ec71c3d05935 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Thu, 25 Jan 2024 18:30:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=AF=E7=94=A8nginx=E7=9A=84ssl=20s?= =?UTF-8?q?ession?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index fab85cc..ec5c84a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -25,6 +25,9 @@ http { ssl_certificate_key <%= root %>/cache/key.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + ssl_session_cache shared:SSL:50m; + ssl_session_timeout 1h; + ssl_prefer_server_ciphers on; <% } else { %> listen <%= port %> default; <% } %>