添加 ssl/hsts.conf
This commit is contained in:
parent
17644702e2
commit
b6956dc0c6
1 changed files with 7 additions and 0 deletions
7
ssl/hsts.conf
Normal file
7
ssl/hsts.conf
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue