Przeglądaj źródła

Increase HSTS max-age to 31536000 (#3782)

Adjust for new recommandations.
Christian Oder 2 lat temu
rodzic
commit
7a1edaced7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/v-add-web-domain-ssl-hsts

+ 1 - 1
bin/v-add-web-domain-ssl-hsts

@@ -56,7 +56,7 @@ else
 	hstsconf="$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.hsts.conf"
 	hstsconf="$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.hsts.conf"
 fi
 fi
 
 
-echo 'add_header Strict-Transport-Security "max-age=15768000;" always;' > $hstsconf
+echo 'add_header Strict-Transport-Security "max-age=31536000;" always;' > $hstsconf
 
 
 chown root:$user $hstsconf
 chown root:$user $hstsconf
 chmod 640 $hstsconf
 chmod 640 $hstsconf