mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
template: enable HSTS
This commit is contained in:
parent
be4f7fc5c8
commit
dab2915ab5
1 changed files with 7 additions and 0 deletions
7
template/block/hsts.conf
Normal file
7
template/block/hsts.conf
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue