Skip to content

Commit 18fbda2

Browse files
author
Kristan Kenney
committed
Merge branch 'bugfix-hsts' into prerelease
2 parents c45cd06 + 3ed3f80 commit 18fbda2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-change-web-domain-hsts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ fi
5454

5555
if [ "$status" = "on" ]; then
5656
echo 'add_header Strict-Transport-Security "max-age=15768000;" always;' > $hstsconf
57+
nginx -s reload
5758
echo "HTTP Strict Transport Security (HSTS) turned on for $domain."
5859
elif [ "$status" = "off" ]; then
5960
rm -f $hstsconf
@@ -69,7 +70,7 @@ fi
6970
#----------------------------------------------------------#
7071

7172
# Logging
72-
log_history "Enabled HTTP Strict Transport Security on $domain."
73+
log_history "Turned HTTP Strict Transport Security $status for $domain."
7374
log_event "$OK" "$ARGUMENTS"
7475

7576
exit

0 commit comments

Comments
 (0)