HSTS includeSubDomains, preload options

fixes #26
This commit is contained in:
Szekeres Bálint
2018-11-18 10:15:33 +01:00
parent 0579ab5b84
commit b9e6754640
3 changed files with 19 additions and 1 deletions

View File

@@ -47,6 +47,8 @@
cert_type: 'letsencrypt',
ssl_profile: 'intermediate',
hsts: true,
hsts_subdomains: true,
hsts_preload: true,
email: '',
ssl_certificate: '',
ssl_certificate_key:'',
@@ -408,6 +410,14 @@
return $scope.isHTTPS() && $scope.data.hsts;
};
$scope.isHSTSSubdomains = function() {
return $scope.isHSTS() && $scope.data.hsts_subdomains;
};
$scope.isHSTSPreload = function() {
return $scope.isHSTSSubdomains() && $scope.data.hsts_preload;
};
$scope.isResolverCloudflare = function() {
return $scope.isHTTPS() && $scope.data.resolver_cloudflare;
};