Skip to content

Commit 6fd5ce2

Browse files
author
Kristan Kenney
committed
Ensure additional SSL options are refreshed when rebuilding domains
1 parent c62cf92 commit 6fd5ce2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

func/rebuild.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,17 @@ rebuild_web_domain_conf() {
257257
fi
258258
fi
259259

260+
# Refresh HTTPS redirection if previously enabled
261+
if [ "$SSL_FORCE" = 'yes' ]; then
262+
$BIN/v-delete-web-domain-ssl-force $user $domain no
263+
$BIN/v-add-web-domain-ssl-force $user $domain yes
264+
fi
265+
266+
if [ "$SSL_HSTS" = 'yes' ]; then
267+
$BIN/v-delete-web-domain-ssl-hsts $user $domain no
268+
$BIN/v-add-web-domain-ssl-hsts $user $domain yes
269+
fi
270+
260271
# Adding proxy configuration
261272
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
262273
conf="$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.conf"

0 commit comments

Comments
 (0)