Skip to content

Commit

Permalink
Allow nginx ≥1.23.2 ssl_session_tickets
Browse files Browse the repository at this point in the history
No need to disable session_tickets for 1.23.2+ as encryption keys are now automatically rotated when ssl_session_cache uses shared memory.
  • Loading branch information
janbrasna authored Oct 6, 2024
1 parent 6510d66 commit a172281
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/templates/partials/nginx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ server {
ssl_certificate_key /path/to/private_key;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
{{#unless (minver "1.23.2" form.serverVersion)}}
{{#if (minver "1.0.2l" form.opensslVersion)}}
{{#if (minver "1.5.9" form.serverVersion)}}
ssl_session_tickets off;
{{/if}}
{{/if}}
{{/unless}}

{{#if output.usesDhe}}
# {{output.dhCommand}} > /path/to/dhparam
Expand Down

0 comments on commit a172281

Please sign in to comment.