Browse Source

Merge pull request #566 from mplx/patch/hsts-no-subdomains

do not enable HSTS for subdomains
Jason Wilder 8 năm trước cách đây
mục cha
commit
f02bc98a6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -158,7 +158,7 @@ server {
 	{{ end }}
 
 	{{ if (ne $https_method "noredirect") }}
-	add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+	add_header Strict-Transport-Security "max-age=31536000";
 	{{ end }}
 
 	{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}