template: enable HSTS

This commit is contained in:
0xJacky 2023-04-08 17:27:03 +08:00
parent be4f7fc5c8
commit dab2915ab5
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0

7
template/block/hsts.conf Normal file
View file

@ -0,0 +1,7 @@
# Nginx UI Template Start
# Name: HSTS
# Description[en]: Enable HTTP Strict Transport Security
# Description[zh_CN]: 启用 HTTP 严格传输安全
# Author: @0xJacky
# Nginx UI Template End
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;