add hsts-preload

This commit is contained in:
Dallas Lu 2026-06-05 12:46:31 +08:00
parent d2963aded8
commit 2d8e5e7340
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,7 @@
set $hsts_header_value "";
if ($scheme = "https") {
set $hsts_header_value "max-age=31536000; includeSubDomains; preload";
set $hsts_header_value "max-age=31536000; includeSubDomains";
}
add_header Strict-Transport-Security $hsts_header_value always;