Procházet zdrojové kódy

Add HSTS header regardless of status code

See nginx [doc](http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header) and [blog](https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/).
b1f6c1c4 před 7 roky
rodič
revize
7a769a6a22
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -260,7 +260,7 @@ server {
 	{{ end }}
 
 	{{ if (and (ne $https_method "noredirect") (ne $hsts "off")) }}
-	add_header Strict-Transport-Security "{{ trim $hsts }}";
+	add_header Strict-Transport-Security "{{ trim $hsts }}" always;
 	{{ end }}
 
 	{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}