添加 ssl/hsts.conf

This commit is contained in:
Dallas Lu 2026-06-05 04:24:47 +00:00
parent 17644702e2
commit b6956dc0c6

7
ssl/hsts.conf Normal file
View file

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