forceHTTPS

This commit is contained in:
Szekeres Bálint
2018-03-09 23:27:39 +01:00
parent 31612124a5
commit cd0b0b4be6
3 changed files with 27 additions and 5 deletions

View File

@@ -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';
};