mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-10 00:22:23 +08:00
forceHTTPS
This commit is contained in:
@@ -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';
|
||||
};
|
||||
|
Reference in New Issue
Block a user