mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 18:41:17 +08:00
toggle redirect
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
https: false,
|
||||
http2: true,
|
||||
|
||||
redirect: true,
|
||||
force_https: true,
|
||||
|
||||
cert_type: 'letsencrypt',
|
||||
@@ -292,6 +293,10 @@
|
||||
return !$scope.isNonWWW();
|
||||
};
|
||||
|
||||
$scope.isRedirect = function() {
|
||||
return $scope.data.redirect;
|
||||
};
|
||||
|
||||
$scope.isCDN = function() {
|
||||
return $scope.isWWW() && $scope.data.cdn;
|
||||
};
|
||||
|
Reference in New Issue
Block a user