Skip to content

Commit

Permalink
feat: 启用nginx的ssl session
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jan 25, 2024
1 parent 018645b commit daac311
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
<% } %>
Expand Down

0 comments on commit daac311

Please sign in to comment.