소스 검색

template: enable HSTS

0xJacky 2 년 전
부모
커밋
dab2915ab5
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      template/block/hsts.conf

+ 7 - 0
template/block/hsts.conf

@@ -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;