Przeglądaj źródła

Merge branch 'bugfix-hsts' into prerelease

Kristan Kenney 6 lat temu
rodzic
commit
18fbda2e99
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      bin/v-change-web-domain-hsts

+ 2 - 1
bin/v-change-web-domain-hsts

@@ -54,6 +54,7 @@ fi
 
 if [ "$status" = "on" ]; then
     echo 'add_header Strict-Transport-Security "max-age=15768000;" always;' > $hstsconf
+    nginx -s reload
     echo "HTTP Strict Transport Security (HSTS) turned on for $domain."
 elif [ "$status" = "off" ]; then
     rm -f $hstsconf
@@ -69,7 +70,7 @@ fi
 #----------------------------------------------------------#
 
 # Logging
-log_history "Enabled HTTP Strict Transport Security on $domain."
+log_history "Turned HTTP Strict Transport Security $status for $domain."
 log_event "$OK" "$ARGUMENTS"
 
 exit