Skip to content

Commit

Permalink
nixos/nginx: cautionary note about HSTS includeSubdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
bmillwood committed Nov 23, 2024
1 parent 7c2fd91 commit b4ecee7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/modules/services/web-servers/nginx/vhost-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ with lib;
that e.g. if the virtual host is `https://www.example.com` it also
sets the HSTS policy for `https://sub.www.example.com`.
This can be especially helpful if you have rarely-visited subdomains
of a frequently-visited parent domain, but it can also be hazardous
since it can enable HSTS for a subdomain which doesn't actually
support HTTPS, which would make it fully inaccessible.
::: {.note}
"Sibling" domains like https://mail.example.com are not affected.
:::
Expand Down

0 comments on commit b4ecee7

Please sign in to comment.