mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 15:28:12 +08:00
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user