Skip to content

Commit

Permalink
nixos/nginx: don't duplicate HSTS option defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
bmillwood committed Nov 23, 2024
1 parent 837834d commit 7c2fd91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nixos/modules/services/web-servers/nginx/vhost-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,10 @@ with lib;
default = false;
description = ''
Whether to enable HTTP Strict Transport Security (HSTS). This sends
the header "strict-transport-security: max-age=63072000" on all
the header "strict-transport-security: max-age=N" on all
responses, which tells clients to refuse to use an insecure HTTP
connection for this host for the next 63072000 seconds (approximately
2 years), or for the duration specified by
`strictTransportSecurity.seconds` if set. This helps protects against
connection for this host for the next N seconds, where N is specified
by `strictTransportSecurity.seconds`. This helps protects against
man-in-the-middle attacks that e.g. block HTTPS connections in the
hope that the client will fall back to an insecure HTTP connection,
which can be intercepted and modified.
Expand Down

0 comments on commit 7c2fd91

Please sign in to comment.