Browse Source

Enable hsts and force ssl by default for host cert domain.

Raphael Schneeberger 6 years ago
parent
commit
c6d2da3e98
2 changed files with 5 additions and 0 deletions
  1. 1 0
      CHANGELOG.md
  2. 4 0
      bin/v-add-letsencrypt-host

+ 1 - 0
CHANGELOG.md

@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
 - Rework Let's Encrypt acme staging to use hestia conform standard.
 - Rework Let's Encrypt acme staging to use hestia conform standard.
 - Fix if condition, use nginx for Let's Encrypt acme request if present.
 - Fix if condition, use nginx for Let's Encrypt acme request if present.
 - Rework v-add-sys-ip, remove centos/redhat support and rework conditions.
 - Rework v-add-sys-ip, remove centos/redhat support and rework conditions.
+- Enable hsts and force ssl on v-add-letsencrypt-host.
 
 
 ## [1.0.4] - 2019-07-09 - Hotfix
 ## [1.0.4] - 2019-07-09 - Hotfix
 ### Bugfixes
 ### Bugfixes

+ 4 - 0
bin/v-add-letsencrypt-host

@@ -73,6 +73,10 @@ fi
 # Add certificate to backend
 # Add certificate to backend
 $BIN/v-update-host-certificate $user $domain
 $BIN/v-update-host-certificate $user $domain
 
 
+# Enable automatic ssl forward and hsts
+$BIN/v-add-web-domain-ssl-force $user $domain
+$BIN/v-add-web-domain-ssl-hsts $user $domain
+
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                        Hestia                            #
 #                        Hestia                            #