diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 3767c02..e654c16 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -35,6 +35,8 @@ https: false, http2: true, + force_https: true, + cert_type: 'letsencrypt', email: '', ssl_certificate: '', @@ -270,6 +272,10 @@ return $scope.isHTTPS() && $scope.data.http2; }; + $scope.isForceHTTPS = function() { + return $scope.isHTTPS() && $scope.data.force_https; + }; + $scope.isLetsEncrypt = function() { return $scope.isHTTPS() && $scope.data.cert_type === 'letsencrypt'; }; diff --git a/public/index.html b/public/index.html index 8441d05..47df12b 100644 --- a/public/index.html +++ b/public/index.html @@ -84,6 +84,14 @@ +